From 9f8372ece0b824e2038a7b728064ae454283db68 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Thu, 29 Nov 2007 17:18:33 +0000 Subject: Footnotes that end in anyting but a

(list, blockquote, codeblock) now have the backlink in a

which is appended to the end of the footnote. Fixes [1831600] Also fixed multiparagraph footnotes so that the first paragraph is actually wrapped in a

element. This results in one-liners also wrapped in

elements, but this is inline with PHP Markdown Extra's behavior. That means the test for `node.type == "text"` should never get a match, but I'm leaving it in for now. Also added some tests, although they are not properly included in a test directory for use with the testing framework. Seeing the framework currently ignores extensions, we'll worry about that later. --- tests/footnote.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/footnote.txt (limited to 'tests/footnote.txt') diff --git a/tests/footnote.txt b/tests/footnote.txt new file mode 100644 index 0000000..07188d0 --- /dev/null +++ b/tests/footnote.txt @@ -0,0 +1,14 @@ +This is the body with a footnote[^1] or two[^2] or more[^3] [^4]. + +[^1]: Footnote that ends with a list: + + * item 1 + * item 2 + +[^2]: > This footnote is a blockquote. + +[^3]: A simple oneliner. + +[^4]: A footnote with multiple paragraphs. + + Paragraph two. -- cgit v1.2.3