instiki/vendor/plugins/maruku/tests/unittest/extra_header_id.md
Jacques Distler 37aff87d71 Sync with latest Maruku
Contains Ari Stern's additions for Blahtex support.
2008-08-05 13:18:23 -05:00

2.2 KiB

Write a comment abouth the test here. *** Parameters: *** {:title=>"Header 1"} *** Markdown input: *** Header 1

Header 2

Header 3

Then you can create links to different parts of the same document like this:

Link back to header 1, Link back to header 2, Link back to header 3

*** Output of inspect *** md_el(:document,[ md_el(:header,["Header 1"],{:level=>1},:id, "header1"), md_el(:header,["Header 2"],{:level=>2},:id, "header2"), md_el(:header,["Header 3"],{:level=>3},:id, "header3"), md_par([ "Then you can create links to different parts of the same document like this:" ]), md_par([ md_im_link(["Link back to header 1"], "#header1", nil), ", ", md_im_link(["Link back to header 2"], "#header2", nil), ", ", md_im_link(["Link back to header 3"], "#header3", nil) ]) ],{},[]) *** Output of to_html ***

Header 1

Header 2

Header 3

Then you can create links to different parts of the same document like this:

Link back to header 1, Link back to header 2, Link back to header 3

*** Output of to_latex *** \hypertarget{header1}{}\section*{{Header 1}}\label{header1}

\hypertarget{header2}{}\subsection*{{Header 2}}\label{header2}

\hypertarget{header3}{}\subsubsection*{{Header 3}}\label{header3}

Then you can create links to different parts of the same document like this:

\hyperlink{header1}{Link back to header 1}, \hyperlink{header2}{Link back to header 2}, \hyperlink{header3}{Link back to header 3} *** Output of to_md *** Header 1Header 2Header 3Then you can create links to different parts of the same document like this:

Link back to header 1, Link back to header 2, Link back to header 3 *** Output of to_s *** Header 1Header 2Header 3Then you can create links to different parts of the same document like this:Link back to header 1, Link back to header 2, Link back to header 3 *** EOF ***

OK!

*** Output of Markdown.pl *** (not used anymore) *** Output of Markdown.pl (parsed) *** (not used anymore)