instiki/vendor/plugins/maruku/tests/unittest/attributes/attributes.md
Jacques Distler 38ae064b8a Bundle Latest REXML
Sam Ruby has been doing a bang-up job fixing the bugs in REXML.
Who knows when these improvements will trickle down to vendor distributions of Ruby.
In the meantime, let's bundle the latest version of REXML with Instiki.
We check the version number of the bundled REXML against that of the System REXML, and use whichever is later.
2008-01-11 23:53:29 -06:00

2.3 KiB

This is a simple test for attributes *** Parameters: *** {} *** Markdown input: ***

Header with attributes

Header with attributes

Header no attributes

{:warn2}Paragraph with a. {#par1}

Paragraph with emphasis{:hello notfound} {#par2}

{:hello: .chello} *** Output of inspect *** md_el(:document,[ md_el(:header,["Header with attributes"],{:level=>2},:id, "header1"), md_el(:header,["Header with attributes"],{:level=>3},:id, "header2"), md_el(:header,["Header no attributes"],{:level=>3},[]), md_par(["Paragraph with a."], :id, "par1"), md_par([ "Paragraph with ", md_em(["emphasis"], :ref, "hello"], [:ref, "notfound") ], :id, "par2"), md_el(:ald,[],{:ald=>:class, "chello",:ald_id=>"hello"},[]) ],{},[]) *** Output of to_html ***

Header with attributes

Header with attributes

Header no attributes

Paragraph with a.

Paragraph with emphasis

*** Output of to_latex *** \hypertarget{header1}{}\subsection*{{Header with attributes}}\label{header1}

\hypertarget{header2}{}\subsubsection*{{Header with attributes}}\label{header2}

\hypertarget{header_no_attributes}{}\subsubsection*{{Header no attributes}}\label{header_no_attributes}

Paragraph with a.

Paragraph with \emph{emphasis} *** Output of to_md *** Header with attributesHeader with attributesHeader no attributesParagraph with a.

Paragraph with emphasis *** Output of to_s *** Header with attributesHeader with attributesHeader no attributesParagraph with a.Paragraph with emphasis *** EOF ***

OK!

*** Output of Markdown.pl ***

Header with attributes {#header1}

Header with attributes ### {#header2}

Header no attributes

{:warn2}Paragraph with a. {#par1}

Paragraph with emphasis{:hello notfound} {#par2}

{:hello: .chello}

*** Output of Markdown.pl (parsed) ***

Header with attributes {#header1}

Header with attributes ### {#header2}

Header no attributes

{:warn2}Paragraph with a. {#par1}

Paragraph with emphasis {:hello notfound} {#par2}

{:hello: .chello}