1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
Write a comment abouth the test here.
*** Parameters: ***
{:use_numbered_headers => true}
*** Markdown input: ***
* Table of Contents
{:toc}
A title with *emphasis*
=======================
## Try ## {#try}
First Subheader
---------------
{#foo}
Say something.
### A title with *emphasis* ###
Say something else.
Second Subheader
--------------
You don't say.
*** Output of inspect ***
md_el(:document,[
md_el(:ul, md_el(:li, "Table of Contents", {:want_my_paragraph=>false}), {}, [[:ref, "toc"]]),
md_el(:header,["A title with ", md_em(["emphasis"])],{:level=>1},[]),
md_el(:header, "Try", {:level=>2}, [[:id, "try"]]),
md_el(:header, "First Subheader", {:level=>2}),
md_par("Say something."),
md_el(:header, ["A title with ", md_em("emphasis")], {:level=>3}),
md_par("Say something else."),
md_el(:header, "Second Subheader", {:level=>2}),
md_par(["You don", md_entity("rsquo"), "t say."])
],{},[])
*** Output of to_html ***
<div class="maruku_toc"><ul><li><span class="maruku_section_number">1. </span><a href="#try">Try</a></li><li><span class="maruku_section_number">2. </span><a href="#foo">First Subheader</a><ul><li><span class="maruku_section_number">2.1. </span><a href="#a_title_with_emphasis_2">A title with <em>emphasis</em></a></li></ul></li><li><span class="maruku_section_number">3. </span><a href="#second_subheader">Second Subheader</a></li></ul></div>
<h1 id="a_title_with_emphasis">A title with <em>emphasis</em></h1>
<h2 id="try"><span class="maruku_section_number">1. </span>Try</h2>
<h2 id="foo"><span class="maruku_section_number">2. </span>First Subheader</h2>
<p>Say something.</p>
<h3 id="a_title_with_emphasis_2"><span class="maruku_section_number">2.1. </span>A title with <em>emphasis</em></h3>
<p>Say something else.</p>
<h2 id="second_subheader"><span class="maruku_section_number">3. </span>Second Subheader</h2>
<p>You don’t say.</p>
*** Output of to_latex ***
\noindent1. \hyperlink{try}{Try}\dotfill \pageref*{try} \linebreak
\noindent2. \hyperlink{foo}{First Subheader}\dotfill \pageref*{foo} \linebreak
\noindent2.1. \hyperlink{a_title_with_emphasis_2}{A title with \emph{emphasis}}\dotfill \pageref*{a_title_with_emphasis_2} \linebreak
\noindent3. \hyperlink{second_subheader}{Second Subheader}\dotfill \pageref*{second_subheader} \linebreak
\hypertarget{a_title_with_emphasis}{}\section*{{A title with \emph{emphasis}}}\label{a_title_with_emphasis}
\hypertarget{try}{}\subsection*{{1. Try}}\label{try}
\hypertarget{foo}{}\subsection*{{2. First Subheader}}\label{foo}
Say something.
\hypertarget{a_title_with_emphasis_2}{}\subsubsection*{{2.1. A title with \emph{emphasis}}}\label{a_title_with_emphasis_2}
Say something else.
\hypertarget{second_subheader}{}\subsection*{{3. Second Subheader}}\label{second_subheader}
You don't say.
*** Output of to_md ***
# A title with *emphasis* #
## A title with *emphasis* ##
#### A title with *emphasis* ####
*** Output of to_s ***
A title with emphasisA title with emphasisA title with emphasis
|