From f039ca04cccf0645a21cb0739c17e5f6abd593fb Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Mon, 2 Aug 2010 23:36:39 -0400 Subject: Fixed problem hidden by Ticket 68. Defining a footnote placeholder in a markdown document results in the placeholder actually being replaced. Also added a test for this. Note that if the placeholder paragraph has other text, that text is lost. Not sure if this is a bug or bad markdown syntax. --- tests/extensions/extra/footnote_placeholder.html | 10 ++++++++++ tests/extensions/extra/footnote_placeholder.txt | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 tests/extensions/extra/footnote_placeholder.html create mode 100644 tests/extensions/extra/footnote_placeholder.txt (limited to 'tests/extensions') diff --git a/tests/extensions/extra/footnote_placeholder.html b/tests/extensions/extra/footnote_placeholder.html new file mode 100644 index 0000000..7aaf4b2 --- /dev/null +++ b/tests/extensions/extra/footnote_placeholder.html @@ -0,0 +1,10 @@ +
+
+
    +
  1. +

    A Footnote. + 

    +
  2. +
+
+

Some text with a footnote1.

\ No newline at end of file diff --git a/tests/extensions/extra/footnote_placeholder.txt b/tests/extensions/extra/footnote_placeholder.txt new file mode 100644 index 0000000..0b0af42 --- /dev/null +++ b/tests/extensions/extra/footnote_placeholder.txt @@ -0,0 +1,5 @@ +///Footnotes Go Here/// + +Some text with a footnote[^1]. + +[^1]: A Footnote. -- cgit v1.2.3