Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added doctests to fabfile and edited them to pass in all supported versions ↵ | Waylan Limberg | 2011-08-02 | 7 | -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 Limberg | 2011-07-28 | 1 | -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 Limberg | 2011-07-24 | 1 | -6/+6 |
| | |||||
* | Fixed a few minor Python2.4 incompatabilities. Runs in 2.4-2.7 cleanly. | Waylan Limberg | 2011-07-22 | 1 | -1/+7 |
| | |||||
* | Updated toc extension's anchorlink option to work properly with recent refactor. | Waylan Limberg | 2011-07-14 | 1 | -2/+6 |
| | |||||
* | Refactored the toc extension. Fixes #33: The [TOC] marker is now ignored in ↵ | Waylan Limberg | 2011-07-14 | 1 | -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 Limberg | 2011-07-14 | 1 | -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 Limberg | 2011-06-30 | 2 | -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 Limberg | 2011-06-29 | 1 | -6/+7 |
| | | | | Thanks to skurfer for report and inital patch. | ||||
* | Added nl2br extension. Closes #13. Thanks to Brian Neal for writing the code ↵ | Waylan Limberg | 2011-06-21 | 1 | -0/+35 |
| | | | | and allowing us to use it. | ||||
* | allow language guessing to be disabled by passing a setting to CodeHilite - ↵ | Rob McBroom | 2011-06-19 | 2 | -4/+17 |
| | | | | closes #24 | ||||
* | Added attribute list extension inspired by Maruku's attribute list feature. ↵ | Waylan Limberg | 2011-06-17 | 1 | -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 Limberg | 2011-06-13 | 1 | -2/+2 |
| | | | | for pointing out the typo. | ||||
* | Added smart_strong extension. Fixes Issue #17. Like PHP Markdown Extra, we ↵ | Waylan Limberg | 2011-06-07 | 2 | -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 Chambers | 2011-06-05 | 1 | -1/+1 |
| | |||||
* | Fix #4. Links in headers no longer munge up table of contents in TOC extension. | Waylan Limberg | 2011-05-04 | 1 | -3/+10 |
| | |||||
* | Fixed typo in previous commit. Extension.getConfigs is a method, not a property. | Waylan Limberg | 2011-05-04 | 1 | -1/+1 |
| | |||||
* | Extension.getConfigs returns a dict and is used by the extensions that use ↵ | Waylan Limberg | 2011-05-04 | 6 | -32/+26 |
| | | | | configs. No more self.config['name'][0] weirdness anymore. | ||||
* | Minor improvement to Extension settings API. Extension.getConfig now accepts ↵ | Waylan Limberg | 2011-04-07 | 1 | -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 Limberg | 2011-04-07 | 1 | -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 Limberg | 2011-04-07 | 1 | -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 Limberg | 2011-04-28 | 1 | -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 Stigter | 2011-04-18 | 2 | -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 Chambers | 2011-02-17 | 1 | -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, for | David Chambers | 2011-01-22 | 1 | -2/+3 |
| | | | | example, hyphens to be used rather than underscores. | ||||
* | Updated regular expression to accept periods in heading ids. | David Chambers | 2011-01-09 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' of git@gitorious.org:python-markdown/mainline | Waylan Limberg | 2010-09-20 | 1 | -51/+0 |
|\ | |||||
| * | Fixed Ticket 71. Wrapper functions no longer do there own thing with ↵ | Waylan Limberg | 2010-08-29 | 1 | -51/+0 |
| | | | | | | | | extensions. All behavior is now within the class. | ||||
* | | Fixed Ticket 78. Wikilinks now support unicode characters. | Waylan Limberg | 2010-09-20 | 1 | -1/+1 |
|/ | |||||
* | Fixed Ticket 70 and added a test. Footnote references whithout a ↵ | Waylan Limberg | 2010-08-25 | 1 | -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 Limberg | 2010-08-02 | 1 | -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 Limberg | 2010-08-02 | 1 | -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 Limberg | 2010-07-22 | 1 | -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 Limberg | 2010-07-07 | 1 | -11/+5 |
| | | | | default configs. | ||||
* | Moved base Extension class and extension loaders to ↵ | Waylan Limberg | 2010-07-06 | 1 | -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 Limberg | 2010-07-06 | 1 | -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 upstream | Toshio Kuratomi | 2010-07-05 | 8 | -8/+8 |
| | |||||
* | Break cyclic import of markdown. This allows people to embed markdown | Toshio Kuratomi | 2010-07-05 | 10 | -14/+20 |
| | | | | if they desire. | ||||
* | Fix for undefined variables that need to be imported | Toshio Kuratomi | 2010-07-05 | 2 | -2/+2 |
| | |||||
* | Fixed Ticket 60. The dd in definition lists can now not be indented on ↵ | Waylan Limberg | 2010-03-24 | 1 | -2/+7 |
| | | | | secondary lines. | ||||
* | The html-tidy extension now fails gracefully when tidy is not installed on ↵ | Waylan Limberg | 2010-03-25 | 1 | -2/+6 |
| | | | | the system -- markdown continues without it. | ||||
* | Changed the default style used by pygments in the codehilite extension. ↵ | Waylan Limberg | 2010-03-25 | 1 | -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 Limberg | 2010-02-22 | 1 | -1/+1 |
| | |||||
* | Removed imagelinks extension. It never worked without some third party code ↵ | Waylan Limberg | 2010-02-13 | 1 | -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 Dijk | 2010-01-25 | 2 | -81/+80 |
| | | | | highlited when codehilite extension is enabled | ||||
* | Added pygments support to fenced_code | Lucas van Dijk | 2010-01-24 | 1 | -13/+64 |
| | |||||
* | Added processing of markdown text within raw html to the 'extra' extension. ↵ | Waylan Limberg | 2010-01-03 | 1 | -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 Losh | 2009-12-25 | 1 | -1/+4 |
| | |||||
* | Fixed Ticket 37. When multiple markdown documents are displayed on one page and | Waylan Limberg | 2009-07-21 | 1 | -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 Limberg | 2009-07-21 | 1 | -7/+3 |
| | | | | contents. Specificly, when stepping back multiple levels, the nestsed listed now follow suite. Test included. Thanks for the patch Jack Miller. |