summaryrefslogtreecommitdiff
path: root/markdown/inlinepatterns.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix all pyflakes unused-import/unused-variable warningsDmitry Shachnev2012-11-091-1/+0
|
* Fix silly typo in previous commit.Waylan Limberg2012-11-011-1/+1
|
* A better fix for #155. Unescaping inline placholders now returns the text ↵Waylan Limberg2012-11-011-6/+19
| | | | only of an Element - rather than the html which just gets html escaped in the output anyway.
* Fixed #154. Inline placeholders in img alt text are now unescaped.Waylan Limberg2012-11-011-1/+1
|
* Fixed #155. Early unescaping of inline placeholders now works when the ↵Waylan Limberg2012-11-011-1/+5
| | | | placeholder is an Elementtree Element.
* Fixed #153. Two spaces at end of paragraph is not a linebreak.Waylan Limberg2012-10-211-2/+0
|
* Fixed #152. Spaces in links are now escaped.Waylan Limberg2012-10-211-0/+1
|
* Misc typos.chri2012-08-281-1/+1
|
* Always use Markdown's serializers.Waylan Limberg2012-01-201-1/+1
| | | | | Not only does this ensure that all output matches the output_format, but it is nessecary to run in Python 3.
* Inline html is now escaped by the searializer.Waylan Limberg2012-01-191-1/+2
| | | | | | | | Final fix to issue introduced in fix for #59. Weird stuff inside angle brackets now also work in safe_mode='escape'. We just did the same thing as with block html, let the (x)html searializer do the escaping. Tests updated including the standalone test moved to match the non-escape cases.
* Partial fix for issue introduced in fix for #59Waylan Limberg2012-01-191-2/+7
| | | | | Markdown markup inside angle bracktes now gets rendered properly in all cases except when safe_mode='escape'. Also added tests.
* Fixed #59. Raw HTML parsing is no longer slow.Waylan Limberg2012-01-181-2/+13
| | | | | | Replaced the unescape method I carlessly threw in the RawHtmlProcessor. Unfortunetly, this reintroduces the bug just fixed in commit 425fde141f17973aea0a3a85e44632fe18737996 Sigh!
* Fix logic bug introduced in 35930e0928e19...Mike Dirolf2012-01-141-1/+1
|
* Fixed #69. url_sanitize no longer crashes on unparsable urls.Waylan Limberg2012-01-151-9/+18
| | | | | | | | | | Also optimized the code to bypass parsing when not in safe_mode and return immediately upon failure rather than continue parsing when in safe_mode. Note that in Python2.7+ more urls may fail than in older versions because IPv6 support was added to urlparse and it apparently mistakenly identifies some urls as IPv6 when they are not. Seeing this only applies to safe_mode now, I don't really care.
* Allow UPPERCASE urls in auto links.Waylan Limberg2011-10-061-1/+1
|
* Fixed #39. Refactored escaping so that it only escapes a predifined set of ↵Waylan Limberg2011-08-171-3/+13
| | | | chars (the set defined by JG in the syntax rules). All other backslashes are passed through unaltered by the parser. If extensions want to add to the escapable chars, they can append to the list at markdown.ESCAPED_CHARS.
* Fixed #23. Turns out markdown.pl only allows up to one space between ↵Waylan Limberg2011-06-161-2/+2
| | | | brackets in reference links. Now we do as well.
* Fixed #19. Improved Start Emphasis regex.Waylan Limberg2011-06-071-1/+1
|
* Minor adjustment to previous commit. Reference links don't need unescaped as ↵Waylan Limberg2011-06-021-4/+4
| | | | they are removed before escaping takes place. Related to issue #14.
* Partial fix of issue #14. hrefs (and titles) are now unescaped, but it ↵Waylan Limberg2011-06-021-10/+23
| | | | uppears that we are loosing escaped backslashes (both in the href and in the link label in the example given in issue 14.
* Fixed a few inline issues found from running the currenlty skipped tests ↵Waylan Limberg2010-11-041-7/+9
| | | | from tests/pl/Tests_2007/. Namely, improved simple reference links and fixed a small issue with titles in links.
* Added short reference links. No more hanging empty brackets on reference ↵Waylan Limberg2010-10-111-12/+15
| | | | links; i.e., [this works]. Associated with and noted as missing when debuging Ticket 79.
* Fixed Ticket 79. Linebreaks in reference link identifiers are now ignored. ↵Waylan Limberg2010-10-111-0/+5
| | | | This matches the most recent version of markdown.pl among other implementations and allows links to work after editors do autolinebreak stuff to text.
* Added the re.UNICODE flag to inlinepatterns. Now all inlinepattern regex ↵Waylan Limberg2010-09-201-1/+2
| | | | will match unicode characters when \w, \b, or \s is used. Also updated docs to reflect change.
* Fixed Ticket 66. We have dropped official support for Python 3.0 and now ↵Waylan Limberg2010-07-141-4/+7
| | | | only officially support Python 3.1+ in the Python 3 series (we still support 2.4, 2.5 & 2.6 in the Python 2 series). If you really must use Python 3.0, we suggest using Python 3.1's 2to3 tool. See comment in source and Ticket 66 for more.
* A better implementation of globals as attributes on the Markdown class. This ↵Waylan Limberg2010-07-071-2/+2
| | | | should be more future proof.
* Factored out the building of the various processors and patterns into ↵Waylan Limberg2010-07-071-0/+28
| | | | 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-7/+3
|
* Rename misc.py to util.py at the request of upstreamToshio Kuratomi2010-07-051-21/+21
|
* Break cyclic import of markdown. This allows people to embed markdownToshio Kuratomi2010-07-051-21/+21
| | | | if they desire.
* Fixed Ticket 38. With smart_emphasis turned on, emphasised text can now be ↵Waylan Limberg2009-07-211-1/+1
| | | | wrapped in punctuation without spaces and still will be converted to emphasis (ie: '[_foo_]'). Test included. Thanks for the report seanh.
* Fixed ticket 33. Tweaked the regex for inline links so that the title is ↵Waylan Limberg2009-05-061-1/+1
| | | | non-greedy - it no longer eats everything between the first links title and the last links title in a paragraph. Thanks to Charles Winebrinner for the report.
* Improved inline pattern regex for em & strong and added tests. Fixes Ticket ↵Waylan Limberg2009-03-301-6/+6
| | | | 30 and other related issues. Note that I went with php's behavior rather than perl's when we have have three (ie.: *** or ___) without a closing three.
* Fixed attribute creation to remove newlines and associated misc/uche test. ↵Waylan Limberg2008-12-081-1/+1
| | | | Apparently differant versions of ElementTree encode line breaks in attributes differantly. Therefore, we just remove any such linebreaks as they are insignificant anyway.
* Different way of importing htmlentitydefs for python 3.0 and disabling diff ↵Yuri Takhteyev2008-12-041-1/+5
| | | | | | output in test-markdown.py for the same.
* Getting rid of has_key for compatibility with python3k.Yuri Takhteyev2008-12-041-1/+1
|
* Attempting a refactoring, breaking markdown into multiple files.Yuri Takhteyev2008-11-171-0/+367