summaryrefslogtreecommitdiff
path: root/markdown
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #317 from mitya57/doctestsWaylan Limberg2014-06-167-37/+37
|\ | | | | Python 3.4 and fixes for doctests
| * Make doctests support Python 3Dmitry Shachnev2014-06-117-33/+33
| |
| * Fix a doctest in fenced_code.py.Andrey Rahmatullin2014-05-311-4/+4
| |
* | Fix #315: Change order of smarty patterns to make the test pass againDmitry Shachnev2014-06-081-2/+2
|/
* Merge pull request #311 from mitya57/masterWaylan Limberg2014-05-262-7/+14
|\ | | | | Make smarty extension work together with attr_list
| * Make smarty extension use its own InlineProcessorDmitry Shachnev2014-05-261-5/+11
| |
| * Make it easier to override list of inline patterns for InlineProcessorDmitry Shachnev2014-05-261-2/+3
| |
* | Support extensions as modules.Waylan Limberg2014-05-231-1/+1
| | | | | | | | | | | | | | | | | | | | Fixes #300. When a python module (.../__init__.py) is imported by `__import__` and the `from_list` argument is a unicode string (as is returned by rpartition), then an error is raised in Python 2.7. Force conversion to default string type (byte in 2.7 and unicode in 3) to avoid the error. For a full explaination, see issue [300](https://github.com/waylan/Python-Markdown/issues/300).
* | Upped version to 2.4.12.4.1-finalWaylan Limberg2014-05-221-1/+1
| |
* | Fix issue308 and fix (unrelated) failure to break out of nest loop.ryneeverett2014-05-212-22/+16
|/
* smarty: Fix test failure with Python 3.1 and 3.2. Fixes #295Dmitry Shachnev2014-03-111-1/+1
|
* smarty: Pass tuples, not iterable strings to the pattern.Dmitry Shachnev2014-03-111-3/+3
|
* added nav-tag as block level elementDavid2014-03-021-1/+1
|
* Upped version to 2.4 final.2.4-finalWaylan Limberg2014-02-161-1/+1
|
* docs: improved documentation of the extra/ extensionsJakub Klinkovský2014-02-151-1/+1
| | | | | | Simplified, unified style, added some undocumented options. NOTE: Footnotes/UNIQUE_IDS stays mostly undocumented
* smarty: Get rid of canonicalize() function.Dmitry Shachnev2014-02-131-51/+16
| | | | | | | | The previous problem happened because canonicalize() removed the space from closeClass regexp. Instead of fixing the function, get rid of it completely. It should also make module load a bit faster.
* Fix some tests failuresDmitry Shachnev2014-02-121-1/+1
|
* No longer restrict INLUNE_PLACEHOLDER to 4 digits.Waylan Limberg2014-02-021-1/+1
| | | | | | This was limiting the parser to only 10,000 placeholders (0-9999) per document. removing this limitation allows longer documents ot be parsered correctly. Fixes #255.
* Merge branch 'master' of github.com:waylan/Python-MarkdownWaylan Limberg2014-01-121-0/+2
|\
| * Merge pull request #267 from ryneeverett/attr_list-tablesWaylan Limberg2014-01-111-0/+2
| |\ | | | | | | tables and attr_list compatibility
| | * tables and attr_list compatibilityryneeverett2013-11-131-0/+2
| | |
* | | Improved multiline comment parsing.Waylan Limberg2014-01-121-4/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #257 and slightly alters comment parsing behavior. Unlike self-closing tags, a comment can contain angle brackets between the opening and closing tags. The greaterthan angle bracket at the end of the first block should not be mistaken for closing the comment. Need to actually check for a comment closing tag (`-->`). If one if not found, then the comment keeps going (to the end of the document if nessecary) just like in HTML. That last bit is a slight change from previous behavior, but should be unsurprising as that's how broswers parse html comments. And as far as I can tell, more implementations follow this behavior than any other. The ones that don't seem to be all over the place.
* | No longer percent encode spaces in urls.Waylan Limberg2014-01-091-1/+0
| | | | | | | | | | | | | | | | | | | | | | The current implementation was wrong as it also percent encoded query strings (which should be plus encoded) and calling urllib.quote on the path (and urllib.quote_plus on the query string) assumes the url is not already encoded. What if the document author pasted a url that was already encoded? She probably did not intend for `%20` to become `%2520`. Or did she? It is now clear to me why many implementation do nothing to urls. Just pass them though as-is. To bad if they are not valid HTML. HTML authors have to encodee their own urls, so I guess markdown authors have to as well.
* | Only escape ESCAPED_CHARS.Waylan Limberg2014-01-091-1/+1
| | | | | | | | | | | | Leave all other chars prefaced by a backslash alone. Fixes #242. Not sure why I thought that I needed to add another backslash. Thanks for the report and the test case @mhubig.
* | Address various depreciated APIs in PythonWaylan Limberg2014-01-083-12/+12
| | | | | | | | | | This mostly revolves around old APIs for ElementTree, but includes a few others as well. Fixes #254. Thanks for the report.
* | Merge pull request #274 from ajdavis/highlight-linesWaylan Limberg2014-01-072-11/+58
|\ \ | | | | | | Add feature for emphasizing some lines in a code block.
| * | Allow single as well as double quotes for hl_lines.A. Jesse Jiryu Davis2014-01-072-2/+4
| | |
| * | Support syntax for highlighted lines like: ```python hl_lines=“1 3”A. Jesse Jiryu Davis2014-01-062-6/+12
| | |
| * | Add feature for emphasizing some lines in a code block.A. Jesse Jiryu Davis2014-01-032-11/+50
| | | | | | | | | | | | A code blocked headed by “:::python{1,3}” now emphasizes the first and third lines. With fences enabled, ```python{1,3} has the same effect.
* | | Fixed parsing of brackets within inline image titles.Darell Tan2014-01-051-1/+1
|/ /
* | Miscellaneous improvements and bug fixes.ryneeverett2013-11-192-15/+19
|/
* Issue #52ryneeverett2013-10-143-51/+177
|
* Merge pull request #252 from mitya57/masterWaylan Limberg2013-09-294-36/+51
|\ | | | | Enable anchorlinks in Python-Markdown documentation
| * toc: insert `¶` instead of raw unicode characterDmitry Shachnev2013-09-291-3/+3
| |
| * Add new "permalink" option to toc extensionDmitry Shachnev2013-09-252-14/+32
| | | | | | | | and use it in our docs
| * Add new utility function parseBoolValue()Dmitry Shachnev2013-09-254-23/+20
| | | | | | | | and use it in all extension that need parsing bool config values.
* | Update __init__.pyMark Eichin2013-09-261-1/+1
|/ | | spelling.
* Fix: "AttributeError: 'dict_items' object has no attribute 'sort'"Lucas Clemente Vella2013-09-111-1/+1
| | | | Happens on pip install with Python 3.
* fix typoFND2013-09-041-1/+1
|
* Ensure each term on def list maintains its own loose status.Waylan Limberg2013-09-021-1/+1
| | | | | | Previously, the code was ignoring whether this was a new term when determining whether the currect item should be loose or not. Fixes #243. Thanks for the report @Anomareh.
* Typo in util.pyGrahack2013-08-241-1/+1
| | | implemenation -> implementation
* Allow fenced_code to be configurable in subclasses.Waylan Limberg2013-08-191-10/+9
| | | | | Not sure why I was using global variables here. Anyway. Fixed now. Thanks to Andrew for pointing it out.
* Added release notes for pending release of v2.4.Waylan Limberg2013-08-131-1/+1
| | | | | Since adding the new smarty extension, the nex release it more than just a bugfix release.
* Deprecated CodeHilite's force_linenos config setting.Waylan Limberg2013-08-131-1/+1
| | | | It was previously marked pendingdeprecation in v2.3. Now deprecated.
* Extended headerid's rawHTML in id handling to toc ext.Waylan Limberg2013-08-112-16/+20
|
* Allow extensions to register serializersWaylan Limberg2013-08-072-8/+10
| | | | | | | | | Setting output_format must happen after extensions are loaded. Only in that way can an extension register a serializer so that it will then be available to be used with the output_format keyword. A test has been added to avoid this regression from happening again in the future. Fixes #238, partially reverses commit 41cc055 and provides a better fix for
* Serializers now preserve case of tags.Waylan Limberg2013-08-071-4/+3
| | | | | | | It is up to the markdown code (and extension authors to make sure tags are of the correct case (there may be cases were an extension might need to mix cases - which should be preserved). Fixes #237. Thanks for the report @eichin.
* HeaderID Ext now handles raw html in ids. Fixes #232Waylan Limberg2013-07-282-2/+20
|
* Fix Python 3 compat in Attr_list. Fixes #218.Waylan Limberg2013-07-281-1/+1
|
* Some fixes requested by @waylan, cleanup and tests improvementsDmitry Shachnev2013-07-271-11/+9
|