summaryrefslogtreecommitdiff
path: root/markdown/extensions/smart_strong.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.
* Now using universal code for Python 2 & 3.Waylan Limberg2013-02-271-7/+5
| | | | | | | | | | 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.
* Fix all pyflakes unused-import/unused-variable warningsDmitry Shachnev2012-11-091-1/+0
|
* Added doctests to fabfile and edited them to pass in all supported versions ↵Waylan Limberg2011-08-021-6/+6
| | | | of python. Note: one test (meta) is still failing on Python 3 due to unicode strings.
* Fix syntax error in doctests which tripped up the 2to3 tool.Waylan Limberg2011-07-241-6/+6
|
* A few minor tweaks to the smart_strong extension. Thanks to David Chambers ↵Waylan Limberg2011-06-131-2/+2
| | | | for pointing out the typo.
* Added smart_strong extension. Fixes Issue #17. Like PHP Markdown Extra, we ↵Waylan Limberg2011-06-071-0/+45
now include smart handling of double underscores (not just single underscores). The new behavior may be called seperately as the 'smart_strong' extension or as part of the 'extra' extension.