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:
parent
46da1f3aaf
commit
13a522525c
369 changed files with 1703 additions and 16342 deletions
167
vendor/plugins/maruku/spec/block_docs/divs/div1.md
vendored
Normal file
167
vendor/plugins/maruku/spec/block_docs/divs/div1.md
vendored
Normal file
|
@ -0,0 +1,167 @@
|
|||
Write a comment here
|
||||
*** Parameters: ***
|
||||
require 'maruku/ext/div'; {} # params
|
||||
*** Markdown input: ***
|
||||
+---------
|
||||
| text
|
||||
+----------
|
||||
|
||||
+---------
|
||||
|text
|
||||
|
||||
+--
|
||||
text
|
||||
|
||||
=--
|
||||
|
||||
|
||||
+---------
|
||||
| text
|
||||
+----------
|
||||
|
||||
+---------
|
||||
|text
|
||||
|
||||
+--
|
||||
text
|
||||
|
||||
=--
|
||||
|
||||
|
||||
+---------
|
||||
| text
|
||||
+----------
|
||||
|
||||
+---------
|
||||
|text
|
||||
|
||||
+--
|
||||
text
|
||||
|
||||
=--
|
||||
|
||||
+---------
|
||||
| text
|
||||
+----------
|
||||
|
||||
+---------
|
||||
|text
|
||||
|
||||
+--
|
||||
text
|
||||
|
||||
=--
|
||||
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[
|
||||
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
|
||||
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
|
||||
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
|
||||
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
|
||||
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
|
||||
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
|
||||
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
|
||||
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
|
||||
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
|
||||
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
|
||||
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
|
||||
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[])
|
||||
],{},[])
|
||||
*** Output of to_html ***
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
*** Output of to_latex ***
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
*** Output of to_md ***
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
|
||||
text
|
||||
*** Output of to_s ***
|
||||
texttexttexttexttexttexttexttexttexttexttexttext
|
21
vendor/plugins/maruku/spec/block_docs/divs/div2.md
vendored
Normal file
21
vendor/plugins/maruku/spec/block_docs/divs/div2.md
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
Write a comment here
|
||||
*** Parameters: ***
|
||||
require 'maruku/ext/div'; {} # params
|
||||
*** Markdown input: ***
|
||||
+--
|
||||
ciao
|
||||
=--
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[
|
||||
md_el(:div,[md_par(["ciao"])],{:label=>nil,:num=>nil,:type=>nil},[])
|
||||
],{},[])
|
||||
*** Output of to_html ***
|
||||
<div>
|
||||
<p>ciao</p>
|
||||
</div>
|
||||
*** Output of to_latex ***
|
||||
ciao
|
||||
*** Output of to_md ***
|
||||
ciao
|
||||
*** Output of to_s ***
|
||||
ciao
|
45
vendor/plugins/maruku/spec/block_docs/divs/div3_nest.md
vendored
Normal file
45
vendor/plugins/maruku/spec/block_docs/divs/div3_nest.md
vendored
Normal file
|
@ -0,0 +1,45 @@
|
|||
Write a comment here
|
||||
*** Parameters: ***
|
||||
require 'maruku/ext/div'; {} # params
|
||||
*** Markdown input: ***
|
||||
+-----------------------------------{.warning}------
|
||||
| this is the last warning!
|
||||
|
|
||||
| please, go away!
|
||||
|
|
||||
| +------------------------------------- {.menace} --
|
||||
| | or else terrible things will happen
|
||||
| +--------------------------------------------------
|
||||
+---------------------------------------------------
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[
|
||||
md_el(:div,[
|
||||
md_par(["this is the last warning!"]),
|
||||
md_par(["please, go away!"]),
|
||||
md_el(:div,[md_par(["or else terrible things will happen"])],{:label=>nil,:num=>nil,:type=>nil},[[:class, "menace"]])
|
||||
],{:label=>nil,:num=>nil,:type=>nil},[[:class, "warning"]])
|
||||
],{},[])
|
||||
*** Output of to_html ***
|
||||
<div class="warning">
|
||||
<p>this is the last warning!</p>
|
||||
|
||||
<p>please, go away!</p>
|
||||
|
||||
<div class="menace">
|
||||
<p>or else terrible things will happen</p>
|
||||
</div>
|
||||
</div>
|
||||
*** Output of to_latex ***
|
||||
this is the last warning!
|
||||
|
||||
please, go away!
|
||||
|
||||
or else terrible things will happen
|
||||
*** Output of to_md ***
|
||||
this is the last warning!
|
||||
|
||||
please, go away!
|
||||
|
||||
or else terrible things will happen
|
||||
*** Output of to_s ***
|
||||
this is the last warning!please, go away!or else terrible things will happen
|
Loading…
Add table
Add a link
Reference in a new issue