aboutsummaryrefslogtreecommitdiffstats
path: root/markdown
Commit message (Collapse)AuthorAgeFilesLines
* Upped version to 2.2.1.Waylan Limberg2012-11-041-2/+2
|
* 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
|
* Fixed #151. Raw html matching is now case-insensitive.Waylan Limberg2012-10-211-1/+1
|
* Typo: Boolen -> Boolean.Grahack2012-08-291-2/+2
|
* Misc typos.chri2012-08-282-2/+2
|
* Merge branch 'master' of https://github.com/waylan/Python-MarkdownWaylan Limberg2012-08-231-1/+1
|\
| * Fixed unicode breakage.Erik van Zijst2012-08-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | slugify() requires unicode, not a str instance. This causes the extension to crash: File "/home/erik/virtualenv/bb/local/lib/python2.7/site-packages/markdown/__init__.py" in markdown 386. return md.convert(text) File "/home/erik/virtualenv/bb/local/lib/python2.7/site-packages/markdown/__init__.py" in convert 287. newRoot = treeprocessor.run(root) File "/home/erik/virtualenv/bb/local/lib/python2.7/site-packages/markdown/extensions/headerid.py" in run 140. id = slugify(''.join(itertext(elem)), sep) File "/home/erik/virtualenv/bb/local/lib/python2.7/site-packages/markdown/extensions/headerid.py" in slugify 93. value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore') TypeError: must be unicode, not str
* | Fixed encoding issues when writing to stdout.Waylan Limberg2012-08-231-2/+9
|/ | | | | | | | | | | | | | | | | In Python 2.x, if you write to stdout and stdout is piped (for example: `python -m markdown foo.txt | less`), then `sys.stdout.encoding` is `None` and an error is rasied. Commit 1132f9e20cd7a5d6be809651f1034c44c32dbc0e was an attempt to fix this, and it works in Python 2.x. However, it does not work in Python 3.x, which does not exhibit this problem. In fact, that fix actually breaks things in Python 3 whether the output is piped or not. Additionaly, in Python 2.x, the fix is not needed if the output is not being piped. As we do not have a version specific issue, but an issue with `sys.stdout.encoding`, we check for that to determine which way to go. This way, the "right thing" *should* happen every time.
* Fixed #129. Footnotes now output valid HTML5.Waylan Limberg2012-08-091-2/+7
| | | | | | | | | | | | | | | | As HTML5 has depreciated use of `rev=anything` and `rel=footnotes`, they are no longer inlcuded in the output when the output_format is set to HTML5. Note that if someone successful registers a spec for `rel=footnotes` in the future (as a microformat), then that could be considered valid. But until that happens, it is invlaid to use in HTML5. Therefore, we remove it from the output (when outputing HTML% only). As an alternative, two new classes are set (in all output_formats). On the link to the footnote (where `rel=footnotes` was used), we set `class=footnote-ref` and on the backlink (where `rev=footnote` was used), we set `class=footnote-backref`. Also updated the tests to reflect to the new classes in the output.
* Improved `Markdown.set_output_format()`Waylan Limberg2012-08-091-4/+10
| | | | | | | | | | Specificaly, `self.output_format` is defined and contains a string of the output format used on the instance. This is more useful that an instance of the searializer when determining alternate behavior elsewhere in the parser. For example, see Issue #129. Also cleaned up the error when an invalid format is provided. We now re-raise the original error (with a custom message) rather than raising a new error.
* Fixed UnicodeEncodeError when output from markdown_py is piped into another ↵Alexander Artemenko2012-07-261-1/+2
| | | | | | | program. In this case text should be encoded into the output encoding explicitly, because sys.stdout.encoding is None, when piping data.
* Added support for <foo>+<bar> lexers of Pygmentspapaeye2012-07-211-1/+1
|
* Merge branch 'master' of github.com:Scorpil/Python-MarkdownScorpil2012-07-201-2/+1
|\ | | | | | | | | Conflicts: markdown/odict.py
| * Added more expressive description of an error.Scorpil2012-07-201-1/+5
| |
* | Added more expressive description of an error.Scorpil2012-07-201-1/+5
|/
* Stack Overflow does NOT convert single linebreaks in markdown to `<br>` tags.Adrian2012-07-161-1/+1
|
* Fixed 113. We still support Python 2.5 until Markdown version 2.3.Waylan Limberg2012-07-121-1/+1
|
* Fixed #112 and cleaned up error reporting when loading extensions.Waylan Limberg2012-07-121-9/+13
|
* Upped version to 2.2.0-Final.2.2.0.finalWaylan Limberg2012-07-051-1/+1
|
* Fixed #106. Replaced all references to freewisdom.org (except for Yuri's ↵Waylan Limberg2012-06-2811-18/+18
| | | | homepage).
* Fixed #109. The attr_list extension can now be loaded either before or after ↵Waylan Limberg2012-06-281-2/+6
| | | | the headerid extension.
* Fixed #105. Non-existant extensions fail with a warning only.Waylan Limberg2012-06-281-1/+1
|
* Fix #99. Account for empty header IDs when ensuring uniqueness.Waylan Limberg2012-05-241-1/+1
|
* Fixed Issue #98. The language designator must start at the beginging of the ↵Waylan Limberg2012-05-181-1/+1
| | | | first line of a code block for codehilite to recognize it.
* Updated version to 2.2.0.alpha.2.2.0.alphaWaylan Limberg2012-05-041-20/+20
|
* Fixed #82. 'enable_attributes' honors 'safe_mode'.Waylan Limberg2012-05-031-0/+4
| | | | | | | Note that you can still explicitly set 'enable_attributes' and that value will be honored regardless of 'safe_mode'. However if 'safe_mode' is on and 'enable_attributes' is not explicitly set, then 'enable_attributes' defaults to False.
* Fixed #87Catalin Iacob2012-04-161-6/+7
| | | | Elements should be inserted in the tree regardless of enable_attributes
* Remove `<ins>` and `<del>` from html block element listfin2012-04-111-1/+1
| | | | They are span elements. `<del>` is explicitly mentioned as such in the [markdown syntax document](http://daringfireball.net/projects/markdown/syntax)
* Allow blockprocessor.run to return True or False.Waylan Limberg2012-03-211-4/+5
| | | | | | | | | This allows the run method to determine if a block is or is not a match in the midst of parsing outside of the test method. The goal is to eliminate the often redundant test method in the future. In the interim, it remains and if the run method returns None, the existing behavior is maintained. Returning None may generate a DepreciationWarning later. Note that test must still return True to even get to the run method.
* Fixed #85. Odict now handles link errors correctly.Waylan Limberg2012-03-191-3/+3
| | | | Also added a test. Thanks for the report.
* Typo fix in doc: s/extension-configs/extension_configs/Simon Sapin2012-03-191-1/+1
|
* Point to docs hosted with PyPI rather than Yuri's missing site.Waylan Limberg2012-03-071-1/+1
|
* Fixed #79. stdout now works from windows command line on Python 3.Waylan Limberg2012-02-131-1/+1
| | | | stdout is used later based on output being None. Don't try to get a jump on that.
* Fixed #78. Added support for two line link refs.Waylan Limberg2012-02-021-13/+14
| | | | | Also refactored the reference preprocessor to make this a little easier to implement. Regex does more now.
* Fixed #76. HTML attrs are a dict not a tuple. Silly typo.Waylan Limberg2012-01-301-1/+1
|
* Fixed #77. util.isBlockLevel() needs to check entire tag passed to it.Waylan Limberg2012-01-302-3/+3
|
* Fixed #75. Right tags in raw html are more properly identified.Waylan Limberg2012-01-301-1/+1
|
* Merge pull request #50 from nud/import-extensionsWaylan Limberg2012-01-241-6/+7
|\ | | | | Allow specifying the full module name for extensions.
| * Allow specifying the full module name for extensions.Steve Frécinaux2011-11-021-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | Before this patch, it was possible to pass a list of extensions and parameters to use when instantiating a new Markdown instance, but it was not possible to give a full module name; the extension had to be a submodule in markdown.extensions. Now we allow giving a full module path, to make it easy to use custom extensions which are not bundled within the markdown package. The previous behaviour has been retained when there is no '.' in the extension name.
* | Fixes #64. Added sane_list extension.Waylan Limberg2012-01-241-0/+49
| | | | | | | | | | | | | | | | | | | | This is an extension which alters the behavior of lists to be less surprising. If turned out to be rather simple to code. I'm surprised no one had written it yet. I should note that this extension does not generate separate lists if different unordered list markers are used (`*` verses `-` verses `+`) The way the parser works that would be a little more tricky.
* | Provide more control to list processors subclasses.Waylan Limberg2012-01-241-1/+3
| | | | | | | | | | This will make it easier for extensions to subclass the list block processors and alter their behavior. Such as the request in issue #64.
* | Release 2.1.1. A bugfix release.2.1.1.finalWaylan Limberg2012-01-221-3/+3
| |
* | Fixed #73. Codehilite now works in footnotes.Waylan Limberg2012-01-202-4/+4
| | | | | | | | | | | | | | | | The footnotes treeprocessor must be the first one run so that all others, including codehilite's, can run on the contents of the footnote div which is created and inserted by the footnotes treeprocessor. Thanks to startling for the report.
* | It is spelled 'serializers' not 'searializers'.Waylan Limberg2012-01-202-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-182-14/+13
| | | | | | | | | | | | Replaced the unescape method I carlessly threw in the RawHtmlProcessor. Unfortunetly, this reintroduces the bug just fixed in commit 425fde141f17973aea0a3a85e44632fe18737996 Sigh!
* | Merge branch 'master' of git://github.com/fiesta/Python-Markdown into fiestaWaylan Limberg2012-01-184-5/+9
|\ \ | | | | | | | | | | | | Conflicts: markdown/inlinepatterns.py