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,89 @@
|
|
1
|
+
This should threat the last as a literal asterisk.
|
2
|
+
*** Parameters: ***
|
3
|
+
{:on_error=>:warning}
|
4
|
+
*** Markdown input: ***
|
5
|
+
Hello: ! \! \` \{ \} \[ \] \( \) \# \. \! * \* *
|
6
|
+
|
7
|
+
|
8
|
+
Ora, *emphasis*, **bold**, * <- due asterischi-> * , un underscore-> _ , _emphasis_,
|
9
|
+
incre*dible*e!
|
10
|
+
|
11
|
+
This is ``Code with a special: -> ` <- ``(after)
|
12
|
+
|
13
|
+
`Start ` of paragraph
|
14
|
+
|
15
|
+
End of `paragraph `
|
16
|
+
*** Output of inspect ***
|
17
|
+
md_el(:document,[
|
18
|
+
md_par(["Hello: ! ! ` { } [ ] ( ) # . ! * * *"]),
|
19
|
+
md_par([
|
20
|
+
"Ora, ",
|
21
|
+
md_em(["emphasis"]),
|
22
|
+
", ",
|
23
|
+
md_strong(["bold"]),
|
24
|
+
", * <- due asterischi-> * , un underscore-> _ , ",
|
25
|
+
md_em(["emphasis"]),
|
26
|
+
", incre",
|
27
|
+
md_em(["dible"]),
|
28
|
+
"e!"
|
29
|
+
]),
|
30
|
+
md_par(["This is ", md_code("Code with a special: -> ` <-"), "(after)"]),
|
31
|
+
md_par([md_code("Start "), " of paragraph"]),
|
32
|
+
md_par(["End of ", md_code("paragraph ")])
|
33
|
+
],{},[])
|
34
|
+
*** Output of to_html ***
|
35
|
+
<p>Hello: ! ! ` { } [ ] ( ) # . ! * * *</p>
|
36
|
+
|
37
|
+
<p>Ora, <em>emphasis</em>, <strong>bold</strong>, * <- due asterischi-> * , un underscore-> _ , <em>emphasis</em>, incre<em>dible</em>e!</p>
|
38
|
+
|
39
|
+
<p>This is <code>Code with a special: -> ` <-</code>(after)</p>
|
40
|
+
|
41
|
+
<p><code>Start </code> of paragraph</p>
|
42
|
+
|
43
|
+
<p>End of <code>paragraph </code></p>
|
44
|
+
*** Output of to_latex ***
|
45
|
+
Hello: ! ! ` \{ \} [ ] ( ) \# . ! * * *
|
46
|
+
|
47
|
+
Ora, \emph{emphasis}, \textbf{bold}, * {\tt \char60}- due asterischi-{\tt \char62} * , un underscore-{\tt \char62} \_ , \emph{emphasis}, incre\emph{dible}e!
|
48
|
+
|
49
|
+
This is {\colorbox[rgb]{1.00,0.93,1.00}{\tt Code~with~a~special\char58~\char45\char62~\char96~\char60\char45}}(after)
|
50
|
+
|
51
|
+
{\colorbox[rgb]{1.00,0.93,1.00}{\tt Start~}} of paragraph
|
52
|
+
|
53
|
+
End of {\colorbox[rgb]{1.00,0.93,1.00}{\tt paragraph~}}
|
54
|
+
*** Output of to_md ***
|
55
|
+
Hello: ! ! ` { } [ ] ( ) # . ! * * *
|
56
|
+
|
57
|
+
Ora, emphasis, bold, * <- due
|
58
|
+
asterischi-> * , un underscore-> _ ,
|
59
|
+
emphasis, incre diblee!
|
60
|
+
|
61
|
+
This is (after)
|
62
|
+
|
63
|
+
of paragraph
|
64
|
+
|
65
|
+
End of
|
66
|
+
*** Output of to_s ***
|
67
|
+
Hello: ! ! ` { } [ ] ( ) # . ! * * *Ora, emphasis, bold, * <- due asterischi-> * , un underscore-> _ , emphasis, incrediblee!This is (after) of paragraphEnd of
|
68
|
+
*** EOF ***
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
OK!
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
*** Output of Markdown.pl ***
|
77
|
+
<p>Hello: ! ! ` { } [ ] ( ) # . ! * * *</p>
|
78
|
+
|
79
|
+
<p>Ora, <em>emphasis</em>, <strong>bold</strong>, * <- due asterischi-> * , un underscore-> _ , <em>emphasis</em>,
|
80
|
+
incre<em>dible</em>e!</p>
|
81
|
+
|
82
|
+
<p>This is <code>Code with a special: -> ` <-</code>(after)</p>
|
83
|
+
|
84
|
+
<p><code>Start</code> of paragraph</p>
|
85
|
+
|
86
|
+
<p>End of <code>paragraph</code></p>
|
87
|
+
|
88
|
+
*** Output of Markdown.pl (parsed) ***
|
89
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,72 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{:css=>"style.css"}
|
4
|
+
*** Markdown input: ***
|
5
|
+
CSS: style.css
|
6
|
+
|
7
|
+
|
8
|
+
Apple
|
9
|
+
: Pomaceous fruit of plants of the genus Malus in
|
10
|
+
the family Rosaceae.
|
11
|
+
|
12
|
+
Orange
|
13
|
+
: The fruit of an evergreen tree of the genus Citrus.
|
14
|
+
|
15
|
+
*** Output of inspect ***
|
16
|
+
md_el(:document,[
|
17
|
+
md_el(:definition_list,[
|
18
|
+
md_el(:definition,[
|
19
|
+
md_el(:definition_term,["Apple"],{},[]),
|
20
|
+
md_el(:definition_data,[
|
21
|
+
"Pomaceous fruit of plants of the genus Malus in the family Rosaceae."
|
22
|
+
],{},[])
|
23
|
+
],{:definitions=>[md_el(:definition_data,[
|
24
|
+
"Pomaceous fruit of plants of the genus Malus in the family Rosaceae."
|
25
|
+
],{},[])],:terms=>[md_el(:definition_term,["Apple"],{},[])],:want_my_paragraph=>false},[]),
|
26
|
+
md_el(:definition,[
|
27
|
+
md_el(:definition_term,["Orange"],{},[]),
|
28
|
+
md_el(:definition_data,["The fruit of an evergreen tree of the genus Citrus."],{},[])
|
29
|
+
],{:definitions=>[md_el(:definition_data,["The fruit of an evergreen tree of the genus Citrus."],{},[])],:terms=>[md_el(:definition_term,["Orange"],{},[])],:want_my_paragraph=>false},[])
|
30
|
+
],{},[])
|
31
|
+
],{},[])
|
32
|
+
*** Output of to_html ***
|
33
|
+
<dl>
|
34
|
+
<dt>Apple</dt>
|
35
|
+
|
36
|
+
<dd>Pomaceous fruit of plants of the genus Malus in the family Rosaceae.</dd>
|
37
|
+
|
38
|
+
<dt>Orange</dt>
|
39
|
+
|
40
|
+
<dd>The fruit of an evergreen tree of the genus Citrus.</dd>
|
41
|
+
</dl>
|
42
|
+
*** Output of to_latex ***
|
43
|
+
\begin{description}
|
44
|
+
|
45
|
+
\item[Apple] Pomaceous fruit of plants of the genus Malus in the family Rosaceae.
|
46
|
+
|
47
|
+
\item[Orange] The fruit of an evergreen tree of the genus Citrus.
|
48
|
+
\end{description}
|
49
|
+
*** Output of to_md ***
|
50
|
+
ApplePomaceous fruit of plants of the genus Malus in the family Rosaceae.OrangeThe fruit of an evergreen tree of the genus Citrus.
|
51
|
+
*** Output of to_s ***
|
52
|
+
ApplePomaceous fruit of plants of the genus Malus in the family Rosaceae.OrangeThe fruit of an evergreen tree of the genus Citrus.
|
53
|
+
*** EOF ***
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
OK!
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
*** Output of Markdown.pl ***
|
62
|
+
<p>CSS: style.css</p>
|
63
|
+
|
64
|
+
<p>Apple
|
65
|
+
: Pomaceous fruit of plants of the genus Malus in
|
66
|
+
the family Rosaceae.</p>
|
67
|
+
|
68
|
+
<p>Orange
|
69
|
+
: The fruit of an evergreen tree of the genus Citrus.</p>
|
70
|
+
|
71
|
+
*** Output of Markdown.pl (parsed) ***
|
72
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,86 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{:title=>"Header 1"}
|
4
|
+
*** Markdown input: ***
|
5
|
+
Header 1 {#header1}
|
6
|
+
========
|
7
|
+
|
8
|
+
Header 2 {#header2}
|
9
|
+
--------
|
10
|
+
|
11
|
+
### Header 3 ### {#header3}
|
12
|
+
|
13
|
+
Then you can create links to different parts of the same document like this:
|
14
|
+
|
15
|
+
[Link back to header 1](#header1),
|
16
|
+
[Link back to header 2](#header2),
|
17
|
+
[Link back to header 3](#header3)
|
18
|
+
|
19
|
+
*** Output of inspect ***
|
20
|
+
md_el(:document,[
|
21
|
+
md_el(:header,["Header 1"],{:level=>1},[[:id, "header1"]]),
|
22
|
+
md_el(:header,["Header 2"],{:level=>2},[[:id, "header2"]]),
|
23
|
+
md_el(:header,["Header 3"],{:level=>3},[[:id, "header3"]]),
|
24
|
+
md_par([
|
25
|
+
"Then you can create links to different parts of the same document like this:"
|
26
|
+
]),
|
27
|
+
md_par([
|
28
|
+
md_im_link(["Link back to header 1"], "#header1", nil),
|
29
|
+
", ",
|
30
|
+
md_im_link(["Link back to header 2"], "#header2", nil),
|
31
|
+
", ",
|
32
|
+
md_im_link(["Link back to header 3"], "#header3", nil)
|
33
|
+
])
|
34
|
+
],{},[])
|
35
|
+
*** Output of to_html ***
|
36
|
+
<h1 id='header1'>Header 1</h1>
|
37
|
+
|
38
|
+
<h2 id='header2'>Header 2</h2>
|
39
|
+
|
40
|
+
<h3 id='header3'>Header 3</h3>
|
41
|
+
|
42
|
+
<p>Then you can create links to different parts of the same document like this:</p>
|
43
|
+
|
44
|
+
<p><a href='#header1'>Link back to header 1</a>, <a href='#header2'>Link back to header 2</a>, <a href='#header3'>Link back to header 3</a></p>
|
45
|
+
*** Output of to_latex ***
|
46
|
+
\hypertarget{header1}{}\section*{{Header 1}}\label{header1}
|
47
|
+
|
48
|
+
\hypertarget{header2}{}\subsection*{{Header 2}}\label{header2}
|
49
|
+
|
50
|
+
\hypertarget{header3}{}\subsubsection*{{Header 3}}\label{header3}
|
51
|
+
|
52
|
+
Then you can create links to different parts of the same document like this:
|
53
|
+
|
54
|
+
\hyperlink{header1}{Link back to header 1}, \hyperlink{header2}{Link back to header 2}, \hyperlink{header3}{Link back to header 3}
|
55
|
+
*** Output of to_md ***
|
56
|
+
Header 1Header 2Header 3Then you can create links to different
|
57
|
+
parts of the same document like this:
|
58
|
+
|
59
|
+
Link back to header 1,
|
60
|
+
Link back to header 2,
|
61
|
+
Link back to header 3
|
62
|
+
*** Output of to_s ***
|
63
|
+
Header 1Header 2Header 3Then you can create links to different parts of the same document like this:Link back to header 1, Link back to header 2, Link back to header 3
|
64
|
+
*** EOF ***
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
OK!
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
*** Output of Markdown.pl ***
|
73
|
+
<h1>Header 1 {#header1}</h1>
|
74
|
+
|
75
|
+
<h2>Header 2 {#header2}</h2>
|
76
|
+
|
77
|
+
<h3>Header 3 ### {#header3}</h3>
|
78
|
+
|
79
|
+
<p>Then you can create links to different parts of the same document like this:</p>
|
80
|
+
|
81
|
+
<p><a href="#header1">Link back to header 1</a>,
|
82
|
+
<a href="#header2">Link back to header 2</a>,
|
83
|
+
<a href="#header3">Link back to header 3</a></p>
|
84
|
+
|
85
|
+
*** Output of Markdown.pl (parsed) ***
|
86
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,55 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{:css=>"style.css"}
|
4
|
+
*** Markdown input: ***
|
5
|
+
CSS: style.css
|
6
|
+
|
7
|
+
First Header | Second Header
|
8
|
+
------------- | -------------
|
9
|
+
Content Cell | Content Cell
|
10
|
+
Content Cell | Content Cell
|
11
|
+
|
12
|
+
*** Output of inspect ***
|
13
|
+
md_el(:document,[
|
14
|
+
md_el(:table,[
|
15
|
+
md_el(:head_cell,["First Header"],{},[]),
|
16
|
+
md_el(:head_cell,["Second Header"],{},[]),
|
17
|
+
md_el(:cell,["Content Cell"],{},[]),
|
18
|
+
md_el(:cell,["Content Cell"],{},[]),
|
19
|
+
md_el(:cell,["Content Cell"],{},[]),
|
20
|
+
md_el(:cell,["Content Cell"],{},[])
|
21
|
+
],{:align=>[:left, :left]},[])
|
22
|
+
],{},[])
|
23
|
+
*** Output of to_html ***
|
24
|
+
<table><thead><tr><th>First Header</th><th>Second Header</th></tr></thead><tbody><tr><td style='text-align: left;'>Content Cell</td><td style='text-align: left;'>Content Cell</td>
|
25
|
+
</tr><tr><td style='text-align: left;'>Content Cell</td><td style='text-align: left;'>Content Cell</td>
|
26
|
+
</tr></tbody></table>
|
27
|
+
*** Output of to_latex ***
|
28
|
+
\begin{tabular}{l|l}
|
29
|
+
First Header&Second Header\\
|
30
|
+
\hline
|
31
|
+
Content Cell&Content Cell\\
|
32
|
+
Content Cell&Content Cell\\
|
33
|
+
\end{tabular}
|
34
|
+
*** Output of to_md ***
|
35
|
+
First HeaderSecond HeaderContent CellContent CellContent CellContent Cell
|
36
|
+
*** Output of to_s ***
|
37
|
+
First HeaderSecond HeaderContent CellContent CellContent CellContent Cell
|
38
|
+
*** EOF ***
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
OK!
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
*** Output of Markdown.pl ***
|
47
|
+
<p>CSS: style.css</p>
|
48
|
+
|
49
|
+
<p>First Header | Second Header
|
50
|
+
------------- | -------------
|
51
|
+
Content Cell | Content Cell
|
52
|
+
Content Cell | Content Cell</p>
|
53
|
+
|
54
|
+
*** Output of Markdown.pl (parsed) ***
|
55
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,126 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{:footnotes_used=>["^b", "^c", "^a"]}
|
4
|
+
*** Markdown input: ***
|
5
|
+
That's some text with a footnote [^b] and another [^c] and another [^a].
|
6
|
+
|
7
|
+
[^a]: And that's the footnote.
|
8
|
+
|
9
|
+
That's the second paragraph of the footnote.
|
10
|
+
|
11
|
+
|
12
|
+
[^b]: And that's the footnote.
|
13
|
+
This is second sentence (same paragraph).
|
14
|
+
|
15
|
+
[^c]:
|
16
|
+
This is the very long one.
|
17
|
+
|
18
|
+
That's the second paragraph.
|
19
|
+
|
20
|
+
|
21
|
+
This is not a footnote.
|
22
|
+
*** Output of inspect ***
|
23
|
+
md_el(:document,[
|
24
|
+
md_par([
|
25
|
+
"That",
|
26
|
+
md_entity("rsquo"),
|
27
|
+
"s some text with a footnote ",
|
28
|
+
md_foot_ref("^b"),
|
29
|
+
" and another ",
|
30
|
+
md_foot_ref("^c"),
|
31
|
+
" and another ",
|
32
|
+
md_foot_ref("^a"),
|
33
|
+
"."
|
34
|
+
]),
|
35
|
+
md_el(:footnote,[
|
36
|
+
md_par(["And that", md_entity("rsquo"), "s the footnote."]),
|
37
|
+
md_par([
|
38
|
+
"That",
|
39
|
+
md_entity("rsquo"),
|
40
|
+
"s the second paragraph of the footnote."
|
41
|
+
])
|
42
|
+
],{:footnote_id=>"^a"},[]),
|
43
|
+
md_el(:footnote,[
|
44
|
+
md_par([
|
45
|
+
"And that",
|
46
|
+
md_entity("rsquo"),
|
47
|
+
"s the footnote. This is second sentence (same paragraph)."
|
48
|
+
])
|
49
|
+
],{:footnote_id=>"^b"},[]),
|
50
|
+
md_el(:footnote,[
|
51
|
+
md_par(["This is the very long one."]),
|
52
|
+
md_par(["That", md_entity("rsquo"), "s the second paragraph."])
|
53
|
+
],{:footnote_id=>"^c"},[]),
|
54
|
+
md_par(["This is not a footnote."])
|
55
|
+
],{},[])
|
56
|
+
*** Output of to_html ***
|
57
|
+
<p>That’s some text with a footnote <sup id='fnref:1'><a href='#fn:1' rel='footnote'>1</a></sup> and another <sup id='fnref:2'><a href='#fn:2' rel='footnote'>2</a></sup> and another <sup id='fnref:3'><a href='#fn:3' rel='footnote'>3</a></sup>.</p>
|
58
|
+
|
59
|
+
<p>This is not a footnote.</p>
|
60
|
+
<div class='footnotes'><hr /><ol><li id='fn:1'>
|
61
|
+
<p>And that’s the footnote. This is second sentence (same paragraph).</p>
|
62
|
+
<a href='#fnref:1' rev='footnote'>↩</a></li><li id='fn:2'>
|
63
|
+
<p>This is the very long one.</p>
|
64
|
+
|
65
|
+
<p>That’s the second paragraph.</p>
|
66
|
+
<a href='#fnref:2' rev='footnote'>↩</a></li><li id='fn:3'>
|
67
|
+
<p>And that’s the footnote.</p>
|
68
|
+
|
69
|
+
<p>That’s the second paragraph of the footnote.</p>
|
70
|
+
<a href='#fnref:3' rev='footnote'>↩</a></li></ol></div>
|
71
|
+
*** Output of to_latex ***
|
72
|
+
That'{}s some text with a footnote \footnote{And that'{}s the footnote. This is second sentence (same paragraph).} and another \footnote{This is the very long one.
|
73
|
+
|
74
|
+
That'{}s the second paragraph.} and another \footnote{And that'{}s the footnote.
|
75
|
+
|
76
|
+
That'{}s the second paragraph of the footnote.} .
|
77
|
+
|
78
|
+
This is not a footnote.
|
79
|
+
*** Output of to_md ***
|
80
|
+
That s some text with a footnote and
|
81
|
+
another and another .
|
82
|
+
|
83
|
+
And that s the footnote.
|
84
|
+
|
85
|
+
That s the second paragraph of the
|
86
|
+
footnote.
|
87
|
+
|
88
|
+
And that s the footnote. This is second
|
89
|
+
sentence (same paragraph).
|
90
|
+
|
91
|
+
This is the very long one.
|
92
|
+
|
93
|
+
That s the second paragraph.
|
94
|
+
|
95
|
+
This is not a footnote.
|
96
|
+
*** Output of to_s ***
|
97
|
+
Thats some text with a footnote and another and another .And thats the footnote.Thats the second paragraph of the footnote.And thats the footnote. This is second sentence (same paragraph).This is the very long one.Thats the second paragraph.This is not a footnote.
|
98
|
+
*** EOF ***
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
OK!
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
*** Output of Markdown.pl ***
|
107
|
+
<p>That's some text with a footnote [^b] and another [^c] and another [^a].</p>
|
108
|
+
|
109
|
+
<p>[^a]: And that's the footnote.</p>
|
110
|
+
|
111
|
+
<pre><code>That's the second paragraph of the footnote.
|
112
|
+
</code></pre>
|
113
|
+
|
114
|
+
<p>[^b]: And that's the footnote.
|
115
|
+
This is second sentence (same paragraph).</p>
|
116
|
+
|
117
|
+
<p>[^c]:
|
118
|
+
This is the very long one.</p>
|
119
|
+
|
120
|
+
<pre><code>That's the second paragraph.
|
121
|
+
</code></pre>
|
122
|
+
|
123
|
+
<p>This is not a footnote.</p>
|
124
|
+
|
125
|
+
*** Output of Markdown.pl (parsed) ***
|
126
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|
@@ -0,0 +1,54 @@
|
|
1
|
+
Write a comment abouth the test here.
|
2
|
+
*** Parameters: ***
|
3
|
+
{:title=>"A title with emphasis"}
|
4
|
+
*** Markdown input: ***
|
5
|
+
A title with *emphasis*
|
6
|
+
=======================
|
7
|
+
|
8
|
+
A title with *emphasis*
|
9
|
+
-----------------------
|
10
|
+
|
11
|
+
|
12
|
+
#### A title with *emphasis* ####
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
*** Output of inspect ***
|
17
|
+
md_el(:document,[
|
18
|
+
md_el(:header,["A title with ", md_em(["emphasis"])],{:level=>1},[]),
|
19
|
+
md_el(:header,["A title with ", md_em(["emphasis"])],{:level=>2},[]),
|
20
|
+
md_el(:header,["A title with ", md_em(["emphasis"])],{:level=>4},[])
|
21
|
+
],{},[])
|
22
|
+
*** Output of to_html ***
|
23
|
+
<h1 id='a_title_with_emphasis'>A title with <em>emphasis</em></h1>
|
24
|
+
|
25
|
+
<h2 id='a_title_with_emphasis'>A title with <em>emphasis</em></h2>
|
26
|
+
|
27
|
+
<h4 id='a_title_with_emphasis'>A title with <em>emphasis</em></h4>
|
28
|
+
*** Output of to_latex ***
|
29
|
+
\hypertarget{a_title_with_emphasis}{}\section*{{A title with \emph{emphasis}}}\label{a_title_with_emphasis}
|
30
|
+
|
31
|
+
\hypertarget{a_title_with_emphasis}{}\subsection*{{A title with \emph{emphasis}}}\label{a_title_with_emphasis}
|
32
|
+
|
33
|
+
\hypertarget{a_title_with_emphasis}{}\paragraph*{{A title with \emph{emphasis}}}\label{a_title_with_emphasis}
|
34
|
+
*** Output of to_md ***
|
35
|
+
A title with emphasisA title with emphasisA title with emphasis
|
36
|
+
*** Output of to_s ***
|
37
|
+
A title with emphasisA title with emphasisA title with emphasis
|
38
|
+
*** EOF ***
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
OK!
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
*** Output of Markdown.pl ***
|
47
|
+
<h1>A title with <em>emphasis</em></h1>
|
48
|
+
|
49
|
+
<h2>A title with <em>emphasis</em></h2>
|
50
|
+
|
51
|
+
<h4>A title with <em>emphasis</em></h4>
|
52
|
+
|
53
|
+
*** Output of Markdown.pl (parsed) ***
|
54
|
+
Error: #<NoMethodError: undefined method `write_children' for <div> ... </>:REXML::Element>
|