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,29 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
Paragraph
|
6
|
+
|
7
|
+
*** Output of inspect ***
|
8
|
+
md_el(:document,[md_par(["Paragraph"])],{},[])
|
9
|
+
*** Output of to_html ***
|
10
|
+
<p>Paragraph</p>
|
11
|
+
*** Output of to_latex ***
|
12
|
+
Paragraph
|
13
|
+
*** Output of to_md ***
|
14
|
+
Paragraph
|
15
|
+
*** Output of to_s ***
|
16
|
+
Paragraph
|
17
|
+
*** EOF ***
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
OK!
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
*** Output of Markdown.pl ***
|
26
|
+
<p>Paragraph</p>
|
27
|
+
|
28
|
+
*** Output of Markdown.pl (parsed) ***
|
29
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
Paragraphs eats everything, but not link definitions.
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
Paragraph
|
6
|
+
[google1]: #
|
7
|
+
|
8
|
+
Paragraph
|
9
|
+
[google2]: #
|
10
|
+
|
11
|
+
Paragraph
|
12
|
+
[google3]: #
|
13
|
+
|
14
|
+
*** Output of inspect ***
|
15
|
+
md_el(:document,[
|
16
|
+
md_par(["Paragraph"]),
|
17
|
+
md_ref_def("google1", "#", {:title=>nil}),
|
18
|
+
md_par(["Paragraph"]),
|
19
|
+
md_ref_def("google2", "#", {:title=>nil}),
|
20
|
+
md_par(["Paragraph"]),
|
21
|
+
md_ref_def("google3", "#", {:title=>nil})
|
22
|
+
],{},[])
|
23
|
+
*** Output of to_html ***
|
24
|
+
<p>Paragraph</p>
|
25
|
+
|
26
|
+
<p>Paragraph</p>
|
27
|
+
|
28
|
+
<p>Paragraph</p>
|
29
|
+
*** Output of to_latex ***
|
30
|
+
Paragraph
|
31
|
+
|
32
|
+
Paragraph
|
33
|
+
|
34
|
+
Paragraph
|
35
|
+
*** Output of to_md ***
|
36
|
+
Paragraph
|
37
|
+
|
38
|
+
Paragraph
|
39
|
+
|
40
|
+
Paragraph
|
41
|
+
*** Output of to_s ***
|
42
|
+
ParagraphParagraphParagraph
|
43
|
+
*** EOF ***
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
OK!
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
*** Output of Markdown.pl ***
|
52
|
+
<p>Paragraph
|
53
|
+
Paragraph
|
54
|
+
Paragraph</p>
|
55
|
+
|
56
|
+
*** Output of Markdown.pl (parsed) ***
|
57
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
Paragraphs eat blank lines.
|
2
|
+
The following are two paragraphs:
|
3
|
+
*** Parameters: ***
|
4
|
+
{}
|
5
|
+
*** Markdown input: ***
|
6
|
+
Paragraph1
|
7
|
+
|
8
|
+
Paragraph2
|
9
|
+
*** Output of inspect ***
|
10
|
+
md_el(:document,[md_par(["Paragraph1"]), md_par(["Paragraph2"])],{},[])
|
11
|
+
*** Output of to_html ***
|
12
|
+
<p>Paragraph1</p>
|
13
|
+
|
14
|
+
<p>Paragraph2</p>
|
15
|
+
*** Output of to_latex ***
|
16
|
+
Paragraph1
|
17
|
+
|
18
|
+
Paragraph2
|
19
|
+
*** Output of to_md ***
|
20
|
+
Paragraph1
|
21
|
+
|
22
|
+
Paragraph2
|
23
|
+
*** Output of to_s ***
|
24
|
+
Paragraph1Paragraph2
|
25
|
+
*** EOF ***
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
OK!
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
*** Output of Markdown.pl ***
|
34
|
+
<p>Paragraph1</p>
|
35
|
+
|
36
|
+
<p>Paragraph2</p>
|
37
|
+
|
38
|
+
*** Output of Markdown.pl (parsed) ***
|
39
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
Paragraph 1
|
6
|
+
|
7
|
+
Paragraph 2
|
8
|
+
|
9
|
+
|
10
|
+
Paragraph 3
|
11
|
+
Paragraph 4
|
12
|
+
Paragraph Br->
|
13
|
+
Paragraph 5
|
14
|
+
|
15
|
+
|
16
|
+
*** Output of inspect ***
|
17
|
+
md_el(:document,[
|
18
|
+
md_par(["Paragraph 1"]),
|
19
|
+
md_par(["Paragraph 2"]),
|
20
|
+
md_par([
|
21
|
+
"Paragraph 3 Paragraph 4 Paragraph Br->",
|
22
|
+
md_el(:linebreak,[],{},[]),
|
23
|
+
"Paragraph 5"
|
24
|
+
])
|
25
|
+
],{},[])
|
26
|
+
*** Output of to_html ***
|
27
|
+
<p>Paragraph 1</p>
|
28
|
+
|
29
|
+
<p>Paragraph 2</p>
|
30
|
+
|
31
|
+
<p>Paragraph 3 Paragraph 4 Paragraph Br-><br />Paragraph 5</p>
|
32
|
+
*** Output of to_latex ***
|
33
|
+
Paragraph 1
|
34
|
+
|
35
|
+
Paragraph 2
|
36
|
+
|
37
|
+
Paragraph 3 Paragraph 4 Paragraph Br-{\tt \char62}\newline Paragraph 5
|
38
|
+
*** Output of to_md ***
|
39
|
+
Paragraph 1
|
40
|
+
|
41
|
+
Paragraph 2
|
42
|
+
|
43
|
+
Paragraph 3 Paragraph 4 Paragraph Br->
|
44
|
+
Paragraph 5
|
45
|
+
*** Output of to_s ***
|
46
|
+
Paragraph 1Paragraph 2Paragraph 3 Paragraph 4 Paragraph Br->Paragraph 5
|
47
|
+
*** EOF ***
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
OK!
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
*** Output of Markdown.pl ***
|
56
|
+
<p>Paragraph 1</p>
|
57
|
+
|
58
|
+
<p>Paragraph 2</p>
|
59
|
+
|
60
|
+
<p>Paragraph 3
|
61
|
+
Paragraph 4
|
62
|
+
Paragraph Br-> <br />
|
63
|
+
Paragraph 5</p>
|
64
|
+
|
65
|
+
*** Output of Markdown.pl (parsed) ***
|
66
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
{} # params
|
4
|
+
*** Markdown input: ***
|
5
|
+
@articles.map(&:title)
|
6
|
+
*** Output of inspect ***
|
7
|
+
md_el(:document,[md_el(:code,[],{:raw_code=>"@articles.map(&:title)"},[])],{},[])
|
8
|
+
*** Output of to_html ***
|
9
|
+
<pre><code>@articles.map(&:title)</code></pre>
|
10
|
+
*** Output of to_latex ***
|
11
|
+
\begin{verbatim}@articles.map(&:title)\end{verbatim}
|
12
|
+
*** Output of to_md ***
|
13
|
+
|
14
|
+
*** Output of to_s ***
|
15
|
+
|
16
|
+
*** EOF ***
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
OK!
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
*** Output of Markdown.pl ***
|
25
|
+
<pre><code>@articles.map(&:title)
|
26
|
+
</code></pre>
|
27
|
+
|
28
|
+
*** Output of Markdown.pl (parsed) ***
|
29
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,53 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
{} # params
|
4
|
+
*** Markdown input: ***
|
5
|
+
| | 1 | 2 |
|
6
|
+
|----|----|----|
|
7
|
+
| A | X | |
|
8
|
+
| B | | X |
|
9
|
+
*** Output of inspect ***
|
10
|
+
md_el(:document,[
|
11
|
+
md_el(:table,[
|
12
|
+
md_el(:head_cell,[],{},[]),
|
13
|
+
md_el(:head_cell,["1"],{},[]),
|
14
|
+
md_el(:head_cell,["2"],{},[]),
|
15
|
+
md_el(:cell,["A"],{},[]),
|
16
|
+
md_el(:cell,["X"],{},[]),
|
17
|
+
md_el(:cell,[],{},[]),
|
18
|
+
md_el(:cell,["B"],{},[]),
|
19
|
+
md_el(:cell,[],{},[]),
|
20
|
+
md_el(:cell,["X"],{},[])
|
21
|
+
],{:align=>[:left, :left, :left]},[])
|
22
|
+
],{},[])
|
23
|
+
*** Output of to_html ***
|
24
|
+
<table><thead><tr><th /><th>1</th><th>2</th></tr></thead><tbody><tr><td style='text-align: left;'>A</td><td style='text-align: left;'>X</td><td style='text-align: left;' />
|
25
|
+
</tr><tr><td style='text-align: left;'>B</td><td style='text-align: left;' /><td style='text-align: left;'>X</td>
|
26
|
+
</tr></tbody></table>
|
27
|
+
*** Output of to_latex ***
|
28
|
+
\begin{tabular}{l|l|l}
|
29
|
+
&1&2\\
|
30
|
+
\hline
|
31
|
+
A&X&\\
|
32
|
+
B&&X\\
|
33
|
+
\end{tabular}
|
34
|
+
*** Output of to_md ***
|
35
|
+
12AXBX
|
36
|
+
*** Output of to_s ***
|
37
|
+
12AXBX
|
38
|
+
*** EOF ***
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
OK!
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
*** Output of Markdown.pl ***
|
47
|
+
<p>| | 1 | 2 |
|
48
|
+
|----|----|----|
|
49
|
+
| A | X | |
|
50
|
+
| B | | X |</p>
|
51
|
+
|
52
|
+
*** Output of Markdown.pl (parsed) ***
|
53
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,103 @@
|
|
1
|
+
Write a comment here
|
2
|
+
*** Parameters: ***
|
3
|
+
{} # params
|
4
|
+
*** Markdown input: ***
|
5
|
+
<http://www.aa.com>
|
6
|
+
|
7
|
+
<http://www.bb.com>
|
8
|
+
|
9
|
+
<http://www.cc.com>
|
10
|
+
|
11
|
+
<http://www.dd.com>
|
12
|
+
|
13
|
+
<http://www.dd.com>
|
14
|
+
|
15
|
+
<a@invalid.it>
|
16
|
+
|
17
|
+
<a@invalid.it>
|
18
|
+
|
19
|
+
<a@invalid.it>
|
20
|
+
|
21
|
+
<a@invalid.it>
|
22
|
+
*** Output of inspect ***
|
23
|
+
md_el(:document,[
|
24
|
+
md_par([md_url("http://www.aa.com")]),
|
25
|
+
md_par([md_url("http://www.bb.com")]),
|
26
|
+
md_par([md_url("http://www.cc.com")]),
|
27
|
+
md_par([md_url("http://www.dd.com")]),
|
28
|
+
md_el(:code,[],{:raw_code=>"<http://www.dd.com>"},[]),
|
29
|
+
md_par([md_email("a@invalid.it")]),
|
30
|
+
md_par([md_email("a@invalid.it")]),
|
31
|
+
md_par([md_email("a@invalid.it")]),
|
32
|
+
md_el(:code,[],{:raw_code=>"<a@invalid.it>"},[])
|
33
|
+
],{},[])
|
34
|
+
*** Output of to_html ***
|
35
|
+
<p><a href='http://www.aa.com'>http://www.aa.com</a></p>
|
36
|
+
|
37
|
+
<p><a href='http://www.bb.com'>http://www.bb.com</a></p>
|
38
|
+
|
39
|
+
<p><a href='http://www.cc.com'>http://www.cc.com</a></p>
|
40
|
+
|
41
|
+
<p><a href='http://www.dd.com'>http://www.dd.com</a></p>
|
42
|
+
|
43
|
+
<pre><code><http://www.dd.com></code></pre>
|
44
|
+
|
45
|
+
<p><a href='mailto:a@invalid.it'>a@invalid.it</a></p>
|
46
|
+
|
47
|
+
<p><a href='mailto:a@invalid.it'>a@invalid.it</a></p>
|
48
|
+
|
49
|
+
<p><a href='mailto:a@invalid.it'>a@invalid.it</a></p>
|
50
|
+
|
51
|
+
<pre><code><a@invalid.it></code></pre>
|
52
|
+
*** Output of to_latex ***
|
53
|
+
\href{http://www.aa.com}{http\char58\char47\char47www\char46aa\char46com}
|
54
|
+
|
55
|
+
\href{http://www.bb.com}{http\char58\char47\char47www\char46bb\char46com}
|
56
|
+
|
57
|
+
\href{http://www.cc.com}{http\char58\char47\char47www\char46cc\char46com}
|
58
|
+
|
59
|
+
\href{http://www.dd.com}{http\char58\char47\char47www\char46dd\char46com}
|
60
|
+
|
61
|
+
\begin{verbatim}<http://www.dd.com>\end{verbatim}
|
62
|
+
\href{mailto:a@invalid.it}{a\char64invalid\char46it}
|
63
|
+
|
64
|
+
\href{mailto:a@invalid.it}{a\char64invalid\char46it}
|
65
|
+
|
66
|
+
\href{mailto:a@invalid.it}{a\char64invalid\char46it}
|
67
|
+
|
68
|
+
\begin{verbatim}<a@invalid.it>\end{verbatim}
|
69
|
+
*** Output of to_md ***
|
70
|
+
|
71
|
+
*** Output of to_s ***
|
72
|
+
|
73
|
+
*** EOF ***
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
OK!
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
*** Output of Markdown.pl ***
|
82
|
+
<p><a href="http://www.aa.com">http://www.aa.com</a></p>
|
83
|
+
|
84
|
+
<p><a href="http://www.bb.com">http://www.bb.com</a></p>
|
85
|
+
|
86
|
+
<p><a href="http://www.cc.com">http://www.cc.com</a></p>
|
87
|
+
|
88
|
+
<p><a href="http://www.dd.com">http://www.dd.com</a></p>
|
89
|
+
|
90
|
+
<pre><code><http://www.dd.com>
|
91
|
+
</code></pre>
|
92
|
+
|
93
|
+
<p><a href="mailto:a@invalid.it">a@invalid.it</a></p>
|
94
|
+
|
95
|
+
<p><a href="mailto:a@invalid.it">a@invalid.it</a></p>
|
96
|
+
|
97
|
+
<p><a href="mailto:a@invalid.it">a@invalid.it</a></p>
|
98
|
+
|
99
|
+
<pre><code><a@invalid.it>
|
100
|
+
</code></pre>
|
101
|
+
|
102
|
+
*** Output of Markdown.pl (parsed) ***
|
103
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
This shows how Maruku recovers from parsing errors
|
2
|
+
*** Parameters: ***
|
3
|
+
{:on_error=>:warning}
|
4
|
+
*** Markdown input: ***
|
5
|
+
Search on [Google images][ GoOgle search ]
|
6
|
+
*** Output of inspect ***
|
7
|
+
md_el(:document,[md_par(["Search on Google imagesGoOgle search ]"])],{},[])
|
8
|
+
*** Output of to_html ***
|
9
|
+
<p>Search on Google imagesGoOgle search ]</p>
|
10
|
+
*** Output of to_latex ***
|
11
|
+
Search on Google imagesGoOgle search ]
|
12
|
+
*** Output of to_md ***
|
13
|
+
Search on Google imagesGoOgle search ]
|
14
|
+
*** Output of to_s ***
|
15
|
+
Search on Google imagesGoOgle search ]
|
16
|
+
*** EOF ***
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
OK!
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
*** Output of Markdown.pl ***
|
25
|
+
<p>Search on [Google images][ GoOgle search ]</p>
|
26
|
+
|
27
|
+
*** Output of Markdown.pl (parsed) ***
|
28
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,88 @@
|
|
1
|
+
Taken from the syntax document
|
2
|
+
*** Parameters: ***
|
3
|
+
{}
|
4
|
+
*** Markdown input: ***
|
5
|
+
|
6
|
+
filters -- including [Setext] [1], [atx] [2], [Textile] [3], [reStructuredText] [4],
|
7
|
+
[Grutatext] [5], and [EtText] [6] -- the single biggest source of
|
8
|
+
inspiration for Markdown's syntax is the format of plain text email.
|
9
|
+
|
10
|
+
[1]: http://docutils.sourceforge.net/mirror/setext.html
|
11
|
+
[2]: http://www.aaronsw.com/2002/atx/
|
12
|
+
[3]: http://textism.com/tools/textile/
|
13
|
+
[4]: http://docutils.sourceforge.net/rst.html
|
14
|
+
[5]: http://www.triptico.com/software/grutatxt.html
|
15
|
+
[6]: http://ettext.taint.org/doc/
|
16
|
+
|
17
|
+
To this end, Markdown's syntax is comprised entirely of punctuation
|
18
|
+
*** Output of inspect ***
|
19
|
+
md_el(:document,[
|
20
|
+
md_par([
|
21
|
+
"filters ",
|
22
|
+
md_entity("ndash"),
|
23
|
+
" including ",
|
24
|
+
md_link(["Setext"],"1"),
|
25
|
+
", ",
|
26
|
+
md_link(["atx"],"2"),
|
27
|
+
", ",
|
28
|
+
md_link(["Textile"],"3"),
|
29
|
+
", ",
|
30
|
+
md_link(["reStructuredText"],"4"),
|
31
|
+
", ",
|
32
|
+
md_link(["Grutatext"],"5"),
|
33
|
+
", and ",
|
34
|
+
md_link(["EtText"],"6"),
|
35
|
+
" ",
|
36
|
+
md_entity("ndash"),
|
37
|
+
" the single biggest source of inspiration for Markdown",
|
38
|
+
md_entity("rsquo"),
|
39
|
+
"s syntax is the format of plain text email."
|
40
|
+
]),
|
41
|
+
md_ref_def("1", "http://docutils.sourceforge.net/mirror/setext.html", {:title=>nil}),
|
42
|
+
md_ref_def("2", "http://www.aaronsw.com/2002/atx/", {:title=>nil}),
|
43
|
+
md_ref_def("3", "http://textism.com/tools/textile/", {:title=>nil}),
|
44
|
+
md_ref_def("4", "http://docutils.sourceforge.net/rst.html", {:title=>nil}),
|
45
|
+
md_ref_def("5", "http://www.triptico.com/software/grutatxt.html", {:title=>nil}),
|
46
|
+
md_ref_def("6", "http://ettext.taint.org/doc/", {:title=>nil}),
|
47
|
+
md_par([
|
48
|
+
"To this end, Markdown",
|
49
|
+
md_entity("rsquo"),
|
50
|
+
"s syntax is comprised entirely of punctuation"
|
51
|
+
])
|
52
|
+
],{},[])
|
53
|
+
*** Output of to_html ***
|
54
|
+
<p>filters – including <a href='http://docutils.sourceforge.net/mirror/setext.html'>Setext</a>, <a href='http://www.aaronsw.com/2002/atx/'>atx</a>, <a href='http://textism.com/tools/textile/'>Textile</a>, <a href='http://docutils.sourceforge.net/rst.html'>reStructuredText</a>, <a href='http://www.triptico.com/software/grutatxt.html'>Grutatext</a>, and <a href='http://ettext.taint.org/doc/'>EtText</a> – the single biggest source of inspiration for Markdown’s syntax is the format of plain text email.</p>
|
55
|
+
|
56
|
+
<p>To this end, Markdown’s syntax is comprised entirely of punctuation</p>
|
57
|
+
*** Output of to_latex ***
|
58
|
+
filters --{} including \href{http://docutils.sourceforge.net/mirror/setext.html}{Setext}, \href{http://www.aaronsw.com/2002/atx/}{atx}, \href{http://textism.com/tools/textile/}{Textile}, \href{http://docutils.sourceforge.net/rst.html}{reStructuredText}, \href{http://www.triptico.com/software/grutatxt.html}{Grutatext}, and \href{http://ettext.taint.org/doc/}{EtText} --{} the single biggest source of inspiration for Markdown'{}s syntax is the format of plain text email.
|
59
|
+
|
60
|
+
To this end, Markdown'{}s syntax is comprised entirely of punctuation
|
61
|
+
*** Output of to_md ***
|
62
|
+
filters including Setext, atx, Textile,
|
63
|
+
reStructuredText, Grutatext, and EtText
|
64
|
+
the single biggest source of
|
65
|
+
inspiration for Markdown s syntax is
|
66
|
+
the format of plain text email.
|
67
|
+
|
68
|
+
To this end, Markdown s syntax is
|
69
|
+
comprised entirely of punctuation
|
70
|
+
*** Output of to_s ***
|
71
|
+
filters including Setext, atx, Textile, reStructuredText, Grutatext, and EtText the single biggest source of inspiration for Markdowns syntax is the format of plain text email.To this end, Markdowns syntax is comprised entirely of punctuation
|
72
|
+
*** EOF ***
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
OK!
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
*** Output of Markdown.pl ***
|
81
|
+
<p>filters -- including <a href="http://docutils.sourceforge.net/mirror/setext.html">Setext</a>, <a href="http://www.aaronsw.com/2002/atx/">atx</a>, <a href="http://textism.com/tools/textile/">Textile</a>, <a href="http://docutils.sourceforge.net/rst.html">reStructuredText</a>,
|
82
|
+
<a href="http://www.triptico.com/software/grutatxt.html">Grutatext</a>, and <a href="http://ettext.taint.org/doc/">EtText</a> -- the single biggest source of
|
83
|
+
inspiration for Markdown's syntax is the format of plain text email.</p>
|
84
|
+
|
85
|
+
<p>To this end, Markdown's syntax is comprised entirely of punctuation</p>
|
86
|
+
|
87
|
+
*** Output of Markdown.pl (parsed) ***
|
88
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|