instiki/vendor/plugins/maruku/spec/block_docs/footnotes.md
Jacques Distler 2d303d54a0 Better text/html serialization
For the Andrew Staceys of this world:
deal with empty element in a more
text/html-friendly fashion.
2011-08-27 02:40:40 -05:00

2.9 KiB
Raw Blame History

Write a comment abouth the test here. *** Parameters: *** {:footnotes_used=>["^b", "^c", "^a"]} *** Markdown input: *** That's some text with a footnote 1 and another 2 and another 3.

This is not a footnote. *** Output of inspect *** md_el(:document,[ md_par([ "That", md_entity("rsquo"), "s some text with a footnote ", md_foot_ref("^b"), " and another ", md_foot_ref("^c"), " and another ", md_foot_ref("^a"), "." ]), md_el(:footnote,[ md_par(["And that", md_entity("rsquo"), "s the footnote."]), md_par([ "That", md_entity("rsquo"), "s the second paragraph of the footnote." ]) ],{:footnote_id=>"^a"},[]), md_el(:footnote,[ md_par([ "And that", md_entity("rsquo"), "s the footnote. This is second sentence (same paragraph)." ]) ],{:footnote_id=>"^b"},[]), md_el(:footnote,[ md_par(["This is the very long one."]), md_par(["That", md_entity("rsquo"), "s the second paragraph."]) ],{:footnote_id=>"^c"},[]), md_par(["This is not a footnote."]) ],{},[]) *** Output of to_html ***

Thats some text with a footnote 1 and another 2 and another 3.

This is not a footnote.


  1. And thats the footnote. This is second sentence (same paragraph).

  2. This is the very long one.

    Thats the second paragraph.

  3. And thats the footnote.

    Thats the second paragraph of the footnote.

*** Output of to_latex *** That'{}s some text with a footnote \footnote{And that'{}s the footnote. This is second sentence (same paragraph).} and another \footnote{This is the very long one.

That'{}s the second paragraph.} and another \footnote{And that'{}s the footnote.

That'{}s the second paragraph of the footnote.} .

This is not a footnote. *** Output of to_md *** That s some text with a footnote and another and another .

And that s the footnote.

That s the second paragraph of the footnote.

And that s the footnote. This is second sentence (same paragraph).

This is the very long one.

That s the second paragraph.

This is not a footnote. *** Output of to_s *** Thats some text with a footnote and another and another .And thats the footnote.Thats the second paragraph of the footnote.And thats the footnote. This is second sentence (same paragraph).This is the very long one.Thats the second paragraph.This is not a footnote.


  1. And that's the footnote. This is second sentence (same paragraph). ↩︎

  2. This is the very long one.

    That's the second paragraph. ↩︎

  3. And that's the footnote.

    That's the second paragraph of the footnote. ↩︎