instiki/vendor/plugins/maruku/tests/unittest/syntax_hl.md

71 lines
2.5 KiB
Markdown
Raw Normal View History

Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
This is ruby code:
require 'maruku'
puts Maruku.new($stdin).to_html
This is ruby code:
require 'maruku'
{: lang=ruby html_use_syntax}
puts Maruku.new($stdin).to_html
*** Output of inspect ***
md_el(:document,[
md_par(["This is ruby code:"]),
md_el(:code,[],{:raw_code=>"require 'maruku'\n\nputs Maruku.new($stdin).to_html"},[]),
md_par(["This is ruby code:"]),
md_el(:code,[],{:raw_code=>"require 'maruku'"},[["lang", "ruby"], [:ref, "html_use_syntax"]]),
md_el(:code,[],{:raw_code=>"puts Maruku.new($stdin).to_html"},[])
],{},[])
*** Output of to_html ***
<p>This is ruby code:</p>
<pre><code>require &#39;maruku&#39;
puts Maruku.new($stdin).to_html</code></pre>
<p>This is ruby code:</p>
<pre><code class='ruby' lang='ruby'><span class='ident'>require</span> <span class='punct'>&#39;</span><span class='string'>maruku</span><span class='punct'>&#39;</span></code></pre>
<pre><code>puts Maruku.new($stdin).to_html</code></pre>
*** Output of to_latex ***
This is ruby code:
\begin{verbatim}require 'maruku'
puts Maruku.new($stdin).to_html\end{verbatim}
This is ruby code:
\begin{verbatim}require 'maruku'\end{verbatim}
\begin{verbatim}puts Maruku.new($stdin).to_html\end{verbatim}
*** Output of to_md ***
This is ruby code:
This is ruby code:
*** Output of to_s ***
This is ruby code:This is ruby code:
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>This is ruby code:</p>
<pre><code>require 'maruku'
puts Maruku.new(&lt;math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'&gt;&lt;mi&gt;stdin&lt;/mi&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;mo&gt;.&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;to&lt;/mi&gt; &lt;mi&gt;html&lt;/mi&gt;&lt;/msub&gt;&lt;mi&gt;This&lt;/mi&gt;&lt;mi&gt;is&lt;/mi&gt;&lt;mi&gt;ruby&lt;/mi&gt;&lt;mi&gt;code&lt;/mi&gt;&lt;mo&gt;:&lt;/mo&gt;&lt;mi&gt;require&lt;/mi&gt;&lt;mo&gt;&amp;prime;&lt;/mo&gt;&lt;mi&gt;maruku&lt;/mi&gt;&lt;mo&gt;&amp;prime;&lt;/mo&gt;&lt;mrow&gt;&lt;mo&gt;:&lt;/mo&gt;&lt;mi&gt;lang&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;ruby&lt;/mi&gt;&lt;msub&gt;&lt;mi&gt;html&lt;/mi&gt; &lt;mi&gt;use&lt;/mi&gt;&lt;/msub&gt;&lt;msub&gt;&lt;mo&gt;&lt;/mo&gt;&lt;mi&gt;syntax&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;mi&gt;puts&lt;/mi&gt;&lt;mi&gt;Maruku&lt;/mi&gt;&lt;mo&gt;.&lt;/mo&gt;&lt;mi&gt;new&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;/math&gt;stdin).to_html
</code></pre>
*** Output of Markdown.pl (parsed) ***
Error: #<TypeError: no implicit conversion from nil to integer>