aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/blockprocessors.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #47. Improved HRProccessor.\n\nPython's re module does not support ↵Waylan Limberg2011-11-171-18/+19
| | | | atomic grouping, which was slowing the HR regex down if a long HR ended with a non HR char (casing the regex to backtrack). Therefore, we have to simulate atomic grouping. Fortunately, we only need to match end-of-line or end-of-string after the atomic group here, so it was an easy case to simulate. Just remove the '$' from the end of the regex and manualy check using m.end(). The run method was refactored while I was at it, saving us from running the regex twice for each HR.
* Fixed #22. Horizontal rules now work in a few more crazy edge cases. Who ↵Waylan Limberg2011-06-161-1/+1
| | | | actualy useses these? Anyway, we now match markdown.pl.
* Fixed #21. A header and paragraph not seperated by a blank line inside a ↵Waylan Limberg2011-06-151-4/+27
| | | | list item are now parsed correctly. One of those crazy wierd edge cases that no one would ever test for, but is obvious once you see it.
* Fixed #15. Setext Headers now work with any number of - or = characters.Waylan Limberg2011-06-011-1/+1
|
* Made lazy ordered lists a settable option. The previous behavior (on) is the ↵Waylan Limberg2011-04-291-1/+1
| | | | default.
* Merge commit 'refs/merge-requests/13' of ↵Waylan Limberg2011-04-281-1/+16
|\ | | | | | | git://gitorious.org/python-markdown/mainline into merge-requests/13
| * fixed startindex reset in multiple ulRohan Jain2011-04-051-6/+4
| | | | | | | | | | Now the startindex would be reset if continual unordered lists are present (tests are passed).
| * add new list item commentRohan Jain2011-04-031-0/+1
| |
| * custom index support for ol tagRohan Jain2011-04-031-1/+17
| | | | | | | | | | | | | | A ol tag with custom start index can be defined by using a different integer as the first item numbering. Search for `3. Bird` on: http://daringfireball.net/projects/markdown/syntax
* | fix import loop when importing loggerCraig de Stigter2011-04-181-1/+3
| |
* | sane logging. remove sys.exit() calls (libraries should never ever call ↵Craig de Stigter2011-04-181-3/+2
|/ | | | 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)
* A better implementation of globals as attributes on the Markdown class. This ↵Waylan Limberg2010-07-071-11/+11
| | | | should be more future proof.
* Factored out the building of the various processors and patterns into ↵Waylan Limberg2010-07-071-0/+18
| | | | utility functions called by a build_parser method on the Markdown class. Editing of the processors and patterns now all happen in one file for each type. Additionaly, a subclass of Markdown could potentially override the build_parser method and build a parser for a completely differant markup language without first building the default and then overriding it.
* Moved a bunch of global variables to the instance of the Markdown class.Waylan Limberg2010-07-061-11/+15
|
* 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-051-27/+27
|
* Break cyclic import of markdown. This allows people to embed markdownToshio Kuratomi2010-07-051-29/+29
| | | | if they desire.
* Fix for undefined variables that need to be importedToshio Kuratomi2010-07-051-0/+1
|
* Blockquoted text in the first item of a list is now placed in child p tag of theGerry LaMontagne2010-03-231-25/+3
| | | | blockquote tag. Added lists8.txt and .html for test suite to test condition.
* Fixed ticket 58. The first item of a looselist gets placed in p tags whenGerry LaMontagne2010-03-221-3/+35
| | | | | | it has a sublist. Previously, the test suite erroneously passed this condition because there was an error in the expected '.html' output file. The expected output has been corrected as well.
* Fixed Ticket 57. Lists where the first line of an item is a nested item, now ↵Waylan Limberg2010-03-191-2/+17
| | | | observe rules for using p tags. Thanks to Gerry LaMontagne for the patch.
* Fixed Ticket 53. Nested lists no longer isorder items in certain edge cases. ↵Waylan Limberg2010-03-151-1/+5
| | | | Thanks for the report and preliminary work Gerry LaMontagne.
* Fixed ticket 35. Lists now work when padded with five or more spaces after ↵Waylan Limberg2009-06-171-4/+4
| | | | asterisk. Adjusted regex to eat all (one or more) of the spaces. While it may seem wrong (at least in the loose list case), this is how all other implementations work. And it solves a number of edge cases otherwise not accounted for in the list parser.
* Completed nested lists and added a test. All tests pass.Waylan Limberg2009-02-041-5/+18
|
* Added support for multilevel lists - step one. Currently only works for ↵Waylan Limberg2009-02-041-7/+26
| | | | loose lists. In fact, non-loose lists are currently broken - seen as code blocks.
* Making the space after angle brackets optional in blockquotes.Yuri Takhteyev2008-12-241-1/+1
|
* Fixed minor typo in each of previous two commits.Waylan Limberg2008-11-221-1/+1
|
* Made a few minor tweaks to list blockprocessors to make subclassing easier ↵Waylan Limberg2008-11-221-8/+15
| | | | without rewriting the whole thing.
* Fixed BlockParser to parse code blocks nested in list items and added a ↵Waylan Limberg2008-11-181-0/+3
| | | | test. Somehow we never had a test for that before. Also reset markdown.py to be executable again.
* Attempting a refactoring, breaking markdown into multiple files.Yuri Takhteyev2008-11-171-0/+418