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.html | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 tests/footnote.html (limited to 'tests/footnote.html') diff --git a/tests/footnote.html b/tests/footnote.html new file mode 100644 index 0000000..6114176 --- /dev/null +++ b/tests/footnote.html @@ -0,0 +1,40 @@ +

This is the body with a footnote1 or two2 or more3 4. +

+ +

    +
  1. Footnote that ends with a list: +

    +
      +
    • + item 1 +
    • + +
    • + item 2 +
    • +
    +

    +

    + +
  2. + +
  3. This footnote is a blockquote. +

    +

    +

    + +
  4. + +
  5. A simple oneliner. +

    + +
  6. + +
  7. A footnote with multiple paragraphs. +

    +

    Paragraph two. +

    + +
  8. +
+
\ No newline at end of file -- cgit v1.2.3