Update to latest HTML5lib, Add Maruku testdir
Sync with the latest html5lib. Having the Maruku unit tests on-hand may be useful for debugging; so let's include them.
This commit is contained in:
parent
ebc409e1a0
commit
1085168bbf
337 changed files with 21290 additions and 72 deletions
89
vendor/plugins/maruku/tests/unittest/escaping.md
vendored
Normal file
89
vendor/plugins/maruku/tests/unittest/escaping.md
vendored
Normal file
|
@ -0,0 +1,89 @@
|
|||
This should threat the last as a literal asterisk.
|
||||
*** Parameters: ***
|
||||
{:on_error=>:warning}
|
||||
*** Markdown input: ***
|
||||
Hello: ! \! \` \{ \} \[ \] \( \) \# \. \! * \* *
|
||||
|
||||
|
||||
Ora, *emphasis*, **bold**, * <- due asterischi-> * , un underscore-> _ , _emphasis_,
|
||||
incre*dible*e!
|
||||
|
||||
This is ``Code with a special: -> ` <- ``(after)
|
||||
|
||||
`Start ` of paragraph
|
||||
|
||||
End of `paragraph `
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[
|
||||
md_par(["Hello: ! ! ` { } [ ] ( ) # . ! * * *"]),
|
||||
md_par([
|
||||
"Ora, ",
|
||||
md_em(["emphasis"]),
|
||||
", ",
|
||||
md_strong(["bold"]),
|
||||
", * <- due asterischi-> * , un underscore-> _ , ",
|
||||
md_em(["emphasis"]),
|
||||
", incre",
|
||||
md_em(["dible"]),
|
||||
"e!"
|
||||
]),
|
||||
md_par(["This is ", md_code("Code with a special: -> ` <-"), "(after)"]),
|
||||
md_par([md_code("Start "), " of paragraph"]),
|
||||
md_par(["End of ", md_code("paragraph ")])
|
||||
],{},[])
|
||||
*** Output of to_html ***
|
||||
<p>Hello: ! ! ` { } [ ] ( ) # . ! * * *</p>
|
||||
|
||||
<p>Ora, <em>emphasis</em>, <strong>bold</strong>, * <- due asterischi-> * , un underscore-> _ , <em>emphasis</em>, incre<em>dible</em>e!</p>
|
||||
|
||||
<p>This is <code>Code with a special: -> ` <-</code>(after)</p>
|
||||
|
||||
<p><code>Start </code> of paragraph</p>
|
||||
|
||||
<p>End of <code>paragraph </code></p>
|
||||
*** Output of to_latex ***
|
||||
Hello: ! ! ` \{ \} [ ] ( ) \# . ! * * *
|
||||
|
||||
Ora, \emph{emphasis}, \textbf{bold}, * {\tt \char60}- due asterischi-{\tt \char62} * , un underscore-{\tt \char62} \_ , \emph{emphasis}, incre\emph{dible}e!
|
||||
|
||||
This is {\colorbox[rgb]{1.00,0.93,1.00}{\tt Code~with~a~special\char58~\char45\char62~\char96~\char60\char45}}(after)
|
||||
|
||||
{\colorbox[rgb]{1.00,0.93,1.00}{\tt Start~}} of paragraph
|
||||
|
||||
End of {\colorbox[rgb]{1.00,0.93,1.00}{\tt paragraph~}}
|
||||
*** Output of to_md ***
|
||||
Hello: ! ! ` { } [ ] ( ) # . ! * * *
|
||||
|
||||
Ora, emphasis, bold, * <- due
|
||||
asterischi-> * , un underscore-> _ ,
|
||||
emphasis, incre diblee!
|
||||
|
||||
This is (after)
|
||||
|
||||
of paragraph
|
||||
|
||||
End of
|
||||
*** Output of to_s ***
|
||||
Hello: ! ! ` { } [ ] ( ) # . ! * * *Ora, emphasis, bold, * <- due asterischi-> * , un underscore-> _ , emphasis, incrediblee!This is (after) of paragraphEnd of
|
||||
*** EOF ***
|
||||
|
||||
|
||||
|
||||
OK!
|
||||
|
||||
|
||||
|
||||
*** Output of Markdown.pl ***
|
||||
<p>Hello: ! ! ` { } [ ] ( ) # . ! * * *</p>
|
||||
|
||||
<p>Ora, <em>emphasis</em>, <strong>bold</strong>, * <- due asterischi-> * , un underscore-> _ , <em>emphasis</em>,
|
||||
incre<em>dible</em>e!</p>
|
||||
|
||||
<p>This is <code>Code with a special: -> ` <-</code>(after)</p>
|
||||
|
||||
<p><code>Start</code> of paragraph</p>
|
||||
|
||||
<p>End of <code>paragraph</code></p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
Loading…
Add table
Add a link
Reference in a new issue