bai-maruku 0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +102 -0
- data/bin/marudown +29 -0
- data/bin/maruku +181 -0
- data/bin/marutest +345 -0
- data/bin/marutex +31 -0
- data/docs/changelog.md +334 -0
- data/docs/div_syntax.md +36 -0
- data/docs/entity_test.md +23 -0
- data/docs/markdown_syntax.md +899 -0
- data/docs/maruku.md +346 -0
- data/docs/math.md +194 -0
- data/docs/other_stuff.md +51 -0
- data/docs/proposal.md +309 -0
- data/lib/maruku.rb +141 -0
- data/lib/maruku/attributes.rb +227 -0
- data/lib/maruku/defaults.rb +71 -0
- data/lib/maruku/errors_management.rb +92 -0
- data/lib/maruku/ext/div.rb +133 -0
- data/lib/maruku/ext/math.rb +41 -0
- data/lib/maruku/ext/math/elements.rb +27 -0
- data/lib/maruku/ext/math/latex_fix.rb +12 -0
- data/lib/maruku/ext/math/mathml_engines/blahtex.rb +107 -0
- data/lib/maruku/ext/math/mathml_engines/itex2mml.rb +29 -0
- data/lib/maruku/ext/math/mathml_engines/none.rb +20 -0
- data/lib/maruku/ext/math/mathml_engines/ritex.rb +24 -0
- data/lib/maruku/ext/math/parsing.rb +119 -0
- data/lib/maruku/ext/math/to_html.rb +187 -0
- data/lib/maruku/ext/math/to_latex.rb +26 -0
- data/lib/maruku/helpers.rb +260 -0
- data/lib/maruku/input/charsource.rb +326 -0
- data/lib/maruku/input/extensions.rb +69 -0
- data/lib/maruku/input/html_helper.rb +189 -0
- data/lib/maruku/input/linesource.rb +111 -0
- data/lib/maruku/input/parse_block.rb +614 -0
- data/lib/maruku/input/parse_doc.rb +227 -0
- data/lib/maruku/input/parse_span_better.rb +746 -0
- data/lib/maruku/input/rubypants.rb +225 -0
- data/lib/maruku/input/type_detection.rb +147 -0
- data/lib/maruku/input_textile2/t2_parser.rb +163 -0
- data/lib/maruku/maruku.rb +33 -0
- data/lib/maruku/output/s5/fancy.rb +756 -0
- data/lib/maruku/output/s5/to_s5.rb +138 -0
- data/lib/maruku/output/to_html.rb +991 -0
- data/lib/maruku/output/to_latex.rb +590 -0
- data/lib/maruku/output/to_latex_entities.rb +367 -0
- data/lib/maruku/output/to_latex_strings.rb +64 -0
- data/lib/maruku/output/to_markdown.rb +164 -0
- data/lib/maruku/output/to_s.rb +56 -0
- data/lib/maruku/string_utils.rb +191 -0
- data/lib/maruku/structures.rb +167 -0
- data/lib/maruku/structures_inspect.rb +87 -0
- data/lib/maruku/structures_iterators.rb +61 -0
- data/lib/maruku/tests/benchmark.rb +82 -0
- data/lib/maruku/tests/new_parser.rb +373 -0
- data/lib/maruku/tests/tests.rb +136 -0
- data/lib/maruku/textile2.rb +1 -0
- data/lib/maruku/toc.rb +199 -0
- data/lib/maruku/usage/example1.rb +33 -0
- data/lib/maruku/version.rb +40 -0
- data/maruku.gemspec +32 -0
- data/tests/bugs/code_in_links.md +101 -0
- data/tests/bugs/complex_escaping.md +38 -0
- data/tests/math/syntax.md +46 -0
- data/tests/math_usage/document.md +13 -0
- data/tests/others/abbreviations.md +11 -0
- data/tests/others/blank.md +4 -0
- data/tests/others/code.md +5 -0
- data/tests/others/code2.md +8 -0
- data/tests/others/code3.md +16 -0
- data/tests/others/email.md +4 -0
- data/tests/others/entities.md +19 -0
- data/tests/others/escaping.md +16 -0
- data/tests/others/extra_dl.md +101 -0
- data/tests/others/extra_header_id.md +13 -0
- data/tests/others/extra_table1.md +40 -0
- data/tests/others/footnotes.md +17 -0
- data/tests/others/headers.md +10 -0
- data/tests/others/hrule.md +10 -0
- data/tests/others/images.md +20 -0
- data/tests/others/inline_html.md +42 -0
- data/tests/others/links.md +38 -0
- data/tests/others/list1.md +4 -0
- data/tests/others/list2.md +5 -0
- data/tests/others/list3.md +8 -0
- data/tests/others/lists.md +32 -0
- data/tests/others/lists_after_paragraph.md +44 -0
- data/tests/others/lists_ol.md +39 -0
- data/tests/others/misc_sw.md +105 -0
- data/tests/others/one.md +1 -0
- data/tests/others/paragraphs.md +13 -0
- data/tests/others/sss06.md +352 -0
- data/tests/others/test.md +4 -0
- data/tests/s5/s5profiling.md +48 -0
- data/tests/unittest/abbreviations.md +64 -0
- data/tests/unittest/alt.md +29 -0
- data/tests/unittest/attributes/att2.md +32 -0
- data/tests/unittest/attributes/att3.md +40 -0
- data/tests/unittest/attributes/attributes.md +69 -0
- data/tests/unittest/attributes/circular.md +38 -0
- data/tests/unittest/attributes/default.md +34 -0
- data/tests/unittest/blank.md +36 -0
- data/tests/unittest/blanks_in_code.md +87 -0
- data/tests/unittest/bug_def.md +28 -0
- data/tests/unittest/bug_table.md +58 -0
- data/tests/unittest/code.md +46 -0
- data/tests/unittest/code2.md +40 -0
- data/tests/unittest/code3.md +83 -0
- data/tests/unittest/data_loss.md +37 -0
- data/tests/unittest/divs/div1.md +179 -0
- data/tests/unittest/divs/div2.md +33 -0
- data/tests/unittest/divs/div3_nest.md +57 -0
- data/tests/unittest/easy.md +27 -0
- data/tests/unittest/email.md +32 -0
- data/tests/unittest/encoding/iso-8859-1.md +35 -0
- data/tests/unittest/encoding/utf-8.md +30 -0
- data/tests/unittest/entities.md +106 -0
- data/tests/unittest/escaping.md +79 -0
- data/tests/unittest/extra_dl.md +64 -0
- data/tests/unittest/extra_header_id.md +75 -0
- data/tests/unittest/extra_table1.md +49 -0
- data/tests/unittest/footnotes.md +109 -0
- data/tests/unittest/headers.md +49 -0
- data/tests/unittest/hex_entities.md +49 -0
- data/tests/unittest/hrule.md +51 -0
- data/tests/unittest/html2.md +34 -0
- data/tests/unittest/html3.md +43 -0
- data/tests/unittest/html4.md +37 -0
- data/tests/unittest/html5.md +35 -0
- data/tests/unittest/ie.md +61 -0
- data/tests/unittest/images.md +102 -0
- data/tests/unittest/images2.md +43 -0
- data/tests/unittest/inline_html.md +187 -0
- data/tests/unittest/inline_html2.md +33 -0
- data/tests/unittest/links.md +164 -0
- data/tests/unittest/links2.md +34 -0
- data/tests/unittest/list1.md +58 -0
- data/tests/unittest/list12.md +40 -0
- data/tests/unittest/list2.md +68 -0
- data/tests/unittest/list3.md +76 -0
- data/tests/unittest/list4.md +101 -0
- data/tests/unittest/lists.md +204 -0
- data/tests/unittest/lists10.md +46 -0
- data/tests/unittest/lists11.md +28 -0
- data/tests/unittest/lists6.md +53 -0
- data/tests/unittest/lists9.md +76 -0
- data/tests/unittest/lists_after_paragraph.md +220 -0
- data/tests/unittest/lists_ol.md +274 -0
- data/tests/unittest/loss.md +28 -0
- data/tests/unittest/math/equations.md +86 -0
- data/tests/unittest/math/inline.md +58 -0
- data/tests/unittest/math/math2.md +88 -0
- data/tests/unittest/math/notmath.md +37 -0
- data/tests/unittest/math/table.md +52 -0
- data/tests/unittest/math/table2.md +54 -0
- data/tests/unittest/misc_sw.md +537 -0
- data/tests/unittest/notyet/escape.md +33 -0
- data/tests/unittest/notyet/header_after_par.md +70 -0
- data/tests/unittest/notyet/ticks.md +30 -0
- data/tests/unittest/notyet/triggering.md +169 -0
- data/tests/unittest/olist.md +57 -0
- data/tests/unittest/one.md +27 -0
- data/tests/unittest/paragraph.md +28 -0
- data/tests/unittest/paragraph_rules/dont_merge_ref.md +54 -0
- data/tests/unittest/paragraph_rules/tab_is_blank.md +36 -0
- data/tests/unittest/paragraphs.md +58 -0
- data/tests/unittest/pending/amps.md +27 -0
- data/tests/unittest/pending/empty_cells.md +49 -0
- data/tests/unittest/pending/link.md +84 -0
- data/tests/unittest/pending/ref.md +33 -0
- data/tests/unittest/recover/recover_links.md +27 -0
- data/tests/unittest/red_tests/abbrev.md +1388 -0
- data/tests/unittest/red_tests/lists7.md +68 -0
- data/tests/unittest/red_tests/lists7b.md +128 -0
- data/tests/unittest/red_tests/lists8.md +76 -0
- data/tests/unittest/references/long_example.md +83 -0
- data/tests/unittest/references/spaces_and_numbers.md +27 -0
- data/tests/unittest/smartypants.md +126 -0
- data/tests/unittest/syntax_hl.md +64 -0
- data/tests/unittest/table_attributes.md +46 -0
- data/tests/unittest/test.md +31 -0
- data/tests/unittest/underscore_in_words.md +27 -0
- data/tests/unittest/wrapping.md +79 -0
- data/tests/unittest/xml.md +45 -0
- data/tests/unittest/xml2.md +31 -0
- data/tests/unittest/xml3.md +38 -0
- data/tests/unittest/xml_instruction.md +64 -0
- data/tests/utf8-files/simple.md +1 -0
- data/unit_test_block.sh +5 -0
- data/unit_test_span.sh +3 -0
- metadata +251 -0
@@ -0,0 +1,37 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
{} # params
|
4
|
+
*** Markdown input: ***
|
5
|
+
<div class="frame">
|
6
|
+
<a class="photo" href="http://www.flickr.com/photos/censi/54757256/"><img alt=""
|
7
|
+
moz-do-not-send="true"
|
8
|
+
src="http://static.flickr.com/27/54757256_1a2c1d2a95_m.jpg" /></a>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
|
12
|
+
*** Output of inspect ***
|
13
|
+
md_el(:document,[
|
14
|
+
md_html("<div class=\"frame\">\n\t<a class=\"photo\" href=\"http://www.flickr.com/photos/censi/54757256/\"><img alt=\"\"\n moz-do-not-send=\"true\"\n src=\"http://static.flickr.com/27/54757256_1a2c1d2a95_m.jpg\" /></a>\n</div>")
|
15
|
+
],{},[])
|
16
|
+
*** Output of to_html ***
|
17
|
+
<div class='frame'>
|
18
|
+
<a href='http://www.flickr.com/photos/censi/54757256/' class='photo'><img src='http://static.flickr.com/27/54757256_1a2c1d2a95_m.jpg' moz-do-not-send='true' alt='' /></a>
|
19
|
+
</div>
|
20
|
+
*** Output of to_latex ***
|
21
|
+
|
22
|
+
*** Output of to_md ***
|
23
|
+
|
24
|
+
*** Output of to_s ***
|
25
|
+
|
26
|
+
*** EOF ***
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
OK!
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
*** Output of Markdown.pl ***
|
35
|
+
(not used anymore)
|
36
|
+
*** Output of Markdown.pl (parsed) ***
|
37
|
+
(not used anymore)
|
@@ -0,0 +1,35 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
{} # params
|
4
|
+
*** Markdown input: ***
|
5
|
+
<div class="frame">
|
6
|
+
<a class="photo" href="http://www.flickr.com/photos/censi/88561568/" ><img moz-do-not-send="true" src="http://static.flickr.com/28/88561568_ab84d28245_m.jpg" width="240" height="180" alt="Aperitif" /></a>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
|
10
|
+
*** Output of inspect ***
|
11
|
+
md_el(:document,[
|
12
|
+
md_html(" <div class=\"frame\">\n <a class=\"photo\" href=\"http://www.flickr.com/photos/censi/88561568/\" ><img moz-do-not-send=\"true\" src=\"http://static.flickr.com/28/88561568_ab84d28245_m.jpg\" width=\"240\" height=\"180\" alt=\"Aperitif\" /></a>\n </div>")
|
13
|
+
],{},[])
|
14
|
+
*** Output of to_html ***
|
15
|
+
<div class='frame'>
|
16
|
+
<a href='http://www.flickr.com/photos/censi/88561568/' class='photo'><img src='http://static.flickr.com/28/88561568_ab84d28245_m.jpg' height='180' moz-do-not-send='true' alt='Aperitif' width='240' /></a>
|
17
|
+
</div>
|
18
|
+
*** Output of to_latex ***
|
19
|
+
|
20
|
+
*** Output of to_md ***
|
21
|
+
|
22
|
+
*** Output of to_s ***
|
23
|
+
|
24
|
+
*** EOF ***
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
OK!
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
*** Output of Markdown.pl ***
|
33
|
+
(not used anymore)
|
34
|
+
*** Output of Markdown.pl (parsed) ***
|
35
|
+
(not used anymore)
|
@@ -0,0 +1,61 @@
|
|
1
|
+
We must make sure that `'` is always written as `'`.
|
2
|
+
|
3
|
+
*** Parameters: ***
|
4
|
+
{} # params
|
5
|
+
*** Markdown input: ***
|
6
|
+
`<p>here's an apostrophe & a quote "</p>`
|
7
|
+
|
8
|
+
<p>here's an apostrophe & a quote "</p>
|
9
|
+
{:}
|
10
|
+
|
11
|
+
<p>here's an apostrophe & a quote "</p>
|
12
|
+
{:lang=xml}
|
13
|
+
|
14
|
+
<p>here's an apostrophe & a quote "</p>
|
15
|
+
{:html_use_syntax=true lang=not_supported}
|
16
|
+
|
17
|
+
<p>here's an apostrophe & a quote "</p>
|
18
|
+
{:html_use_syntax=true lang=xml}
|
19
|
+
|
20
|
+
|
21
|
+
*** Output of inspect ***
|
22
|
+
md_el(:document,[
|
23
|
+
md_par([md_code("<p>here's an apostrophe & a quote \"</p>")]),
|
24
|
+
md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[]),
|
25
|
+
md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[["lang", "xml"]]),
|
26
|
+
md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[["html_use_syntax", "true"], ["lang", "not_supported"]]),
|
27
|
+
md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[["html_use_syntax", "true"], ["lang", "xml"]])
|
28
|
+
],{},[])
|
29
|
+
*** Output of to_html ***
|
30
|
+
<p><code><p>here's an apostrophe & a quote "</p></code></p>
|
31
|
+
|
32
|
+
<pre><code><p>here's an apostrophe & a quote "</p></code></pre>
|
33
|
+
|
34
|
+
<pre lang='xml'><code class='xml' lang='xml'><p>here's an apostrophe & a quote "</p></code></pre>
|
35
|
+
|
36
|
+
<pre><code class='not_supported' lang='not_supported'><p>here's an apostrophe & a quote "</p></code></pre>
|
37
|
+
|
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>
|
39
|
+
*** Output of to_latex ***
|
40
|
+
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char60p\char62here\char39s~an~apostrophe~\char38~a~quote~\char34\char60\char47p\char62}}
|
41
|
+
|
42
|
+
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
|
43
|
+
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
|
44
|
+
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
|
45
|
+
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
|
46
|
+
*** Output of to_md ***
|
47
|
+
|
48
|
+
*** Output of to_s ***
|
49
|
+
|
50
|
+
*** EOF ***
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
OK!
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
*** Output of Markdown.pl ***
|
59
|
+
(not used anymore)
|
60
|
+
*** Output of Markdown.pl (parsed) ***
|
61
|
+
(not used anymore)
|
@@ -0,0 +1,102 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
|
6
|
+
This page does not uilizes ![Cascading Style Sheets](http://jigsaw.w3.org/css-validator/images/vcss)
|
7
|
+
|
8
|
+
|
9
|
+
Please mouseover to see the title: ![Cascading Style Sheets](http://jigsaw.w3.org/css-validator/images/vcss "Title ok!")
|
10
|
+
|
11
|
+
Please mouseover to see the title: ![Cascading Style Sheets](http://jigsaw.w3.org/css-validator/images/vcss 'Title ok!')
|
12
|
+
|
13
|
+
|
14
|
+
I'll say it one more time: this page does not use ![Cascading Style Sheets] [css]
|
15
|
+
|
16
|
+
This is double size: ![Cascading Style Sheets] [css2]
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
[css]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute"
|
21
|
+
|
22
|
+
[css2]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute" class=external
|
23
|
+
style="border:0;width:188px;height:131px"
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
*** Output of inspect ***
|
28
|
+
md_el(:document,[
|
29
|
+
md_par([
|
30
|
+
"This page does not uilizes ",
|
31
|
+
md_im_image(["Cascading Style Sheets"], "http://jigsaw.w3.org/css-validator/images/vcss", nil)
|
32
|
+
]),
|
33
|
+
md_par([
|
34
|
+
"Please mouseover to see the title: ",
|
35
|
+
md_im_image(["Cascading Style Sheets"], "http://jigsaw.w3.org/css-validator/images/vcss", "Title ok!")
|
36
|
+
]),
|
37
|
+
md_par([
|
38
|
+
"Please mouseover to see the title: ",
|
39
|
+
md_im_image(["Cascading Style Sheets"], "http://jigsaw.w3.org/css-validator/images/vcss", "Title ok!")
|
40
|
+
]),
|
41
|
+
md_par([
|
42
|
+
"I",
|
43
|
+
md_entity("rsquo"),
|
44
|
+
"ll say it one more time: this page does not use ",
|
45
|
+
md_image(["Cascading Style Sheets"], "css")
|
46
|
+
]),
|
47
|
+
md_par([
|
48
|
+
"This is double size: ",
|
49
|
+
md_image(["Cascading Style Sheets"], "css2")
|
50
|
+
]),
|
51
|
+
md_ref_def("css", "http://jigsaw.w3.org/css-validator/images/vcss", {:title=>"Optional title attribute"}),
|
52
|
+
md_ref_def("css2", "http://jigsaw.w3.org/css-validator/images/vcss", {:title=>"Optional title attribute"})
|
53
|
+
],{},[])
|
54
|
+
*** Output of to_html ***
|
55
|
+
<p>This page does not uilizes <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
|
56
|
+
|
57
|
+
<p>Please mouseover to see the title: <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
|
58
|
+
|
59
|
+
<p>Please mouseover to see the title: <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
|
60
|
+
|
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>
|
62
|
+
|
63
|
+
<p>This is double size: <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
|
64
|
+
*** Output of to_latex ***
|
65
|
+
This page does not uilizes
|
66
|
+
|
67
|
+
Please mouseover to see the title:
|
68
|
+
|
69
|
+
Please mouseover to see the title:
|
70
|
+
|
71
|
+
I'{}ll say it one more time: this page does not use
|
72
|
+
|
73
|
+
This is double size:
|
74
|
+
*** Output of to_md ***
|
75
|
+
This page does not uilizes
|
76
|
+
Cascading Style Sheets
|
77
|
+
|
78
|
+
Please mouseover to see the title:
|
79
|
+
Cascading Style Sheets
|
80
|
+
|
81
|
+
Please mouseover to see the title:
|
82
|
+
Cascading Style Sheets
|
83
|
+
|
84
|
+
I ll say it one more time: this page
|
85
|
+
does not use Cascading Style Sheets
|
86
|
+
|
87
|
+
This is double size:
|
88
|
+
Cascading Style Sheets
|
89
|
+
*** Output of to_s ***
|
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
|
91
|
+
*** EOF ***
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
OK!
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
*** Output of Markdown.pl ***
|
100
|
+
(not used anymore)
|
101
|
+
*** Output of Markdown.pl (parsed) ***
|
102
|
+
(not used anymore)
|
@@ -0,0 +1,43 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
{} # params
|
4
|
+
*** Markdown input: ***
|
5
|
+
|
6
|
+
This is an ![image][].
|
7
|
+
|
8
|
+
This is an ![image].
|
9
|
+
|
10
|
+
[image]: image.jpg
|
11
|
+
|
12
|
+
*** Output of inspect ***
|
13
|
+
md_el(:document,[
|
14
|
+
md_par(["This is an ", md_image(["image"], "image"), "."]),
|
15
|
+
md_par(["This is an ", md_image(["image"], "image"), "."]),
|
16
|
+
md_ref_def("image", "image.jpg", {:title=>nil})
|
17
|
+
],{},[])
|
18
|
+
*** Output of to_html ***
|
19
|
+
<p>This is an <img src='image.jpg' alt='image' />.</p>
|
20
|
+
|
21
|
+
<p>This is an <img src='image.jpg' alt='image' />.</p>
|
22
|
+
*** Output of to_latex ***
|
23
|
+
This is an .
|
24
|
+
|
25
|
+
This is an .
|
26
|
+
*** Output of to_md ***
|
27
|
+
This is an image.
|
28
|
+
|
29
|
+
This is an image.
|
30
|
+
*** Output of to_s ***
|
31
|
+
This is an image.This is an image.
|
32
|
+
*** EOF ***
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
OK!
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
*** Output of Markdown.pl ***
|
41
|
+
(not used anymore)
|
42
|
+
*** Output of Markdown.pl (parsed) ***
|
43
|
+
(not used anymore)
|
@@ -0,0 +1,187 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{:css=>"style.css"}
|
4
|
+
*** Markdown input: ***
|
5
|
+
CSS: style.css
|
6
|
+
|
7
|
+
Input:
|
8
|
+
|
9
|
+
<em>Emphasis</em>
|
10
|
+
|
11
|
+
Result: <em>Emphasis</em>
|
12
|
+
|
13
|
+
Input:
|
14
|
+
|
15
|
+
<img src="http://jigsaw.w3.org/css-validator/images/vcss"/>
|
16
|
+
|
17
|
+
Result on span: <img src="http://jigsaw.w3.org/css-validator/images/vcss"/>
|
18
|
+
|
19
|
+
Result alone:
|
20
|
+
|
21
|
+
<img src="http://jigsaw.w3.org/css-validator/images/vcss"/>
|
22
|
+
|
23
|
+
Without closing:
|
24
|
+
|
25
|
+
<img src="http://jigsaw.w3.org/css-validator/images/vcss">
|
26
|
+
|
27
|
+
<div markdown="1">
|
28
|
+
This is *true* markdown text (paragraph)
|
29
|
+
|
30
|
+
<p markdown="1">
|
31
|
+
This is *true* markdown text (no paragraph)
|
32
|
+
</p>
|
33
|
+
<p markdown="block">
|
34
|
+
This is *true* markdown text (block paragraph)
|
35
|
+
</p>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<table>
|
39
|
+
<tr>
|
40
|
+
<td markdown="1">This is *true* markdown text. (no par)</td>
|
41
|
+
<td markdown="block">This is *true* markdown text. (par)</td>
|
42
|
+
</tr>
|
43
|
+
</table>
|
44
|
+
|
45
|
+
|
46
|
+
The following is invalid HTML, and will generate an error:
|
47
|
+
|
48
|
+
<table>
|
49
|
+
<td markdown="1">This is *true* markdown text. (no par)</td>
|
50
|
+
<td markdown="block">This is *true* markdown text. (par)</td>
|
51
|
+
</tr>
|
52
|
+
</table>
|
53
|
+
|
54
|
+
|
55
|
+
*** Output of inspect ***
|
56
|
+
md_el(:document,[
|
57
|
+
md_par(["Input:"]),
|
58
|
+
md_el(:code,[],{:raw_code=>"<em>Emphasis</em>"},[]),
|
59
|
+
md_par(["Result: ", md_html("<em>Emphasis</em>")]),
|
60
|
+
md_par(["Input:"]),
|
61
|
+
md_el(:code,[],{:raw_code=>"<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\"/>"},[]),
|
62
|
+
md_par([
|
63
|
+
"Result on span: ",
|
64
|
+
md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />")
|
65
|
+
]),
|
66
|
+
md_par(["Result alone:"]),
|
67
|
+
md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />"),
|
68
|
+
md_par(["Without closing:"]),
|
69
|
+
md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />"),
|
70
|
+
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>"),
|
71
|
+
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>"),
|
72
|
+
md_par(["The following is invalid HTML, and will generate an error:"]),
|
73
|
+
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>"),
|
74
|
+
md_html("</table>")
|
75
|
+
],{},[])
|
76
|
+
*** Output of to_html ***
|
77
|
+
<p>Input:</p>
|
78
|
+
|
79
|
+
<pre><code><em>Emphasis</em></code></pre>
|
80
|
+
|
81
|
+
<p>Result: <em>Emphasis</em></p>
|
82
|
+
|
83
|
+
<p>Input:</p>
|
84
|
+
|
85
|
+
<pre><code><img src="http://jigsaw.w3.org/css-validator/images/vcss"/></code></pre>
|
86
|
+
|
87
|
+
<p>Result on span: <img src='http://jigsaw.w3.org/css-validator/images/vcss' /></p>
|
88
|
+
|
89
|
+
<p>Result alone:</p>
|
90
|
+
<img src='http://jigsaw.w3.org/css-validator/images/vcss' />
|
91
|
+
<p>Without closing:</p>
|
92
|
+
<img src='http://jigsaw.w3.org/css-validator/images/vcss' /><div>
|
93
|
+
<p>
|
94
|
+
<p>This is</p>
|
95
|
+
<em>
|
96
|
+
<p>true</p>
|
97
|
+
</em>
|
98
|
+
<p>markdown text (paragraph)</p>
|
99
|
+
</p>
|
100
|
+
<p>
|
101
|
+
<p>
|
102
|
+
<p>This is</p>
|
103
|
+
<em>
|
104
|
+
<p>true</p>
|
105
|
+
</em>
|
106
|
+
<p>markdown text (no paragraph)</p>
|
107
|
+
</p>
|
108
|
+
</p>
|
109
|
+
<p>
|
110
|
+
<p>
|
111
|
+
<p>This is</p>
|
112
|
+
<em>
|
113
|
+
<p>true</p>
|
114
|
+
</em>
|
115
|
+
<p>markdown text (block paragraph)</p>
|
116
|
+
</p>
|
117
|
+
</p>
|
118
|
+
</div><table>
|
119
|
+
<tr>
|
120
|
+
<td>
|
121
|
+
<p>This is</p>
|
122
|
+
<em>
|
123
|
+
<p>true</p>
|
124
|
+
</em>
|
125
|
+
<p>markdown text. (no par)</p>
|
126
|
+
</td>
|
127
|
+
<td>
|
128
|
+
<p>This is</p>
|
129
|
+
<em>
|
130
|
+
<p>true</p>
|
131
|
+
</em>
|
132
|
+
<p>markdown text. (par)</p>
|
133
|
+
</td>
|
134
|
+
</tr>
|
135
|
+
</table>
|
136
|
+
<p>The following is invalid HTML, and will generate an error:</p>
|
137
|
+
<pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>HTML parse error:
|
138
|
+
<table>
|
139
|
+
<td markdown="1">This is *true* markdown text. (no par)</td>
|
140
|
+
<td markdown="block">This is *true* markdown text. (par)</td>
|
141
|
+
</tr></pre><pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>HTML parse error:
|
142
|
+
</table></pre>
|
143
|
+
*** Output of to_latex ***
|
144
|
+
Input:
|
145
|
+
|
146
|
+
\begin{verbatim}<em>Emphasis</em>\end{verbatim}
|
147
|
+
Result:
|
148
|
+
|
149
|
+
Input:
|
150
|
+
|
151
|
+
\begin{verbatim}<img src="http://jigsaw.w3.org/css-validator/images/vcss"/>\end{verbatim}
|
152
|
+
Result on span:
|
153
|
+
|
154
|
+
Result alone:
|
155
|
+
|
156
|
+
Without closing:
|
157
|
+
|
158
|
+
The following is invalid HTML, and will generate an error:
|
159
|
+
*** Output of to_md ***
|
160
|
+
Input:
|
161
|
+
|
162
|
+
Result:
|
163
|
+
|
164
|
+
Input:
|
165
|
+
|
166
|
+
Result on span:
|
167
|
+
|
168
|
+
Result alone:
|
169
|
+
|
170
|
+
Without closing:
|
171
|
+
|
172
|
+
The following is invalid HTML, and will
|
173
|
+
generate an error:
|
174
|
+
*** Output of to_s ***
|
175
|
+
Input:Result: Input:Result on span: Result alone:Without closing:The following is invalid HTML, and will generate an error:
|
176
|
+
*** EOF ***
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
OK!
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
*** Output of Markdown.pl ***
|
185
|
+
(not used anymore)
|
186
|
+
*** Output of Markdown.pl (parsed) ***
|
187
|
+
(not used anymore)
|