maruku 0.5.6 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/maruku +16 -9
- data/bin/marutest +2 -0
- data/docs/maruku.md +0 -51
- data/lib/maruku/input/linesource.rb +1 -0
- data/lib/maruku/input/parse_block.rb +28 -19
- data/lib/maruku/input/parse_doc.rb +1 -0
- data/lib/maruku/output/to_html.rb +24 -8
- data/lib/maruku/output/to_latex.rb +1 -1
- data/lib/maruku/version.rb +1 -1
- data/tests/unittest/abbreviations.md +2 -12
- data/tests/unittest/alt.md +1 -10
- data/tests/unittest/attributes/att2.md +1 -3
- data/tests/unittest/attributes/att3.md +1 -11
- data/tests/unittest/attributes/attributes.md +1 -16
- data/tests/unittest/attributes/circular.md +1 -9
- data/tests/unittest/attributes/default.md +1 -10
- data/tests/unittest/blank.md +1 -9
- data/tests/unittest/blanks_in_code.md +1 -26
- data/tests/unittest/bug_def.md +1 -8
- data/tests/unittest/bug_table.md +1 -11
- data/tests/unittest/code.md +1 -14
- data/tests/unittest/code2.md +1 -16
- data/tests/unittest/code3.md +1 -26
- data/tests/unittest/data_loss.md +1 -12
- data/tests/unittest/easy.md +1 -11
- data/tests/unittest/email.md +3 -11
- data/tests/unittest/encoding/iso-8859-1.md +1 -9
- data/tests/unittest/encoding/utf-8.md +1 -7
- data/tests/unittest/entities.md +78 -35
- data/tests/unittest/escaping.md +5 -25
- data/tests/unittest/extra_dl.md +1 -10
- data/tests/unittest/extra_header_id.md +1 -18
- data/tests/unittest/extra_table1.md +1 -8
- data/tests/unittest/footnotes.md +1 -21
- data/tests/unittest/headers.md +1 -11
- data/tests/unittest/hex_entities.md +1 -8
- data/tests/unittest/hrule.md +1 -8
- data/tests/unittest/html2.md +1 -12
- data/tests/unittest/html3.md +1 -15
- data/tests/unittest/html4.md +1 -6
- data/tests/unittest/html5.md +1 -8
- data/tests/unittest/ie.md +32 -33
- data/tests/unittest/images.md +2 -19
- data/tests/unittest/images2.md +1 -10
- data/tests/unittest/inline_html.md +22 -145
- data/tests/unittest/inline_html2.md +1 -3
- data/tests/unittest/links.md +22 -8
- data/tests/unittest/links2.md +1 -8
- data/tests/unittest/list1.md +1 -19
- data/tests/unittest/list12.md +43 -0
- data/tests/unittest/list2.md +1 -21
- data/tests/unittest/list3.md +1 -29
- data/tests/unittest/list4.md +1 -19
- data/tests/unittest/lists.md +1 -59
- data/tests/unittest/lists10.md +2 -13
- data/tests/unittest/lists11.md +2 -28
- data/tests/unittest/lists6.md +1 -0
- data/tests/unittest/lists7.md +56 -8
- data/tests/unittest/lists7b.md +136 -0
- data/tests/unittest/lists8.md +1 -22
- data/tests/unittest/lists9.md +1 -21
- data/tests/unittest/lists_after_paragraph.md +3 -48
- data/tests/unittest/lists_ol.md +1 -81
- data/tests/unittest/loss.md +1 -4
- data/tests/unittest/math/equations.md +1 -14
- data/tests/unittest/math/inline.md +1 -15
- data/tests/unittest/math/math2.md +38 -12
- data/tests/unittest/math/notmath.md +1 -9
- data/tests/unittest/math/table.md +1 -9
- data/tests/unittest/math/table2.md +33 -10
- data/tests/unittest/misc_sw.md +1 -195
- data/tests/unittest/notyet/escape.md +3 -13
- data/tests/unittest/notyet/header_after_par.md +1 -11
- data/tests/unittest/notyet/ticks.md +2 -11
- data/tests/unittest/notyet/triggering.md +1 -32
- data/tests/unittest/olist.md +1 -15
- data/tests/unittest/one.md +1 -8
- data/tests/unittest/paragraph.md +1 -8
- data/tests/unittest/paragraph_rules/dont_merge_ref.md +1 -10
- data/tests/unittest/paragraph_rules/tab_is_blank.md +1 -9
- data/tests/unittest/paragraphs.md +1 -14
- data/tests/unittest/recover/recover_links.md +1 -6
- data/tests/unittest/references/long_example.md +1 -17
- data/tests/unittest/references/spaces_and_numbers.md +1 -0
- data/tests/unittest/smartypants.md +21 -6
- data/tests/unittest/syntax_hl.md +1 -24
- data/tests/unittest/table_attributes.md +1 -8
- data/tests/unittest/test.md +1 -5
- data/tests/unittest/wrapping.md +1 -18
- data/tests/unittest/xml.md +1 -15
- data/tests/unittest/xml2.md +1 -3
- data/tests/unittest/xml3.md +1 -9
- data/tests/unittest/xml_instruction.md +1 -10
- metadata +211 -215
data/tests/unittest/hrule.md
CHANGED
@@ -24,7 +24,6 @@ md_el(:document,[
|
|
24
24
|
*** Output of to_html ***
|
25
25
|
<hr /><hr /><hr /><hr /><hr />
|
26
26
|
*** Output of to_latex ***
|
27
|
-
|
28
27
|
\vspace{.5em} \hrule \vspace{.5em}
|
29
28
|
|
30
29
|
\vspace{.5em} \hrule \vspace{.5em}
|
@@ -34,7 +33,6 @@ md_el(:document,[
|
|
34
33
|
\vspace{.5em} \hrule \vspace{.5em}
|
35
34
|
|
36
35
|
\vspace{.5em} \hrule \vspace{.5em}
|
37
|
-
|
38
36
|
*** Output of to_md ***
|
39
37
|
|
40
38
|
*** Output of to_s ***
|
@@ -59,9 +57,4 @@ md_el(:document,[
|
|
59
57
|
<hr />
|
60
58
|
|
61
59
|
*** Output of Markdown.pl (parsed) ***
|
62
|
-
<
|
63
|
-
><hr/
|
64
|
-
><hr/
|
65
|
-
><hr/
|
66
|
-
><hr/
|
67
|
-
>
|
60
|
+
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
data/tests/unittest/html2.md
CHANGED
@@ -12,17 +12,12 @@ md_el(:document,[
|
|
12
12
|
md_html("<div></div>")
|
13
13
|
],{},[])
|
14
14
|
*** Output of to_html ***
|
15
|
-
|
16
15
|
<p>One <div />123</p>
|
17
16
|
<div />
|
18
17
|
*** Output of to_latex ***
|
19
18
|
One 123
|
20
|
-
|
21
|
-
|
22
19
|
*** Output of to_md ***
|
23
20
|
One 123
|
24
|
-
|
25
|
-
|
26
21
|
*** Output of to_s ***
|
27
22
|
One 123
|
28
23
|
*** EOF ***
|
@@ -40,10 +35,4 @@ One 123
|
|
40
35
|
<p><div></div>123</p>
|
41
36
|
|
42
37
|
*** Output of Markdown.pl (parsed) ***
|
43
|
-
<
|
44
|
-
<div/
|
45
|
-
>123</p
|
46
|
-
><p
|
47
|
-
><div/
|
48
|
-
>123</p
|
49
|
-
>
|
38
|
+
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
data/tests/unittest/html3.md
CHANGED
@@ -22,17 +22,11 @@ md_el(:document,[
|
|
22
22
|
])
|
23
23
|
],{},[])
|
24
24
|
*** Output of to_html ***
|
25
|
-
|
26
25
|
<p>taking part in <a href='http://sied.dis.uniroma1.it/'>some arcane conspirations</a> which involve <b href='http://www.flickr.com/photos/censi/70893277/'>coffee</b>, <a href='http://flickr.com/photos/censi/42775664/in/set-936677/'>robots</a>, <a href='http://www.flickr.com/photos/censi/42775888/in/set-936677/'>sushi</a>,</p>
|
27
|
-
|
28
26
|
*** Output of to_latex ***
|
29
27
|
taking part in which involve , , ,
|
30
|
-
|
31
|
-
|
32
28
|
*** Output of to_md ***
|
33
29
|
taking part in which involve , , ,
|
34
|
-
|
35
|
-
|
36
30
|
*** Output of to_s ***
|
37
31
|
taking part in which involve , , ,
|
38
32
|
*** EOF ***
|
@@ -50,12 +44,4 @@ involve <b href="http://www.flickr.com/photos/censi/70893277/">coffee</b>,
|
|
50
44
|
<a href="http://www.flickr.com/photos/censi/42775888/in/set-936677/">sushi</a>,</p>
|
51
45
|
|
52
46
|
*** Output of Markdown.pl (parsed) ***
|
53
|
-
|
54
|
-
> which
|
55
|
-
involve <b href='http://www.flickr.com/photos/censi/70893277/'>coffee</b
|
56
|
-
>,
|
57
|
-
<a href='http://flickr.com/photos/censi/42775664/in/set-936677/'>robots</a
|
58
|
-
>,
|
59
|
-
<a href='http://www.flickr.com/photos/censi/42775888/in/set-936677/'>sushi</a
|
60
|
-
>,</p
|
61
|
-
>
|
47
|
+
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
data/tests/unittest/html4.md
CHANGED
@@ -39,9 +39,4 @@ md_el(:document,[
|
|
39
39
|
</div>
|
40
40
|
|
41
41
|
*** Output of Markdown.pl (parsed) ***
|
42
|
-
<div
|
43
|
-
><a href='http://www.flickr.com/photos/censi/54757256/' class='photo'
|
44
|
-
><img src='http://static.flickr.com/27/54757256_1a2c1d2a95_m.jpg' moz-do-not-send='true' alt=''/
|
45
|
-
></a
|
46
|
-
></div
|
47
|
-
>
|
42
|
+
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
data/tests/unittest/html5.md
CHANGED
@@ -35,11 +35,4 @@ md_el(:document,[
|
|
35
35
|
</div></p>
|
36
36
|
|
37
37
|
*** Output of Markdown.pl (parsed) ***
|
38
|
-
<
|
39
|
-
><div class='frame'
|
40
|
-
><a href='http://www.flickr.com/photos/censi/88561568/' class='photo'
|
41
|
-
><img src='http://static.flickr.com/28/88561568_ab84d28245_m.jpg' height='180' moz-do-not-send='true' alt='Aperitif' width='240'/
|
42
|
-
></a
|
43
|
-
></div
|
44
|
-
></p
|
45
|
-
>
|
38
|
+
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
data/tests/unittest/ie.md
CHANGED
@@ -27,7 +27,6 @@ md_el(:document,[
|
|
27
27
|
md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[["html_use_syntax", "true"], ["lang", "xml"]])
|
28
28
|
],{},[])
|
29
29
|
*** Output of to_html ***
|
30
|
-
|
31
30
|
<p><code><p>here's an apostrophe & a quote "</p></code></p>
|
32
31
|
|
33
32
|
<pre><code><p>here's an apostrophe & a quote "</p></code></pre>
|
@@ -37,28 +36,53 @@ md_el(:document,[
|
|
37
36
|
<pre><code class='not_supported' lang='not_supported'><p>here's an apostrophe & a quote "</p></code></pre>
|
38
37
|
|
39
38
|
<pre><code class='xml' lang='xml'><span class='punct'><</span><span class='tag'>p</span><span class='punct'>></span>here's an apostrophe & a quote "<span class='punct'></</span><span class='tag'>p</span><span class='punct'>></span></code></pre>
|
40
|
-
|
41
39
|
*** Output of to_latex ***
|
42
|
-
\colorbox[rgb]{1.00,0.93,1.00}{\tt \char60p\char62here\char39s~an~apostrophe~\char38~a~quote~\char34\char60\char47p\char62}
|
40
|
+
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char60p\char62here\char39s~an~apostrophe~\char38~a~quote~\char34\char60\char47p\char62}}
|
43
41
|
|
44
42
|
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
|
45
43
|
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
|
46
44
|
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
|
47
45
|
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
|
48
|
-
|
49
46
|
*** Output of to_md ***
|
50
47
|
|
51
|
-
|
52
|
-
|
53
48
|
*** Output of to_s ***
|
54
49
|
|
55
50
|
*** EOF ***
|
56
51
|
|
57
52
|
|
58
53
|
|
59
|
-
OK!
|
60
54
|
|
55
|
+
Failed tests: [:to_html]
|
56
|
+
|
57
|
+
*** Output of inspect ***
|
58
|
+
md_el(:document,[
|
59
|
+
md_par([md_code("<p>here's an apostrophe & a quote \"</p>")]),
|
60
|
+
md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[]),
|
61
|
+
md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[["lang", "xml"]]),
|
62
|
+
md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[["html_use_syntax", "true"], ["lang", "not_supported"]]),
|
63
|
+
md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[["html_use_syntax", "true"], ["lang", "xml"]])
|
64
|
+
],{},[])
|
65
|
+
*** Output of to_html ***
|
66
|
+
-----| WARNING | -----
|
67
|
+
<p><code><p>here's an apostrophe &amp; a quote "</p></code></p>
|
61
68
|
|
69
|
+
<pre><code><p>here's an apostrophe &amp; a quote "</p></code></pre>
|
70
|
+
|
71
|
+
<pre lang='xml'><code class='xml' lang='xml'><p>here's an apostrophe &amp; a quote "</p></code></pre>
|
72
|
+
|
73
|
+
<pre><code class='not_supported' lang='not_supported'><p>here's an apostrophe & a quote "</p></code></pre>
|
74
|
+
|
75
|
+
<pre><code class='xml' lang='xml'><span class='punct'><</span><span class='tag'>p</span><span class='punct'>></span>here's an apostrophe & a quote "<span class='punct'></</span><span class='tag'>p</span><span class='punct'>></span></code></pre>
|
76
|
+
*** Output of to_latex ***
|
77
|
+
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char60p\char62here\char39s~an~apostrophe~\char38~a~quote~\char34\char60\char47p\char62}}
|
78
|
+
|
79
|
+
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
|
80
|
+
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
|
81
|
+
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
|
82
|
+
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
|
83
|
+
*** Output of to_md ***
|
84
|
+
|
85
|
+
*** Output of to_s ***
|
62
86
|
|
63
87
|
*** Output of Markdown.pl ***
|
64
88
|
<p><code><p>here's an apostrophe & a quote "</p></code></p>
|
@@ -84,29 +108,4 @@ md_el(:document,[
|
|
84
108
|
<p>{:html<em>use</em>syntax=true lang=xml}</p>
|
85
109
|
|
86
110
|
*** Output of Markdown.pl (parsed) ***
|
87
|
-
<
|
88
|
-
><code><p>here's an apostrophe & a quote "</p></code
|
89
|
-
></p
|
90
|
-
><pre
|
91
|
-
><code><p>here's an apostrophe & a quote "</p>
|
92
|
-
</code
|
93
|
-
></pre
|
94
|
-
><p>{:}</p
|
95
|
-
><pre
|
96
|
-
><code><p>here's an apostrophe & a quote "</p>
|
97
|
-
</code
|
98
|
-
></pre
|
99
|
-
><p>{:lang=xml}</p
|
100
|
-
><pre
|
101
|
-
><code><p>here's an apostrophe & a quote "</p>
|
102
|
-
</code
|
103
|
-
></pre
|
104
|
-
><p>{:html<em>use</em
|
105
|
-
>syntax=true lang=not_supported}</p
|
106
|
-
><pre
|
107
|
-
><code><p>here's an apostrophe & a quote "</p>
|
108
|
-
</code
|
109
|
-
></pre
|
110
|
-
><p>{:html<em>use</em
|
111
|
-
>syntax=true lang=xml}</p
|
112
|
-
>
|
111
|
+
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
data/tests/unittest/images.md
CHANGED
@@ -52,7 +52,6 @@ md_el(:document,[
|
|
52
52
|
md_ref_def("css2", "http://jigsaw.w3.org/css-validator/images/vcss", {:title=>"Optional title attribute"})
|
53
53
|
],{},[])
|
54
54
|
*** Output of to_html ***
|
55
|
-
|
56
55
|
<p>This page does not uilizes <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
|
57
56
|
|
58
57
|
<p>Please mouseover to see the title: <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
|
@@ -62,7 +61,6 @@ md_el(:document,[
|
|
62
61
|
<p>I’ll say it one more time: this page does not use <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
|
63
62
|
|
64
63
|
<p>This is double size: <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
|
65
|
-
|
66
64
|
*** Output of to_latex ***
|
67
65
|
This page does not uilizes
|
68
66
|
|
@@ -72,9 +70,7 @@ Please mouseover to see the title:
|
|
72
70
|
|
73
71
|
I'{}ll say it one more time: this page does not use
|
74
72
|
|
75
|
-
This is double size:
|
76
|
-
|
77
|
-
|
73
|
+
This is double size:
|
78
74
|
*** Output of to_md ***
|
79
75
|
This page does not uilizes
|
80
76
|
Cascading Style Sheets
|
@@ -90,8 +86,6 @@ does not use Cascading Style Sheets
|
|
90
86
|
|
91
87
|
This is double size:
|
92
88
|
Cascading Style Sheets
|
93
|
-
|
94
|
-
|
95
89
|
*** Output of to_s ***
|
96
90
|
This page does not uilizes Cascading Style SheetsPlease mouseover to see the title: Cascading Style SheetsPlease mouseover to see the title: Cascading Style SheetsIll say it one more time: this page does not use Cascading Style SheetsThis is double size: Cascading Style Sheets
|
97
91
|
*** EOF ***
|
@@ -117,15 +111,4 @@ This page does not uilizes Cascading Style SheetsPlease mouseover to see the tit
|
|
117
111
|
style="border:0;width:188px;height:131px"</p>
|
118
112
|
|
119
113
|
*** Output of Markdown.pl (parsed) ***
|
120
|
-
|
121
|
-
></p
|
122
|
-
><p>Please mouseover to see the title: <img title='Title ok!' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'/
|
123
|
-
></p
|
124
|
-
><p>Please mouseover to see the title: <img title='Title ok!' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'/
|
125
|
-
></p
|
126
|
-
><p>I'll say it one more time: this page does not use <img title='Optional title attribute' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'/
|
127
|
-
></p
|
128
|
-
><p>This is double size: ![Cascading Style Sheets] [css2]</p
|
129
|
-
><p>[css2]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute" class=external
|
130
|
-
style="border:0;width:188px;height:131px"</p
|
131
|
-
>
|
114
|
+
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
data/tests/unittest/images2.md
CHANGED
@@ -16,23 +16,17 @@ md_el(:document,[
|
|
16
16
|
md_ref_def("image", "image.jpg", {:title=>nil})
|
17
17
|
],{},[])
|
18
18
|
*** Output of to_html ***
|
19
|
-
|
20
19
|
<p>This is an <img src='image.jpg' alt='image' />.</p>
|
21
20
|
|
22
21
|
<p>This is an <img src='image.jpg' alt='image' />.</p>
|
23
|
-
|
24
22
|
*** Output of to_latex ***
|
25
23
|
This is an .
|
26
24
|
|
27
25
|
This is an .
|
28
|
-
|
29
|
-
|
30
26
|
*** Output of to_md ***
|
31
27
|
This is an image.
|
32
28
|
|
33
29
|
This is an image.
|
34
|
-
|
35
|
-
|
36
30
|
*** Output of to_s ***
|
37
31
|
This is an image.This is an image.
|
38
32
|
*** EOF ***
|
@@ -49,7 +43,4 @@ This is an image.This is an image.
|
|
49
43
|
<p>This is an ![image].</p>
|
50
44
|
|
51
45
|
*** Output of Markdown.pl (parsed) ***
|
52
|
-
|
53
|
-
>.</p
|
54
|
-
><p>This is an ![image].</p
|
55
|
-
>
|
46
|
+
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
@@ -74,7 +74,6 @@ md_el(:document,[
|
|
74
74
|
md_html("</table>")
|
75
75
|
],{},[])
|
76
76
|
*** Output of to_html ***
|
77
|
-
|
78
77
|
<p>Input:</p>
|
79
78
|
|
80
79
|
<pre><code><em>Emphasis</em></code></pre>
|
@@ -157,8 +156,6 @@ Result alone:
|
|
157
156
|
Without closing:
|
158
157
|
|
159
158
|
The following is invalid HTML, and will generate an error:
|
160
|
-
|
161
|
-
|
162
159
|
*** Output of to_md ***
|
163
160
|
Input:
|
164
161
|
|
@@ -174,156 +171,16 @@ Without closing:
|
|
174
171
|
|
175
172
|
The following is invalid HTML, and will
|
176
173
|
generate an error:
|
177
|
-
|
178
|
-
|
179
174
|
*** Output of to_s ***
|
180
175
|
Input:Result: Input:Result on span: Result alone:Without closing:The following is invalid HTML, and will generate an error:
|
181
176
|
*** EOF ***
|
182
177
|
|
183
178
|
|
184
179
|
|
180
|
+
OK!
|
185
181
|
|
186
|
-
Failed tests: [:to_html]
|
187
|
-
|
188
|
-
*** Output of inspect ***
|
189
|
-
md_el(:document,[
|
190
|
-
md_par(["Input:"]),
|
191
|
-
md_el(:code,[],{:raw_code=>"<em>Emphasis</em>"},[]),
|
192
|
-
md_par(["Result: ", md_html("<em>Emphasis</em>")]),
|
193
|
-
md_par(["Input:"]),
|
194
|
-
md_el(:code,[],{:raw_code=>"<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\"/>"},[]),
|
195
|
-
md_par([
|
196
|
-
"Result on span: ",
|
197
|
-
md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />")
|
198
|
-
]),
|
199
|
-
md_par(["Result alone:"]),
|
200
|
-
md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />"),
|
201
|
-
md_par(["Without closing:"]),
|
202
|
-
md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />"),
|
203
|
-
md_html("<div markdown=\"1\">\n\tThis is *true* markdown text (paragraph)\n\n\t<p markdown=\"1\">\n\t\tThis is *true* markdown text (no paragraph)\n\t</p>\n\t<p markdown=\"block\">\n\t\tThis is *true* markdown text (block paragraph)\n\t</p>\n</div>"),
|
204
|
-
md_html("<table>\n<tr>\n<td markdown=\"1\">This is *true* markdown text. (no par)</td>\n<td markdown=\"block\">This is *true* markdown text. (par)</td>\n</tr>\n</table>"),
|
205
|
-
md_par(["The following is invalid HTML, and will generate an error:"]),
|
206
|
-
md_html("<table>\n<td markdown=\"1\">This is *true* markdown text. (no par)</td>\n<td markdown=\"block\">This is *true* markdown text. (par)</td>\n</tr>"),
|
207
|
-
md_html("</table>")
|
208
|
-
],{},[])
|
209
|
-
*** Output of to_html ***
|
210
|
-
-----| WARNING | -----
|
211
|
-
|
212
|
-
<p>Input:</p>
|
213
|
-
|
214
|
-
<pre><code><em>Emphasis</em></code></pre>
|
215
|
-
|
216
|
-
<p>Result: <em>Emphasis</em></p>
|
217
|
-
|
218
|
-
<p>Input:</p>
|
219
182
|
|
220
|
-
<pre><code><img src="http://jigsaw.w3.org/css-validator/images/vcss"/></code></pre>
|
221
183
|
|
222
|
-
<p>Result on span: <img src='http://jigsaw.w3.org/css-validator/images/vcss' /></p>
|
223
|
-
|
224
|
-
<p>Result alone:</p>
|
225
|
-
<img src='http://jigsaw.w3.org/css-validator/images/vcss' />
|
226
|
-
<p>Without closing:</p>
|
227
|
-
<img src='http://jigsaw.w3.org/css-validator/images/vcss' /><div>
|
228
|
-
<p>
|
229
|
-
<p>This is</p>
|
230
|
-
</p>
|
231
|
-
<em>
|
232
|
-
<p>
|
233
|
-
<p>true</p>
|
234
|
-
</p>
|
235
|
-
</em>
|
236
|
-
<p>
|
237
|
-
<p>markdown text (paragraph)</p>
|
238
|
-
</p>
|
239
|
-
<p>
|
240
|
-
<p>
|
241
|
-
<p>This is</p>
|
242
|
-
</p>
|
243
|
-
<em>
|
244
|
-
<p>
|
245
|
-
<p>true</p>
|
246
|
-
</p>
|
247
|
-
</em>
|
248
|
-
<p>
|
249
|
-
<p>markdown text (no paragraph)</p>
|
250
|
-
</p>
|
251
|
-
</p>
|
252
|
-
<p>
|
253
|
-
<p>
|
254
|
-
<p>This is</p>
|
255
|
-
</p>
|
256
|
-
<em>
|
257
|
-
<p>
|
258
|
-
<p>true</p>
|
259
|
-
</p>
|
260
|
-
</em>
|
261
|
-
<p>
|
262
|
-
<p>markdown text (block paragraph)</p>
|
263
|
-
</p>
|
264
|
-
</p>
|
265
|
-
</div><table>
|
266
|
-
<tr>
|
267
|
-
<td>
|
268
|
-
<p>This is</p>
|
269
|
-
<em>
|
270
|
-
<p>true</p>
|
271
|
-
</em>
|
272
|
-
<p>markdown text. (no par)</p>
|
273
|
-
</td>
|
274
|
-
<td>
|
275
|
-
<p>This is</p>
|
276
|
-
<em>
|
277
|
-
<p>true</p>
|
278
|
-
</em>
|
279
|
-
<p>markdown text. (par)</p>
|
280
|
-
</td>
|
281
|
-
</tr>
|
282
|
-
</table>
|
283
|
-
<p>The following is invalid HTML, and will generate an error:</p>
|
284
|
-
<pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>HTML parse error:
|
285
|
-
<table>
|
286
|
-
<td markdown="1">This is *true* markdown text. (no par)</td>
|
287
|
-
<td markdown="block">This is *true* markdown text. (par)</td>
|
288
|
-
</tr></pre><pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>HTML parse error:
|
289
|
-
</table></pre>
|
290
|
-
*** Output of to_latex ***
|
291
|
-
Input:
|
292
|
-
|
293
|
-
\begin{verbatim}<em>Emphasis</em>\end{verbatim}
|
294
|
-
Result:
|
295
|
-
|
296
|
-
Input:
|
297
|
-
|
298
|
-
\begin{verbatim}<img src="http://jigsaw.w3.org/css-validator/images/vcss"/>\end{verbatim}
|
299
|
-
Result on span:
|
300
|
-
|
301
|
-
Result alone:
|
302
|
-
|
303
|
-
Without closing:
|
304
|
-
|
305
|
-
The following is invalid HTML, and will generate an error:
|
306
|
-
|
307
|
-
|
308
|
-
*** Output of to_md ***
|
309
|
-
Input:
|
310
|
-
|
311
|
-
Result:
|
312
|
-
|
313
|
-
Input:
|
314
|
-
|
315
|
-
Result on span:
|
316
|
-
|
317
|
-
Result alone:
|
318
|
-
|
319
|
-
Without closing:
|
320
|
-
|
321
|
-
The following is invalid HTML, and will
|
322
|
-
generate an error:
|
323
|
-
|
324
|
-
|
325
|
-
*** Output of to_s ***
|
326
|
-
Input:Result: Input:Result on span: Result alone:Without closing:The following is invalid HTML, and will generate an error:
|
327
184
|
*** Output of Markdown.pl ***
|
328
185
|
<p>CSS: style.css</p>
|
329
186
|
|
@@ -376,7 +233,27 @@ Input:Result: Input:Result on span: Result alone:Without closing:The following i
|
|
376
233
|
</table>
|
377
234
|
|
378
235
|
*** Output of Markdown.pl (parsed) ***
|
379
|
-
Error: #<REXML::ParseException: Missing end tag for 'img' (got "p")
|
236
|
+
Error: #<REXML::ParseException: #<REXML::ParseException: Missing end tag for 'img' (got "p")
|
237
|
+
Line:
|
238
|
+
Position:
|
239
|
+
Last 80 unconsumed characters:
|
240
|
+
<div markdown="1"> This is *true* markdown text (paragraph) <p markdow>
|
241
|
+
/Volumes/Alter/Ruby/local186/lib/ruby/1.8/rexml/parsers/baseparser.rb:320:in `pull'
|
242
|
+
/Volumes/Alter/Ruby/local186/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'
|
243
|
+
/Volumes/Alter/Ruby/local186/lib/ruby/1.8/rexml/document.rb:190:in `build'
|
244
|
+
/Volumes/Alter/Ruby/local186/lib/ruby/1.8/rexml/document.rb:45:in `initialize'
|
245
|
+
bin/marutest:199:in `new'
|
246
|
+
bin/marutest:199:in `run_test'
|
247
|
+
bin/marutest:262:in `marutest'
|
248
|
+
bin/marutest:259:in `each'
|
249
|
+
bin/marutest:259:in `marutest'
|
250
|
+
bin/marutest:334
|
251
|
+
...
|
252
|
+
Missing end tag for 'img' (got "p")
|
253
|
+
Line:
|
254
|
+
Position:
|
255
|
+
Last 80 unconsumed characters:
|
256
|
+
<div markdown="1"> This is *true* markdown text (paragraph) <p markdow
|
380
257
|
Line:
|
381
258
|
Position:
|
382
259
|
Last 80 unconsumed characters:
|