remi-maruku 0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +73 -0
- data/bin/marudown +29 -0
- data/bin/maruku +176 -0
- data/bin/marutest +338 -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 +70 -0
- data/lib/maruku/errors_management.rb +92 -0
- data/lib/maruku/ext/div.rb +100 -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 +11 -0
- data/lib/maruku/ext/math/mathml_engines/blahtex.rb +104 -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 +105 -0
- data/lib/maruku/ext/math/to_html.rb +170 -0
- data/lib/maruku/ext/math/to_latex.rb +22 -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 +613 -0
- data/lib/maruku/input/parse_doc.rb +227 -0
- data/lib/maruku/input/parse_span_better.rb +732 -0
- data/lib/maruku/input/rubypants.rb +225 -0
- data/lib/maruku/input/type_detection.rb +144 -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 +125 -0
- data/lib/maruku/output/to_html.rb +971 -0
- data/lib/maruku/output/to_latex.rb +563 -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 +53 -0
- data/lib/maruku/string_utils.rb +191 -0
- data/lib/maruku/structures.rb +165 -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 +370 -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/tests/bugs/code_in_links.md +16 -0
- data/tests/bugs/complex_escaping.md +4 -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 +72 -0
- data/tests/unittest/alt.md +30 -0
- data/tests/unittest/attributes/att2.md +34 -0
- data/tests/unittest/attributes/att3.md +45 -0
- data/tests/unittest/attributes/attributes.md +82 -0
- data/tests/unittest/attributes/circular.md +43 -0
- data/tests/unittest/attributes/default.md +38 -0
- data/tests/unittest/blank.md +39 -0
- data/tests/unittest/blanks_in_code.md +106 -0
- data/tests/unittest/bug_def.md +29 -0
- data/tests/unittest/bug_table.md +67 -0
- data/tests/unittest/code.md +53 -0
- data/tests/unittest/code2.md +46 -0
- data/tests/unittest/code3.md +102 -0
- data/tests/unittest/data_loss.md +42 -0
- data/tests/unittest/divs/div1.md +204 -0
- data/tests/unittest/divs/div2.md +34 -0
- data/tests/unittest/divs/div3_nest.md +62 -0
- data/tests/unittest/easy.md +28 -0
- data/tests/unittest/email.md +33 -0
- data/tests/unittest/encoding/iso-8859-1.md +38 -0
- data/tests/unittest/encoding/utf-8.md +33 -0
- data/tests/unittest/entities.md +124 -0
- data/tests/unittest/escaping.md +89 -0
- data/tests/unittest/extra_dl.md +72 -0
- data/tests/unittest/extra_header_id.md +86 -0
- data/tests/unittest/extra_table1.md +55 -0
- data/tests/unittest/footnotes.md +126 -0
- data/tests/unittest/headers.md +54 -0
- data/tests/unittest/hex_entities.md +50 -0
- data/tests/unittest/hrule.md +60 -0
- data/tests/unittest/html2.md +38 -0
- data/tests/unittest/html3.md +47 -0
- data/tests/unittest/html4.md +42 -0
- data/tests/unittest/html5.md +38 -0
- data/tests/unittest/ie.md +82 -0
- data/tests/unittest/images.md +114 -0
- data/tests/unittest/images2.md +46 -0
- data/tests/unittest/inline_html.md +260 -0
- data/tests/unittest/inline_html2.md +36 -0
- data/tests/unittest/links.md +197 -0
- data/tests/unittest/list1.md +66 -0
- data/tests/unittest/list2.md +76 -0
- data/tests/unittest/list3.md +88 -0
- data/tests/unittest/list4.md +116 -0
- data/tests/unittest/lists.md +241 -0
- data/tests/unittest/lists11.md +31 -0
- data/tests/unittest/lists6.md +54 -0
- data/tests/unittest/lists7.md +79 -0
- data/tests/unittest/lists7b.md +136 -0
- data/tests/unittest/lists8.md +83 -0
- data/tests/unittest/lists9.md +85 -0
- data/tests/unittest/lists_after_paragraph.md +268 -0
- data/tests/unittest/lists_ol.md +324 -0
- data/tests/unittest/loss.md +29 -0
- data/tests/unittest/math/equations.md +69 -0
- data/tests/unittest/math/inline.md +66 -0
- data/tests/unittest/math/math2.md +110 -0
- data/tests/unittest/math/notmath.md +40 -0
- data/tests/unittest/math/table.md +43 -0
- data/tests/unittest/math/table2.md +60 -0
- data/tests/unittest/misc_sw.md +615 -0
- data/tests/unittest/notyet/escape.md +36 -0
- data/tests/unittest/notyet/header_after_par.md +81 -0
- data/tests/unittest/notyet/ticks.md +31 -0
- data/tests/unittest/notyet/triggering.md +206 -0
- data/tests/unittest/olist.md +64 -0
- data/tests/unittest/one.md +28 -0
- data/tests/unittest/paragraph.md +29 -0
- data/tests/unittest/paragraph_rules/dont_merge_ref.md +57 -0
- data/tests/unittest/paragraph_rules/tab_is_blank.md +39 -0
- data/tests/unittest/paragraphs.md +66 -0
- data/tests/unittest/pending/amps.md +29 -0
- data/tests/unittest/pending/empty_cells.md +53 -0
- data/tests/unittest/pending/link.md +103 -0
- data/tests/unittest/recover/recover_links.md +28 -0
- data/tests/unittest/references/long_example.md +88 -0
- data/tests/unittest/references/spaces_and_numbers.md +28 -0
- data/tests/unittest/smartypants.md +171 -0
- data/tests/unittest/syntax_hl.md +80 -0
- data/tests/unittest/table_attributes.md +52 -0
- data/tests/unittest/test.md +32 -0
- data/tests/unittest/wrapping.md +88 -0
- data/tests/unittest/xml.md +54 -0
- data/tests/unittest/xml2.md +34 -0
- data/tests/unittest/xml3.md +44 -0
- data/tests/unittest/xml_instruction.md +72 -0
- data/tests/utf8-files/simple.md +1 -0
- data/unit_test_block.sh +5 -0
- data/unit_test_span.sh +2 -0
- metadata +243 -0
@@ -0,0 +1,36 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
`\\`
|
6
|
+
|
7
|
+
`\`
|
8
|
+
*** Output of inspect ***
|
9
|
+
md_el(:document,[md_par([md_code("\\\\")]), md_par([md_code("\\")])],{},[])
|
10
|
+
*** Output of to_html ***
|
11
|
+
<p><code>\\</code></p>
|
12
|
+
|
13
|
+
<p><code>\</code></p>
|
14
|
+
*** Output of to_latex ***
|
15
|
+
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char92\char92}}
|
16
|
+
|
17
|
+
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char92}}
|
18
|
+
*** Output of to_md ***
|
19
|
+
|
20
|
+
*** Output of to_s ***
|
21
|
+
|
22
|
+
*** EOF ***
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
OK!
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
*** Output of Markdown.pl ***
|
31
|
+
<p><code>\\</code></p>
|
32
|
+
|
33
|
+
<p><code>\</code></p>
|
34
|
+
|
35
|
+
*** Output of Markdown.pl (parsed) ***
|
36
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,81 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{:title=>"header"}
|
4
|
+
*** Markdown input: ***
|
5
|
+
Paragraph
|
6
|
+
### header ###
|
7
|
+
|
8
|
+
Paragraph
|
9
|
+
header
|
10
|
+
------
|
11
|
+
|
12
|
+
Paragraph
|
13
|
+
header
|
14
|
+
======
|
15
|
+
|
16
|
+
*** Output of inspect ***
|
17
|
+
md_el(:document,[
|
18
|
+
md_par(["Paragraph"]),
|
19
|
+
md_el(:header,["header"],{:level=>3},[]),
|
20
|
+
md_par(["Paragraph"]),
|
21
|
+
md_el(:header,["header"],{:level=>2},[]),
|
22
|
+
md_par(["Paragraph"]),
|
23
|
+
md_el(:header,["header"],{:level=>1},[])
|
24
|
+
],{},[])
|
25
|
+
*** Output of to_html ***
|
26
|
+
<p>Paragraph</p>
|
27
|
+
|
28
|
+
<h3 id='header'>header</h3>
|
29
|
+
|
30
|
+
<p>Paragraph</p>
|
31
|
+
|
32
|
+
<h2 id='header'>header</h2>
|
33
|
+
|
34
|
+
<p>Paragraph</p>
|
35
|
+
|
36
|
+
<h1 id='header'>header</h1>
|
37
|
+
*** Output of to_latex ***
|
38
|
+
Paragraph
|
39
|
+
|
40
|
+
\hypertarget{header}{}\subsubsection*{{header}}\label{header}
|
41
|
+
|
42
|
+
Paragraph
|
43
|
+
|
44
|
+
\hypertarget{header}{}\subsection*{{header}}\label{header}
|
45
|
+
|
46
|
+
Paragraph
|
47
|
+
|
48
|
+
\hypertarget{header}{}\section*{{header}}\label{header}
|
49
|
+
*** Output of to_md ***
|
50
|
+
Paragraph
|
51
|
+
|
52
|
+
headerParagraph
|
53
|
+
|
54
|
+
headerParagraph
|
55
|
+
|
56
|
+
header
|
57
|
+
*** Output of to_s ***
|
58
|
+
ParagraphheaderParagraphheaderParagraphheader
|
59
|
+
*** EOF ***
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
OK!
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
*** Output of Markdown.pl ***
|
68
|
+
<p>Paragraph</p>
|
69
|
+
|
70
|
+
<h3>header</h3>
|
71
|
+
|
72
|
+
<p>Paragraph</p>
|
73
|
+
|
74
|
+
<h2>header</h2>
|
75
|
+
|
76
|
+
<p>Paragraph</p>
|
77
|
+
|
78
|
+
<h1>header</h1>
|
79
|
+
|
80
|
+
*** Output of Markdown.pl (parsed) ***
|
81
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
|
6
|
+
``There is a literal backtick (`) here.``
|
7
|
+
|
8
|
+
|
9
|
+
*** Output of inspect ***
|
10
|
+
md_el(:document,[md_par([md_code("There is a literal backtick (`) here.")])],{},[])
|
11
|
+
*** Output of to_html ***
|
12
|
+
<p><code>There is a literal backtick (`) here.</code></p>
|
13
|
+
*** Output of to_latex ***
|
14
|
+
{\colorbox[rgb]{1.00,0.93,1.00}{\tt There~is~a~literal~backtick~\char40\char96\char41~here\char46}}
|
15
|
+
*** Output of to_md ***
|
16
|
+
|
17
|
+
*** Output of to_s ***
|
18
|
+
|
19
|
+
*** EOF ***
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
OK!
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
*** Output of Markdown.pl ***
|
28
|
+
<p><code>There is a literal backtick (`) here.</code></p>
|
29
|
+
|
30
|
+
*** Output of Markdown.pl (parsed) ***
|
31
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,206 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
Paragraph, list with no space:
|
6
|
+
* ciao
|
7
|
+
|
8
|
+
Paragraph, list with 1 space:
|
9
|
+
* ciao
|
10
|
+
|
11
|
+
Paragraph, list with 3 space:
|
12
|
+
* ciao
|
13
|
+
|
14
|
+
Paragraph, list with 4 spaces:
|
15
|
+
* ciao
|
16
|
+
|
17
|
+
Paragraph, list with 1 tab:
|
18
|
+
* ciao
|
19
|
+
|
20
|
+
Paragraph (1 space after), list with no space:
|
21
|
+
* ciao
|
22
|
+
|
23
|
+
Paragraph (2 spaces after), list with no space:
|
24
|
+
* ciao
|
25
|
+
|
26
|
+
Paragraph (3 spaces after), list with no space:
|
27
|
+
* ciao
|
28
|
+
|
29
|
+
Paragraph with block quote:
|
30
|
+
> Quoted
|
31
|
+
|
32
|
+
Paragraph with header:
|
33
|
+
### header ###
|
34
|
+
|
35
|
+
Paragraph with header on two lines:
|
36
|
+
header
|
37
|
+
------
|
38
|
+
|
39
|
+
*** Output of inspect ***
|
40
|
+
md_el(:document,[
|
41
|
+
md_par(["Paragraph, list with no space: * ciao"]),
|
42
|
+
md_par(["Paragraph, list with 1 space: * ciao"]),
|
43
|
+
md_par(["Paragraph, list with 3 space: * ciao"]),
|
44
|
+
md_par(["Paragraph, list with 4 spaces: * ciao"]),
|
45
|
+
md_par(["Paragraph, list with 1 tab: * ciao"]),
|
46
|
+
md_par(["Paragraph (1 space after), list with no space: * ciao"]),
|
47
|
+
md_par([
|
48
|
+
"Paragraph (2 spaces after), list with no space:",
|
49
|
+
md_el(:linebreak,[],{},[]),
|
50
|
+
"* ciao"
|
51
|
+
]),
|
52
|
+
md_par([
|
53
|
+
"Paragraph (3 spaces after), list with no space: ",
|
54
|
+
md_el(:linebreak,[],{},[]),
|
55
|
+
"* ciao"
|
56
|
+
]),
|
57
|
+
md_par(["Paragraph with block quote:"]),
|
58
|
+
md_el(:quote,[md_par(["Quoted"])],{},[]),
|
59
|
+
md_par(["Paragraph with header:"]),
|
60
|
+
md_el(:header,["header"],{:level=>3},[]),
|
61
|
+
md_par(["Paragraph with header on two lines:"]),
|
62
|
+
md_el(:header,["header"],{:level=>2},[])
|
63
|
+
],{},[])
|
64
|
+
*** Output of to_html ***
|
65
|
+
<p>Paragraph, list with no space: * ciao</p>
|
66
|
+
|
67
|
+
<p>Paragraph, list with 1 space: * ciao</p>
|
68
|
+
|
69
|
+
<p>Paragraph, list with 3 space: * ciao</p>
|
70
|
+
|
71
|
+
<p>Paragraph, list with 4 spaces: * ciao</p>
|
72
|
+
|
73
|
+
<p>Paragraph, list with 1 tab: * ciao</p>
|
74
|
+
|
75
|
+
<p>Paragraph (1 space after), list with no space: * ciao</p>
|
76
|
+
|
77
|
+
<p>Paragraph (2 spaces after), list with no space:<br />* ciao</p>
|
78
|
+
|
79
|
+
<p>Paragraph (3 spaces after), list with no space: <br />* ciao</p>
|
80
|
+
|
81
|
+
<p>Paragraph with block quote:</p>
|
82
|
+
|
83
|
+
<blockquote>
|
84
|
+
<p>Quoted</p>
|
85
|
+
</blockquote>
|
86
|
+
|
87
|
+
<p>Paragraph with header:</p>
|
88
|
+
|
89
|
+
<h3 id='header'>header</h3>
|
90
|
+
|
91
|
+
<p>Paragraph with header on two lines:</p>
|
92
|
+
|
93
|
+
<h2 id='header'>header</h2>
|
94
|
+
*** Output of to_latex ***
|
95
|
+
Paragraph, list with no space: * ciao
|
96
|
+
|
97
|
+
Paragraph, list with 1 space: * ciao
|
98
|
+
|
99
|
+
Paragraph, list with 3 space: * ciao
|
100
|
+
|
101
|
+
Paragraph, list with 4 spaces: * ciao
|
102
|
+
|
103
|
+
Paragraph, list with 1 tab: * ciao
|
104
|
+
|
105
|
+
Paragraph (1 space after), list with no space: * ciao
|
106
|
+
|
107
|
+
Paragraph (2 spaces after), list with no space:\newline * ciao
|
108
|
+
|
109
|
+
Paragraph (3 spaces after), list with no space: \newline * ciao
|
110
|
+
|
111
|
+
Paragraph with block quote:
|
112
|
+
|
113
|
+
\begin{quote}%
|
114
|
+
Quoted
|
115
|
+
|
116
|
+
|
117
|
+
\end{quote}
|
118
|
+
Paragraph with header:
|
119
|
+
|
120
|
+
\hypertarget{header}{}\subsubsection*{{header}}\label{header}
|
121
|
+
|
122
|
+
Paragraph with header on two lines:
|
123
|
+
|
124
|
+
\hypertarget{header}{}\subsection*{{header}}\label{header}
|
125
|
+
*** Output of to_md ***
|
126
|
+
Paragraph, list with no space: * ciao
|
127
|
+
|
128
|
+
Paragraph, list with 1 space: * ciao
|
129
|
+
|
130
|
+
Paragraph, list with 3 space: * ciao
|
131
|
+
|
132
|
+
Paragraph, list with 4 spaces: * ciao
|
133
|
+
|
134
|
+
Paragraph, list with 1 tab: * ciao
|
135
|
+
|
136
|
+
Paragraph (1 space after), list with no
|
137
|
+
space: * ciao
|
138
|
+
|
139
|
+
Paragraph (2 spaces after), list with
|
140
|
+
no space:
|
141
|
+
* ciao
|
142
|
+
|
143
|
+
Paragraph (3 spaces after), list with
|
144
|
+
no space:
|
145
|
+
* ciao
|
146
|
+
|
147
|
+
Paragraph with block quote:
|
148
|
+
|
149
|
+
Quoted
|
150
|
+
|
151
|
+
Paragraph with header:
|
152
|
+
|
153
|
+
headerParagraph with header on two lines:
|
154
|
+
|
155
|
+
header
|
156
|
+
*** Output of to_s ***
|
157
|
+
Paragraph, list with no space: * ciaoParagraph, list with 1 space: * ciaoParagraph, list with 3 space: * ciaoParagraph, list with 4 spaces: * ciaoParagraph, list with 1 tab: * ciaoParagraph (1 space after), list with no space: * ciaoParagraph (2 spaces after), list with no space:* ciaoParagraph (3 spaces after), list with no space: * ciaoParagraph with block quote:QuotedParagraph with header:headerParagraph with header on two lines:header
|
158
|
+
*** EOF ***
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
OK!
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
*** Output of Markdown.pl ***
|
167
|
+
<p>Paragraph, list with no space:
|
168
|
+
* ciao</p>
|
169
|
+
|
170
|
+
<p>Paragraph, list with 1 space:
|
171
|
+
* ciao</p>
|
172
|
+
|
173
|
+
<p>Paragraph, list with 3 space:
|
174
|
+
* ciao</p>
|
175
|
+
|
176
|
+
<p>Paragraph, list with 4 spaces:
|
177
|
+
* ciao</p>
|
178
|
+
|
179
|
+
<p>Paragraph, list with 1 tab:
|
180
|
+
* ciao</p>
|
181
|
+
|
182
|
+
<p>Paragraph (1 space after), list with no space:
|
183
|
+
* ciao</p>
|
184
|
+
|
185
|
+
<p>Paragraph (2 spaces after), list with no space: <br />
|
186
|
+
* ciao</p>
|
187
|
+
|
188
|
+
<p>Paragraph (3 spaces after), list with no space: <br />
|
189
|
+
* ciao</p>
|
190
|
+
|
191
|
+
<p>Paragraph with block quote:</p>
|
192
|
+
|
193
|
+
<blockquote>
|
194
|
+
<p>Quoted</p>
|
195
|
+
</blockquote>
|
196
|
+
|
197
|
+
<p>Paragraph with header:</p>
|
198
|
+
|
199
|
+
<h3>header</h3>
|
200
|
+
|
201
|
+
<p>Paragraph with header on two lines:</p>
|
202
|
+
|
203
|
+
<h2>header</h2>
|
204
|
+
|
205
|
+
*** Output of Markdown.pl (parsed) ***
|
206
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,64 @@
|
|
1
|
+
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
This is a list:
|
6
|
+
|
7
|
+
2. one
|
8
|
+
2. two
|
9
|
+
3. three
|
10
|
+
*** Output of inspect ***
|
11
|
+
md_el(:document,[
|
12
|
+
md_par(["This is a list:"]),
|
13
|
+
md_el(:ol,[
|
14
|
+
md_el(:li_span,["one"],{:want_my_paragraph=>false},[]),
|
15
|
+
md_el(:li_span,["two"],{:want_my_paragraph=>false},[]),
|
16
|
+
md_el(:li_span,["three"],{:want_my_paragraph=>false},[])
|
17
|
+
],{},[])
|
18
|
+
],{},[])
|
19
|
+
*** Output of to_html ***
|
20
|
+
<p>This is a list:</p>
|
21
|
+
|
22
|
+
<ol>
|
23
|
+
<li>one</li>
|
24
|
+
|
25
|
+
<li>two</li>
|
26
|
+
|
27
|
+
<li>three</li>
|
28
|
+
</ol>
|
29
|
+
*** Output of to_latex ***
|
30
|
+
This is a list:
|
31
|
+
|
32
|
+
\begin{enumerate}%
|
33
|
+
\item one
|
34
|
+
\item two
|
35
|
+
\item three
|
36
|
+
|
37
|
+
\end{enumerate}
|
38
|
+
*** Output of to_md ***
|
39
|
+
This is a list:
|
40
|
+
|
41
|
+
1. one
|
42
|
+
2. two
|
43
|
+
3. three
|
44
|
+
*** Output of to_s ***
|
45
|
+
This is a list:onetwothree
|
46
|
+
*** EOF ***
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
OK!
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
*** Output of Markdown.pl ***
|
55
|
+
<p>This is a list:</p>
|
56
|
+
|
57
|
+
<ol>
|
58
|
+
<li>one</li>
|
59
|
+
<li>two</li>
|
60
|
+
<li>three</li>
|
61
|
+
</ol>
|
62
|
+
|
63
|
+
*** Output of Markdown.pl (parsed) ***
|
64
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
One line
|
6
|
+
*** Output of inspect ***
|
7
|
+
md_el(:document,[md_par(["One line"])],{},[])
|
8
|
+
*** Output of to_html ***
|
9
|
+
<p>One line</p>
|
10
|
+
*** Output of to_latex ***
|
11
|
+
One line
|
12
|
+
*** Output of to_md ***
|
13
|
+
One line
|
14
|
+
*** Output of to_s ***
|
15
|
+
One line
|
16
|
+
*** EOF ***
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
OK!
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
*** Output of Markdown.pl ***
|
25
|
+
<p>One line</p>
|
26
|
+
|
27
|
+
*** Output of Markdown.pl (parsed) ***
|
28
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|