|
Footnotes
The "footnotes" extra
Note: This project has been moved to trentm/python-markdown2 on Github.(Note: This extra is still a little experimental. The final result will be almost exactly as now, but I want to make sure the generated output is as close to other Markdown implementations as reasonable and possible.) Support for footnotes with the following syntax: This is a paragraph with a footnote. [^note-id] [^note-id]: This is the text of the note. Which produces HTML like this: <p>This is a paragraph with a footnote. <sup class="footnote-ref" id="fnref-note-id"> <a href="#fn-note-id">1</a></sup> </p> ... <div class="footnotes"> <hr /> <ol> <li id="fn-note-id"> <p>This is the text of the note. <a href="#fnref-note-id" class="footnoteBackLink" title="Jump back to footnote 1 in the text.">↩</a></p> </li> <li>...for subsequent footnotes </li> </ol> </div> This is as close as I can tell is the favoured output from the following sources:
Notes:
Patch partly from Adam Gomaa (thanks Adam!). (Return to Extras page.) |
► Sign in to add a comment