instiki/vendor/plugins/maruku/tests/unittest/ie.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

128 lines
3.4 KiB
Markdown

We must make sure that `'` is always written as `'`.
*** Parameters: ***
{} # params
*** Markdown input: ***
`<p>here's an apostrophe & a quote "</p>`
<p>here's an apostrophe & a quote "</p>
{:}
<p>here's an apostrophe & a quote "</p>
{:lang=xml}
<p>here's an apostrophe & a quote "</p>
{:html_use_syntax=true lang=not_supported}
<p>here's an apostrophe & a quote "</p>
{:html_use_syntax=true lang=xml}
*** Output of inspect ***
md_el(:document,[
md_par([md_code("<p>here's an apostrophe & a quote \"</p>")]),
md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[]),
md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[["lang", "xml"]]),
md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[["html_use_syntax", "true"], ["lang", "not_supported"]]),
md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[["html_use_syntax", "true"], ["lang", "xml"]])
],{},[])
*** Output of to_html ***
<p><code>&lt;p&gt;here&#39;s an apostrophe &amp; a quote &quot;&lt;/p&gt;</code></p>
<pre><code>&lt;p&gt;here&#39;s an apostrophe &amp; a quote &quot;&lt;/p&gt;</code></pre>
<pre lang='xml'><code class='xml' lang='xml'>&lt;p&gt;here&#39;s an apostrophe &amp; a quote &quot;&lt;/p&gt;</code></pre>
<pre><code class='not_supported' lang='not_supported'>&lt;p&gt;here&#39;s an apostrophe &amp; a quote &quot;&lt;/p&gt;</code></pre>
<pre><code class='xml' lang='xml'><span class='punct'>&lt;</span><span class='tag'>p</span><span class='punct'>&gt;</span>here&#39;s an apostrophe &amp; a quote &quot;<span class='punct'>&lt;/</span><span class='tag'>p</span><span class='punct'>&gt;</span></code></pre>
*** Output of to_latex ***
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char60p\char62here\char39s~an~apostrophe~\char38~a~quote~\char34\char60\char47p\char62}}
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
*** Output of to_md ***
*** Output of to_s ***
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p><code>&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;</code></p>
<pre><code>&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;
</code></pre>
<p>{:}</p>
<pre><code>&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;
</code></pre>
<p>{:lang=xml}</p>
<pre><code>&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;
</code></pre>
<p>{:html<em>use</em>syntax=true lang=not_supported}</p>
<pre><code>&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;
</code></pre>
<p>{:html<em>use</em>syntax=true lang=xml}</p>
*** Output of Markdown.pl (parsed) ***
<div>
<p>
<code>
&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;
</code>
</p>
<pre>
<code>
&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;
</code>
</pre>
<p>
{:}
</p>
<pre>
<code>
&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;
</code>
</pre>
<p>
{:lang=xml}
</p>
<pre>
<code>
&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;
</code>
</pre>
<p>
{:html
<em>
use
</em>
syntax=true lang=not_supported}
</p>
<pre>
<code>
&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;
</code>
</pre>
<p>
{:html
<em>
use
</em>
syntax=true lang=xml}
</p>
</div>