REXML is dead. Long live Nokogiri.

Modify Maruku to use Nokogiri instead of REXML.
Produces a 3-fold speedup in the #to_html method.
This commit is contained in:
Jacques Distler 2011-08-11 20:36:44 -05:00
parent 46da1f3aaf
commit 13a522525c
369 changed files with 1703 additions and 16342 deletions

View file

@ -0,0 +1,22 @@
Encoding: iso-8859-1
*** Parameters: ***
{}
*** Markdown input: ***
Encoding: iso-8859-1
This is iso-8859-1: àèìàù.
*** Output of inspect ***
md_el(:document,[
md_par([
"This is iso-8859-1: \303\203\302\240\303\203\302\250\303\203\302\254\303\203\302\240\303\203\302\271."
])
],{},[])
*** Output of to_html ***
<p>This is iso-8859-1: &#xC3;&#xA0;&#xC3;&#xA8;&#xC3;&#xAC;&#xC3;&#xA0;&#xC3;&#xB9;.</p>
*** Output of to_latex ***
This is iso-8859-1: àèìàù.
*** Output of to_md ***
This is iso-8859-1: àèìàù.
*** Output of to_s ***
This is iso-8859-1: àèìàù.

View file

@ -0,0 +1,18 @@
Write a comment abouth the test here.
*** Parameters: ***
{:italian=>"\303\240\303\250\303\254\303\262\303\271."}
*** Markdown input: ***
Italian: àèìòù.
Japanese: マルク
*** Output of inspect ***
md_el(:document,[md_par(["Japanese: \343\203\236\343\203\253\343\202\257"])],{},[])
*** Output of to_html ***
<p>Japanese: &#x30DE;&#x30EB;&#x30AF;</p>
*** Output of to_latex ***
Japanese: マルク
*** Output of to_md ***
Japanese: マルク
*** Output of to_s ***
Japanese: マルク