summaryrefslogtreecommitdiff
path: root/markdown/extensions/fenced_code.py
Commit message (Collapse)AuthorAgeFilesLines
* Future imports go after the docstringsAdam Dinwoodie2013-03-181-1/+1
| | | | | | | | | A `from __future__ import ...` statement must go after any docstrings; since putting them before the docstring means the docstring loses its magic and just becomes a string literal. That then causes a syntax error if there are further future statements after the false docstring. This fixes issue #203, using the patch provided by @Arfrever.
* Update fenced_code.pyTimon Wong2013-03-151-1/+1
| | | CodeHilite: linenos is replaced by linenums
* Now using universal code for Python 2 & 3.Waylan Limberg2013-02-271-12/+8
| | | | | | | | | | The most notable changes are the use of unicode_literals and absolute_imports. Actually, absolute_imports was the biggest deal as it gives us relative imports. For the first time extensions import markdown relative to themselves. This allows other packages to embed the markdown lib in a subdir of their project and still be able to use our extensions.
* Moved whitespace normalization to a preprocessor.Waylan Limberg2013-02-081-1/+1
| | | | | | | | | | | | | | Fixes #150 - at least as much as I'm willing to. This allows whitespace normalization to be overridable by the extension API. Yes, I realize that most other processors will also proabably need to be overniriden to work with any differant whitespace normalization - but I'm okay with that. As pointed out in #150, some processors have the tab length hardcoded in regexes. I'm willing to accept a working patch that fixes that - and keeps the regexes easy to override in a subclass (the provded patch moved them inside the __init__ method - which is not so easy to override in a subclass)). However, that is about the only additional change I'm willing to consider for this issue.
* Remove exec bit from extensions/fenced_code.pyDmitry Shachnev2012-11-031-0/+0
|
* Added support for <foo>+<bar> lexers of Pygmentspapaeye2012-07-211-1/+1
|
* Fixed #106. Replaced all references to freewisdom.org (except for Yuri's ↵Waylan Limberg2012-06-281-2/+2
| | | | homepage).
* Support github-flavored markdown by making the '.' optional before language ↵Mike Dirolf2012-01-171-1/+1
| | | | type.
* Fenced code blocks need to end with a fence on its own line.Mike Dirolf2012-01-171-1/+1
|
* Fixed #60. When we updated codehilite, we forgot to update fenced_codee to ↵Waylan Limberg2012-01-151-5/+5
| | | | work with it.
* appropriately move the tests to the fenced code documentation in the ↵Daniel Gottlieb2011-12-271-1/+11
| | | | extension source
* Allow tildes or backticks in the fenced_code extension to support the syntax ↵Daniel Gottlieb2011-12-271-1/+3
| | | | used by github
* Added doctests to fabfile and edited them to pass in all supported versions ↵Waylan Limberg2011-08-021-15/+17
| | | | of python. Note: one test (meta) is still failing on Python 3 due to unicode strings.
* allow language guessing to be disabled by passing a setting to CodeHilite - ↵Rob McBroom2011-06-191-0/+1
| | | | closes #24
* Extension.getConfigs returns a dict and is used by the extensions that use ↵Waylan Limberg2011-05-041-10/+4
| | | | configs. No more self.config['name'][0] weirdness anymore.
* Break cyclic import of markdown. This allows people to embed markdownToshio Kuratomi2010-07-051-1/+2
| | | | if they desire.
* Fixed some code that wasn't Python 2.4 compatible.Waylan Limberg2010-02-221-1/+1
|
* Refactored codehilite and fenced code, so now fenced code will also be ↵Lucas van Dijk2010-01-251-42/+29
| | | | highlited when codehilite extension is enabled
* Added pygments support to fenced_codeLucas van Dijk2010-01-241-13/+64
|
* Updated fenced_code extension to fit in with consensious on Markdown list. ↵Waylan Limberg2009-02-021-5/+5
| | | | Language is defined on first line rather than last, and currly brackets around language are optional.
* Updated fenced_code extension for package refactor.Waylan Limberg2008-11-221-1/+1
|
* Moved markdown_extensions/ to markdown/extensions. Markdown is now one ↵Waylan Limberg2008-11-201-0/+117
package instead of two.