diff options
author | Waylan Limberg <waylan@gmail.com> | 2007-11-29 17:18:33 +0000 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2007-11-29 17:18:33 +0000 |
commit | 9f8372ece0b824e2038a7b728064ae454283db68 (patch) | |
tree | 8bbc4f1fc58636beb828f4ff2ad51745de413242 /tests/footnote.txt | |
parent | 991ea1682465bd6f3e41e1d22fc541f41dd78c5e (diff) | |
download | markdown-9f8372ece0b824e2038a7b728064ae454283db68.tar.gz markdown-9f8372ece0b824e2038a7b728064ae454283db68.tar.bz2 markdown-9f8372ece0b824e2038a7b728064ae454283db68.zip |
Footnotes that end in anyting but a <p> (list, blockquote, codeblock) now have
the backlink in a <p> 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 <p> element. This results in one-liners also wrapped in <p>
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.
Diffstat (limited to 'tests/footnote.txt')
-rw-r--r-- | tests/footnote.txt | 14 |
1 files changed, 14 insertions, 0 deletions
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. |