From 2fe5b5b5803c138f70e5c90aaa77f85f3c596f1d Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Thu, 9 Aug 2012 06:15:17 -0400 Subject: Fixed #129. Footnotes now output valid HTML5. As HTML5 has depreciated use of `rev=anything` and `rel=footnotes`, they are no longer inlcuded in the output when the output_format is set to HTML5. Note that if someone successful registers a spec for `rel=footnotes` in the future (as a microformat), then that could be considered valid. But until that happens, it is invlaid to use in HTML5. Therefore, we remove it from the output (when outputing HTML% only). As an alternative, two new classes are set (in all output_formats). On the link to the footnote (where `rel=footnotes` was used), we set `class=footnote-ref` and on the backlink (where `rev=footnote` was used), we set `class=footnote-backref`. Also updated the tests to reflect to the new classes in the output. --- tests/extensions/extra/footnote.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/extensions/extra/footnote.html') diff --git a/tests/extensions/extra/footnote.html b/tests/extensions/extra/footnote.html index 02dcc02..e5b41a7 100644 --- a/tests/extensions/extra/footnote.html +++ b/tests/extensions/extra/footnote.html @@ -1,4 +1,4 @@ -

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

+

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

Also a reference that does not exist[^6].


@@ -9,25 +9,25 @@
  • item 1
  • item 2
  • -

    +

  • This footnote is a blockquote.

    -

    +

  • -

    A simple oneliner. 

    +

    A simple oneliner. 

  • A footnote with multiple paragraphs.

    -

    Paragraph two. 

    +

    Paragraph two. 

  • First line of first paragraph. Second line of first paragraph is not intended. -Nor is third... 

    +Nor is third... 

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