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.
2.5 KiB
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 ***
This is ruby code:
require 'maruku'
puts Maruku.new($stdin).to_html
This is ruby code:
require 'maruku'
puts Maruku.new($stdin).to_html
*** 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 ***
This is ruby code:
require 'maruku'
puts Maruku.new(<math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>stdin</mi><mo stretchy="false">)</mo><mo>.</mo><msub><mi>to</mi> <mi>html</mi></msub><mi>This</mi><mi>is</mi><mi>ruby</mi><mi>code</mi><mo>:</mo><mi>require</mi><mo>′</mo><mi>maruku</mi><mo>′</mo><mrow><mo>:</mo><mi>lang</mi><mo>=</mo><mi>ruby</mi><msub><mi>html</mi> <mi>use</mi></msub><msub><mo></mo><mi>syntax</mi></msub></mrow><mi>puts</mi><mi>Maruku</mi><mo>.</mo><mi>new</mi><mo stretchy="false">(</mo></math>stdin).to_html
*** Output of Markdown.pl (parsed) *** Error: #<TypeError: no implicit conversion from nil to integer>