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/named_markers.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/extensions/extra/named_markers.html') 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