instiki/vendor/plugins/maruku/tests/unittest/extra_header_id.md
Jacques Distler 4586614914 Misc Cleanup
Cleaned up some dependencies, and added a mime_types.yml file for Mongrel-compatibility.
2008-01-14 14:46:38 -06:00

2.9 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 ***

Header 1 {#header1}

Header 2 {#header2}

Header 3 ### {#header3}

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 Markdown.pl (parsed) ***

Header 1 {#header1}

Header 2 {#header2}

Header 3 ### {#header3}

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