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 ++++++------ tests/extensions/extra/footnote_placeholder.html | 4 ++-- tests/extensions/extra/named_markers.html | 14 +++++++------- 3 files changed, 15 insertions(+), 15 deletions(-) (limited to 'tests/extensions/extra') 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 diff --git a/tests/extensions/extra/footnote_placeholder.html b/tests/extensions/extra/footnote_placeholder.html index 9c89391..0143145 100644 --- a/tests/extensions/extra/footnote_placeholder.html +++ b/tests/extensions/extra/footnote_placeholder.html @@ -2,8 +2,8 @@
    1. -

      A Footnote. 

      +

      A Footnote. 

    -

    Some text with a footnote1.

    \ No newline at end of file +

    Some text with a footnote1.

    \ No newline at end of file diff --git a/tests/extensions/extra/named_markers.html b/tests/extensions/extra/named_markers.html index f643b7b..55cea31 100644 --- a/tests/extensions/extra/named_markers.html +++ b/tests/extensions/extra/named_markers.html @@ -1,20 +1,20 @@ -

    This is the body with footnotes1 -that have named2 markers and -oddly3 numbered4 markers.

    +

    This is the body with footnotes1 +that have named2 markers and +oddly3 numbered4 markers.


    1. -

      Footnote marked foo

      +

      Footnote marked foo

    2. -

      This one is marked bar

      +

      This one is marked bar

    3. -

      A numbered footnote. 

      +

      A numbered footnote. 

    4. -

      The last one. 

      +

      The last one. 

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