aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extensions/extra/footnote.html
Commit message (Collapse)AuthorAgeFilesLines
* Fix footnote parsing of footnote content (#536)Isaac Muse2017-01-231-0/+26
| | | | | | | Fixes #412 and #493. First we parse footnote content as its own document avoid quirks with using li as a parent. Second, we surround placeholders with STX and ETX to prevent them from interfering with inline parsing; this is also consistent with how placeholders are used everywhere else in Python Markdown.
* Create additional references for duplicate footnotes (#534)Isaac Muse2017-01-231-0/+12
| | | | | | Track when we find duplicate footnote references and create unique ids for them. Then add an additional tree-processor after inline to go back and update the footnotes with additional back references that link to the duplicate footnote references. Fixes #468.
* Fixed #129. Footnotes now output valid HTML5.Waylan Limberg2012-08-091-6/+6
| | | | | | | | | | | | | | | | 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.
* Some more tests for issue #51. An upate to Marcin Kasperski's tests (which I ↵Waylan Limberg2011-11-171-2/+7
| | | | previously merged). Thanks Marcin. Also added a test for not-indented secondary lines of a first paragraph in a footnote definition.
* Fixed #51. Removed recussion from footnote preproccessor. Also refactors the ↵Waylan Limberg2011-11-181-4/+2
| | | | code to provide a few other minor improvements s that output more closely matches php's output. Thus the changes in the tests.
* Fixed Ticket 70 and added a test. Footnote references whithout a ↵Waylan Limberg2010-08-251-0/+1
| | | | 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.
* Moved test dir back out of markdown lib. We don't need to install the tests ↵Waylan Limberg2010-02-121-0/+29
in everyones site-packages. We just need to distrubute them in the tarball for people to run before installing etc.