aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/extensions
Commit message (Collapse)AuthorAgeFilesLines
* Added doctests to fabfile and edited them to pass in all supported versions ↵Waylan Limberg2011-08-027-58/+66
| | | | of python. Note: one test (meta) is still failing on Python 3 due to unicode strings.
* Fix a minor Python 3 incompatability in the headerid extension's slugify ↵Waylan Limberg2011-07-281-1/+1
| | | | function. The url is being encoded (with errors ignored) as an easy means of removing non-ascii chars, but we have to re-encode it *before* running the regex on it, not after.
* Fix syntax error in doctests which tripped up the 2to3 tool.Waylan Limberg2011-07-241-6/+6
|
* Fixed a few minor Python2.4 incompatabilities. Runs in 2.4-2.7 cleanly.Waylan Limberg2011-07-221-1/+7
|
* Updated toc extension's anchorlink option to work properly with recent refactor.Waylan Limberg2011-07-141-2/+6
|
* Refactored the toc extension. Fixes #33: The [TOC] marker is now ignored in ↵Waylan Limberg2011-07-141-28/+17
| | | | code blocks/spans. A better fix for #4: Only the *text* from the header is caried over to the toc (without *any* inline formatting). Also refactored the extension to better work in tandem with the refactored headerid extension and the new attr_list extension.
* Fixed #34. Better support for unicode text with the html_tidy extension. ↵Waylan Limberg2011-07-141-2/+5
| | | | Force input and output of tidy to use UTF-8 and encode before and decode after passing in the text.
* Refactored HeaderId extension to no longer include defining ids. It only ↵Waylan Limberg2011-06-302-78/+76
| | | | autogenerates ids. If you want to define your own, use the attr_list extension. Also expanded HeaderId extension to use the same algorithm as the TOC extension (which is better) for slugifying the header text. Added config settings to override the default word separator and the slugify callable. Closes #16 as the reported bug is for a removed feature.
* Fixed #30. Tables now allow three spaces of indent like PHP Markdown Extra. ↵Waylan Limberg2011-06-291-6/+7
| | | | Thanks to skurfer for report and inital patch.
* Added nl2br extension. Closes #13. Thanks to Brian Neal for writing the code ↵Waylan Limberg2011-06-211-0/+35
| | | | and allowing us to use it.
* allow language guessing to be disabled by passing a setting to CodeHilite - ↵Rob McBroom2011-06-192-4/+17
| | | | closes #24
* Added attribute list extension inspired by Maruku's attribute list feature. ↵Waylan Limberg2011-06-171-0/+122
| | | | See issue #7. Also likely to become a replacement for the headerid extension (with a little more work - need a forceid option) which means it will also address issue #16. The extension works with some limited testing. Still needs tests and documentation. Currently breaks toc extension - which should run after attr_list, not before.
* 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-072-1/+47
| | | | 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.
* Added "." to the characters that may be included in implicit heading ids.David Chambers2011-06-051-1/+1
|
* Fix #4. Links in headers no longer munge up table of contents in TOC extension.Waylan Limberg2011-05-041-3/+10
|
* Fixed typo in previous commit. Extension.getConfigs is a method, not a property.Waylan Limberg2011-05-041-1/+1
|
* Extension.getConfigs returns a dict and is used by the extensions that use ↵Waylan Limberg2011-05-046-32/+26
| | | | configs. No more self.config['name'][0] weirdness anymore.
* Minor improvement to Extension settings API. Extension.getConfig now accepts ↵Waylan Limberg2011-04-071-3/+7
| | | | a 'default' keyword and added Extension.getConfigs which returns a list of tuples of all settings without the descriptions.
* Factored out the importing of pygments in CodeHilite Extension so it doesn;t ↵Waylan Limberg2011-04-071-27/+24
| | | | happen every time a block is highlighted. Not sure why I didn't do it this way to begin with.
* Cleaned up CodeHilite extension. When pygments is not available provide ↵Waylan Limberg2011-04-071-25/+12
| | | | simpler markup which should allow for the use of JavaScript Highlighting libraries. In other words, no pygments like <div> and no <ol> for line numbering. Just a <pre><code> block with classes assinged to them. If people want fancier stuff, they can use JavaScript or create their own extension.
* Corrected behavior of headerid extension to match default behavior when ↵Waylan Limberg2011-04-281-1/+4
| | | | "Weve got a problem header". We log a warning - not raise an exception.
* sane logging. remove sys.exit() calls (libraries should never ever call ↵Craig de Stigter2011-04-182-6/+1
| | | | sys.exit()) and raise appropriate exceptions instead. backwards incompatible insofar as custom extensions may need tweaks if they're using old markdown logging (but they shouldn't, it was gross)
* Added an alternative meta list syntax.David Chambers2011-02-171-1/+5
| | | | | | | | | | | | | | | Implicit syntax (existing): tag: Python Markdown Explicit syntax (new): tag: Python tag: Markdown These two examples are now equivalent. Previously, the latter would produce `{u'tag': [u'Markdown']}` rather than `{u'tag': [u'Python', u'Markdown']}`.
* Made the HeaderId extension's word separator configurable to allow, forDavid Chambers2011-01-221-2/+3
| | | | example, hyphens to be used rather than underscores.
* Updated regular expression to accept periods in heading ids.David Chambers2011-01-091-1/+1
|
* Merge branch 'master' of git@gitorious.org:python-markdown/mainlineWaylan Limberg2010-09-201-51/+0
|\
| * Fixed Ticket 71. Wrapper functions no longer do there own thing with ↵Waylan Limberg2010-08-291-51/+0
| | | | | | | | extensions. All behavior is now within the class.
* | Fixed Ticket 78. Wikilinks now support unicode characters.Waylan Limberg2010-09-201-1/+1
|/
* Fixed Ticket 70 and added a test. Footnote references whithout a ↵Waylan Limberg2010-08-251-7/+10
| | | | coresponding definition no longer raise an error. They now pass through as plain text - which is the same behavior as PHP Markdown Extra. Thanks for the report Benjamin Bach.
* Fixed problem hidden by Ticket 68. Defining a footnote placeholder in a ↵Waylan Limberg2010-08-021-8/+7
| | | | markdown document results in the placeholder actually being replaced. Also added a test for this. Note that if the placeholder paragraph has other text, that text is lost. Not sure if this is a bug or bad markdown syntax.
* Fix Ticket 68. Remove an old line of code from the footnote extension that ↵Waylan Limberg2010-08-021-1/+0
| | | | should have been removed excatly 2 years and 3 days ago (commit bd185087dc899b6157f8) when elementtree support was added. And to think it has been generating an error the whole time and was only just reported now. It appears this was never tested as it still does not work after removing the old line. At least we do not get an error. The footnote placeholder is just an empty paragraph. Thanks for the report Evan Carmi.
* Added logging imports to markdown.extensions which were missed in recent ↵Waylan Limberg2010-07-221-0/+2
| | | | reorg. Also added tests to make sure erros and warnings are raised where they should be.
* Fixed tab_length on codehilite extension to match new implementation of ↵Waylan Limberg2010-07-071-11/+5
| | | | default configs.
* Moved base Extension class and extension loaders to ↵Waylan Limberg2010-07-061-0/+99
| | | | markdown/extensions/__init__.py. Now only the Markdown class and two public wrappers are in markdown/__init__.py.
* Clean up previous commit a little. renamed misc_logging to md_logging and ↵Waylan Limberg2010-07-061-1/+2
| | | | fixed imports. We import logging levels from logging directly and only import message from md_logging.
* Rename misc.py to util.py at the request of upstreamToshio Kuratomi2010-07-058-8/+8
|
* Break cyclic import of markdown. This allows people to embed markdownToshio Kuratomi2010-07-0510-14/+20
| | | | if they desire.
* Fix for undefined variables that need to be importedToshio Kuratomi2010-07-052-2/+2
|
* Fixed Ticket 60. The dd in definition lists can now not be indented on ↵Waylan Limberg2010-03-241-2/+7
| | | | secondary lines.
* The html-tidy extension now fails gracefully when tidy is not installed on ↵Waylan Limberg2010-03-251-2/+6
| | | | the system -- markdown continues without it.
* Changed the default style used by pygments in the codehilite extension. ↵Waylan Limberg2010-03-251-1/+1
| | | | This was a recently added feature, but older versions of pygments don't know what the 'tango' style is, so we now use pygemnts 'default' by default. Not sure why the 'tango' style was used here in the first place. I'm guess it was the preferance of whoever contributed the patch.
* Fixed some code that wasn't Python 2.4 compatible.Waylan Limberg2010-02-221-1/+1
|
* Removed imagelinks extension. It never worked without some third party code ↵Waylan Limberg2010-02-131-119/+0
| | | | that has never been shipped with Markdown anyway - and that code it not readily available. See list discussion for more info.
* Refactored codehilite and fenced code, so now fenced code will also be ↵Lucas van Dijk2010-01-252-81/+80
| | | | highlited when codehilite extension is enabled
* Added pygments support to fenced_codeLucas van Dijk2010-01-241-13/+64
|
* Added processing of markdown text within raw html to the 'extra' extension. ↵Waylan Limberg2010-01-031-0/+2
| | | | Fixes Ticket 39. NOTE: I did not add a seperate extension which only adds this feature - it is only available as part of 'extra'.
* Fix the TOC extension for TOCs starting at levels other than 1.Steve Losh2009-12-251-1/+4
|
* Fixed Ticket 37. When multiple markdown documents are displayed on one page andWaylan Limberg2009-07-211-5/+19
| | | | | contain footnotes with the same name, they will no longer collide when 'UNIQUE_IDS' is set to True. Thanks to Paul Stansifer for report and patch.
* Fixed TOC extension to properly nest multiple header levels in the table of ↵Waylan Limberg2009-07-211-7/+3
| | | | contents. Specificly, when stepping back multiple levels, the nestsed listed now follow suite. Test included. Thanks for the patch Jack Miller.