bai-maruku 0.5.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. data/Rakefile +102 -0
  2. data/bin/marudown +29 -0
  3. data/bin/maruku +181 -0
  4. data/bin/marutest +345 -0
  5. data/bin/marutex +31 -0
  6. data/docs/changelog.md +334 -0
  7. data/docs/div_syntax.md +36 -0
  8. data/docs/entity_test.md +23 -0
  9. data/docs/markdown_syntax.md +899 -0
  10. data/docs/maruku.md +346 -0
  11. data/docs/math.md +194 -0
  12. data/docs/other_stuff.md +51 -0
  13. data/docs/proposal.md +309 -0
  14. data/lib/maruku.rb +141 -0
  15. data/lib/maruku/attributes.rb +227 -0
  16. data/lib/maruku/defaults.rb +71 -0
  17. data/lib/maruku/errors_management.rb +92 -0
  18. data/lib/maruku/ext/div.rb +133 -0
  19. data/lib/maruku/ext/math.rb +41 -0
  20. data/lib/maruku/ext/math/elements.rb +27 -0
  21. data/lib/maruku/ext/math/latex_fix.rb +12 -0
  22. data/lib/maruku/ext/math/mathml_engines/blahtex.rb +107 -0
  23. data/lib/maruku/ext/math/mathml_engines/itex2mml.rb +29 -0
  24. data/lib/maruku/ext/math/mathml_engines/none.rb +20 -0
  25. data/lib/maruku/ext/math/mathml_engines/ritex.rb +24 -0
  26. data/lib/maruku/ext/math/parsing.rb +119 -0
  27. data/lib/maruku/ext/math/to_html.rb +187 -0
  28. data/lib/maruku/ext/math/to_latex.rb +26 -0
  29. data/lib/maruku/helpers.rb +260 -0
  30. data/lib/maruku/input/charsource.rb +326 -0
  31. data/lib/maruku/input/extensions.rb +69 -0
  32. data/lib/maruku/input/html_helper.rb +189 -0
  33. data/lib/maruku/input/linesource.rb +111 -0
  34. data/lib/maruku/input/parse_block.rb +614 -0
  35. data/lib/maruku/input/parse_doc.rb +227 -0
  36. data/lib/maruku/input/parse_span_better.rb +746 -0
  37. data/lib/maruku/input/rubypants.rb +225 -0
  38. data/lib/maruku/input/type_detection.rb +147 -0
  39. data/lib/maruku/input_textile2/t2_parser.rb +163 -0
  40. data/lib/maruku/maruku.rb +33 -0
  41. data/lib/maruku/output/s5/fancy.rb +756 -0
  42. data/lib/maruku/output/s5/to_s5.rb +138 -0
  43. data/lib/maruku/output/to_html.rb +991 -0
  44. data/lib/maruku/output/to_latex.rb +590 -0
  45. data/lib/maruku/output/to_latex_entities.rb +367 -0
  46. data/lib/maruku/output/to_latex_strings.rb +64 -0
  47. data/lib/maruku/output/to_markdown.rb +164 -0
  48. data/lib/maruku/output/to_s.rb +56 -0
  49. data/lib/maruku/string_utils.rb +191 -0
  50. data/lib/maruku/structures.rb +167 -0
  51. data/lib/maruku/structures_inspect.rb +87 -0
  52. data/lib/maruku/structures_iterators.rb +61 -0
  53. data/lib/maruku/tests/benchmark.rb +82 -0
  54. data/lib/maruku/tests/new_parser.rb +373 -0
  55. data/lib/maruku/tests/tests.rb +136 -0
  56. data/lib/maruku/textile2.rb +1 -0
  57. data/lib/maruku/toc.rb +199 -0
  58. data/lib/maruku/usage/example1.rb +33 -0
  59. data/lib/maruku/version.rb +40 -0
  60. data/maruku.gemspec +32 -0
  61. data/tests/bugs/code_in_links.md +101 -0
  62. data/tests/bugs/complex_escaping.md +38 -0
  63. data/tests/math/syntax.md +46 -0
  64. data/tests/math_usage/document.md +13 -0
  65. data/tests/others/abbreviations.md +11 -0
  66. data/tests/others/blank.md +4 -0
  67. data/tests/others/code.md +5 -0
  68. data/tests/others/code2.md +8 -0
  69. data/tests/others/code3.md +16 -0
  70. data/tests/others/email.md +4 -0
  71. data/tests/others/entities.md +19 -0
  72. data/tests/others/escaping.md +16 -0
  73. data/tests/others/extra_dl.md +101 -0
  74. data/tests/others/extra_header_id.md +13 -0
  75. data/tests/others/extra_table1.md +40 -0
  76. data/tests/others/footnotes.md +17 -0
  77. data/tests/others/headers.md +10 -0
  78. data/tests/others/hrule.md +10 -0
  79. data/tests/others/images.md +20 -0
  80. data/tests/others/inline_html.md +42 -0
  81. data/tests/others/links.md +38 -0
  82. data/tests/others/list1.md +4 -0
  83. data/tests/others/list2.md +5 -0
  84. data/tests/others/list3.md +8 -0
  85. data/tests/others/lists.md +32 -0
  86. data/tests/others/lists_after_paragraph.md +44 -0
  87. data/tests/others/lists_ol.md +39 -0
  88. data/tests/others/misc_sw.md +105 -0
  89. data/tests/others/one.md +1 -0
  90. data/tests/others/paragraphs.md +13 -0
  91. data/tests/others/sss06.md +352 -0
  92. data/tests/others/test.md +4 -0
  93. data/tests/s5/s5profiling.md +48 -0
  94. data/tests/unittest/abbreviations.md +64 -0
  95. data/tests/unittest/alt.md +29 -0
  96. data/tests/unittest/attributes/att2.md +32 -0
  97. data/tests/unittest/attributes/att3.md +40 -0
  98. data/tests/unittest/attributes/attributes.md +69 -0
  99. data/tests/unittest/attributes/circular.md +38 -0
  100. data/tests/unittest/attributes/default.md +34 -0
  101. data/tests/unittest/blank.md +36 -0
  102. data/tests/unittest/blanks_in_code.md +87 -0
  103. data/tests/unittest/bug_def.md +28 -0
  104. data/tests/unittest/bug_table.md +58 -0
  105. data/tests/unittest/code.md +46 -0
  106. data/tests/unittest/code2.md +40 -0
  107. data/tests/unittest/code3.md +83 -0
  108. data/tests/unittest/data_loss.md +37 -0
  109. data/tests/unittest/divs/div1.md +179 -0
  110. data/tests/unittest/divs/div2.md +33 -0
  111. data/tests/unittest/divs/div3_nest.md +57 -0
  112. data/tests/unittest/easy.md +27 -0
  113. data/tests/unittest/email.md +32 -0
  114. data/tests/unittest/encoding/iso-8859-1.md +35 -0
  115. data/tests/unittest/encoding/utf-8.md +30 -0
  116. data/tests/unittest/entities.md +106 -0
  117. data/tests/unittest/escaping.md +79 -0
  118. data/tests/unittest/extra_dl.md +64 -0
  119. data/tests/unittest/extra_header_id.md +75 -0
  120. data/tests/unittest/extra_table1.md +49 -0
  121. data/tests/unittest/footnotes.md +109 -0
  122. data/tests/unittest/headers.md +49 -0
  123. data/tests/unittest/hex_entities.md +49 -0
  124. data/tests/unittest/hrule.md +51 -0
  125. data/tests/unittest/html2.md +34 -0
  126. data/tests/unittest/html3.md +43 -0
  127. data/tests/unittest/html4.md +37 -0
  128. data/tests/unittest/html5.md +35 -0
  129. data/tests/unittest/ie.md +61 -0
  130. data/tests/unittest/images.md +102 -0
  131. data/tests/unittest/images2.md +43 -0
  132. data/tests/unittest/inline_html.md +187 -0
  133. data/tests/unittest/inline_html2.md +33 -0
  134. data/tests/unittest/links.md +164 -0
  135. data/tests/unittest/links2.md +34 -0
  136. data/tests/unittest/list1.md +58 -0
  137. data/tests/unittest/list12.md +40 -0
  138. data/tests/unittest/list2.md +68 -0
  139. data/tests/unittest/list3.md +76 -0
  140. data/tests/unittest/list4.md +101 -0
  141. data/tests/unittest/lists.md +204 -0
  142. data/tests/unittest/lists10.md +46 -0
  143. data/tests/unittest/lists11.md +28 -0
  144. data/tests/unittest/lists6.md +53 -0
  145. data/tests/unittest/lists9.md +76 -0
  146. data/tests/unittest/lists_after_paragraph.md +220 -0
  147. data/tests/unittest/lists_ol.md +274 -0
  148. data/tests/unittest/loss.md +28 -0
  149. data/tests/unittest/math/equations.md +86 -0
  150. data/tests/unittest/math/inline.md +58 -0
  151. data/tests/unittest/math/math2.md +88 -0
  152. data/tests/unittest/math/notmath.md +37 -0
  153. data/tests/unittest/math/table.md +52 -0
  154. data/tests/unittest/math/table2.md +54 -0
  155. data/tests/unittest/misc_sw.md +537 -0
  156. data/tests/unittest/notyet/escape.md +33 -0
  157. data/tests/unittest/notyet/header_after_par.md +70 -0
  158. data/tests/unittest/notyet/ticks.md +30 -0
  159. data/tests/unittest/notyet/triggering.md +169 -0
  160. data/tests/unittest/olist.md +57 -0
  161. data/tests/unittest/one.md +27 -0
  162. data/tests/unittest/paragraph.md +28 -0
  163. data/tests/unittest/paragraph_rules/dont_merge_ref.md +54 -0
  164. data/tests/unittest/paragraph_rules/tab_is_blank.md +36 -0
  165. data/tests/unittest/paragraphs.md +58 -0
  166. data/tests/unittest/pending/amps.md +27 -0
  167. data/tests/unittest/pending/empty_cells.md +49 -0
  168. data/tests/unittest/pending/link.md +84 -0
  169. data/tests/unittest/pending/ref.md +33 -0
  170. data/tests/unittest/recover/recover_links.md +27 -0
  171. data/tests/unittest/red_tests/abbrev.md +1388 -0
  172. data/tests/unittest/red_tests/lists7.md +68 -0
  173. data/tests/unittest/red_tests/lists7b.md +128 -0
  174. data/tests/unittest/red_tests/lists8.md +76 -0
  175. data/tests/unittest/references/long_example.md +83 -0
  176. data/tests/unittest/references/spaces_and_numbers.md +27 -0
  177. data/tests/unittest/smartypants.md +126 -0
  178. data/tests/unittest/syntax_hl.md +64 -0
  179. data/tests/unittest/table_attributes.md +46 -0
  180. data/tests/unittest/test.md +31 -0
  181. data/tests/unittest/underscore_in_words.md +27 -0
  182. data/tests/unittest/wrapping.md +79 -0
  183. data/tests/unittest/xml.md +45 -0
  184. data/tests/unittest/xml2.md +31 -0
  185. data/tests/unittest/xml3.md +38 -0
  186. data/tests/unittest/xml_instruction.md +64 -0
  187. data/tests/utf8-files/simple.md +1 -0
  188. data/unit_test_block.sh +5 -0
  189. data/unit_test_span.sh +3 -0
  190. metadata +251 -0
@@ -0,0 +1,33 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ require 'maruku/ext/div'; {} # params
4
+ *** Markdown input: ***
5
+ +--
6
+ ciao
7
+ =--
8
+ *** Output of inspect ***
9
+ md_el(:document,[
10
+ md_el(:div,[md_par(["ciao"])],{:label=>nil,:num=>nil,:type=>nil},[])
11
+ ],{},[])
12
+ *** Output of to_html ***
13
+ <div>
14
+ <p>ciao</p>
15
+ </div>
16
+ *** Output of to_latex ***
17
+ ciao
18
+ *** Output of to_md ***
19
+ ciao
20
+ *** Output of to_s ***
21
+ ciao
22
+ *** EOF ***
23
+
24
+
25
+
26
+ OK!
27
+
28
+
29
+
30
+ *** Output of Markdown.pl ***
31
+ (not used anymore)
32
+ *** Output of Markdown.pl (parsed) ***
33
+ (not used anymore)
@@ -0,0 +1,57 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ require 'maruku/ext/div'; {} # params
4
+ *** Markdown input: ***
5
+ +-----------------------------------{.warning}------
6
+ | this is the last warning!
7
+ |
8
+ | please, go away!
9
+ |
10
+ | +------------------------------------- {.menace} --
11
+ | | or else terrible things will happen
12
+ | +--------------------------------------------------
13
+ +---------------------------------------------------
14
+ *** Output of inspect ***
15
+ md_el(:document,[
16
+ md_el(:div,[
17
+ md_par(["this is the last warning!"]),
18
+ md_par(["please, go away!"]),
19
+ md_el(:div,[md_par(["or else terrible things will happen"])],{:label=>nil,:num=>nil,:type=>nil},[[:class, "menace"]])
20
+ ],{:label=>nil,:num=>nil,:type=>nil},[[:class, "warning"]])
21
+ ],{},[])
22
+ *** Output of to_html ***
23
+ <div class='warning'>
24
+ <p>this is the last warning!</p>
25
+
26
+ <p>please, go away!</p>
27
+
28
+ <div class='menace'>
29
+ <p>or else terrible things will happen</p>
30
+ </div>
31
+ </div>
32
+ *** Output of to_latex ***
33
+ this is the last warning!
34
+
35
+ please, go away!
36
+
37
+ or else terrible things will happen
38
+ *** Output of to_md ***
39
+ this is the last warning!
40
+
41
+ please, go away!
42
+
43
+ or else terrible things will happen
44
+ *** Output of to_s ***
45
+ this is the last warning!please, go away!or else terrible things will happen
46
+ *** EOF ***
47
+
48
+
49
+
50
+ OK!
51
+
52
+
53
+
54
+ *** Output of Markdown.pl ***
55
+ (not used anymore)
56
+ *** Output of Markdown.pl (parsed) ***
57
+ (not used anymore)
@@ -0,0 +1,27 @@
1
+ Simple test for emphasis.
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ *Hello!* how are **you**?
6
+ *** Output of inspect ***
7
+ md_el(:document,[md_par([md_em(["Hello!"]), " how are ", md_strong(["you"]), "?"])],{},[])
8
+ *** Output of to_html ***
9
+ <p><em>Hello!</em> how are <strong>you</strong>?</p>
10
+ *** Output of to_latex ***
11
+ \emph{Hello!} how are \textbf{you}?
12
+ *** Output of to_md ***
13
+ Hello!how are you?
14
+ *** Output of to_s ***
15
+ Hello! how are you?
16
+ *** EOF ***
17
+
18
+
19
+
20
+ OK!
21
+
22
+
23
+
24
+ *** Output of Markdown.pl ***
25
+ (not used anymore)
26
+ *** Output of Markdown.pl (parsed) ***
27
+ (not used anymore)
@@ -0,0 +1,32 @@
1
+ Write a comment abouth the test here.
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+
6
+
7
+ This is an email address: <andrea@invalid.it>
8
+
9
+ *** Output of inspect ***
10
+ md_el(:document,[
11
+ md_par(["This is an email address: ", md_email("andrea@invalid.it")])
12
+ ],{},[])
13
+ *** Output of to_html ***
14
+ <p>This is an email address: <a href='mailto:andrea@invalid.it'>&#097;&#110;&#100;&#114;&#101;&#097;&#064;&#105;&#110;&#118;&#097;&#108;&#105;&#100;&#046;&#105;&#116;</a></p>
15
+ *** Output of to_latex ***
16
+ This is an email address: \href{mailto:andrea@invalid.it}{andrea\char64invalid\char46it}
17
+ *** Output of to_md ***
18
+ This is an email address:
19
+ *** Output of to_s ***
20
+ This is an email address:
21
+ *** EOF ***
22
+
23
+
24
+
25
+ OK!
26
+
27
+
28
+
29
+ *** Output of Markdown.pl ***
30
+ (not used anymore)
31
+ *** Output of Markdown.pl (parsed) ***
32
+ (not used anymore)
@@ -0,0 +1,35 @@
1
+ Encoding: iso-8859-1
2
+
3
+ *** Parameters: ***
4
+ {}
5
+ *** Markdown input: ***
6
+ Encoding: iso-8859-1
7
+
8
+ This is iso-8859-1: àèìàù.
9
+ *** Output of inspect ***
10
+ md_el(:document,[
11
+ md_par([
12
+ "This is iso-8859-1: \303\203\302\240\303\203\302\250\303\203\302\254\303\203\302\240\303\203\302\271."
13
+ ])
14
+ ],{},[])
15
+ *** Output of to_html ***
16
+ <p>This is iso-8859-1: àèìàù.</p>
17
+ *** Output of to_latex ***
18
+ This is iso-8859-1: àèìàù.
19
+ *** Output of to_md ***
20
+ This is iso-8859-1:
21
+ àèìàù.
22
+ *** Output of to_s ***
23
+ This is iso-8859-1: àèìàù.
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,30 @@
1
+ Write a comment abouth the test here.
2
+ *** Parameters: ***
3
+ {:italian=>"\303\240\303\250\303\254\303\262\303\271."}
4
+ *** Markdown input: ***
5
+ Italian: àèìòù.
6
+
7
+ Japanese: マルク
8
+
9
+ *** Output of inspect ***
10
+ md_el(:document,[md_par(["Japanese: \343\203\236\343\203\253\343\202\257"])],{},[])
11
+ *** Output of to_html ***
12
+ <p>Japanese: マルク</p>
13
+ *** Output of to_latex ***
14
+ Japanese: マルク
15
+ *** Output of to_md ***
16
+ Japanese: マルク
17
+ *** Output of to_s ***
18
+ Japanese: マルク
19
+ *** EOF ***
20
+
21
+
22
+
23
+ OK!
24
+
25
+
26
+
27
+ *** Output of Markdown.pl ***
28
+ (not used anymore)
29
+ *** Output of Markdown.pl (parsed) ***
30
+ (not used anymore)
@@ -0,0 +1,106 @@
1
+ Write a comment abouth the test here.
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ Maruku translates HTML entities to the equivalent in LaTeX:
6
+
7
+ Entity | Result
8
+ ------------|----------
9
+ `&copy;` | &copy;
10
+ `&pound;` | &pound;
11
+ `a&nbsp;b` | a&nbsp;b
12
+ `&lambda;` | &lambda;
13
+ `&mdash;` | &mdash;
14
+
15
+
16
+ Entity-substitution does not happen in code blocks or inline code.
17
+
18
+ The following should not be translated:
19
+
20
+ &copy;
21
+
22
+ It should read just like this: `&copy;`.
23
+
24
+
25
+ *** Output of inspect ***
26
+ md_el(:document,[
27
+ md_par(["Maruku translates HTML entities to the equivalent in LaTeX:"]),
28
+ md_el(:table,[
29
+ md_el(:head_cell,["Entity"],{},[]),
30
+ md_el(:head_cell,["Result"],{},[]),
31
+ md_el(:cell,[md_code("&copy;")],{},[]),
32
+ md_el(:cell,[md_entity("copy")],{},[]),
33
+ md_el(:cell,[md_code("&pound;")],{},[]),
34
+ md_el(:cell,[md_entity("pound")],{},[]),
35
+ md_el(:cell,[md_code("a&nbsp;b")],{},[]),
36
+ md_el(:cell,["a", md_entity("nbsp"), "b"],{},[]),
37
+ md_el(:cell,[md_code("&lambda;")],{},[]),
38
+ md_el(:cell,[md_entity("lambda")],{},[]),
39
+ md_el(:cell,[md_code("&mdash;")],{},[]),
40
+ md_el(:cell,[md_entity("mdash")],{},[])
41
+ ],{:align=>[:left, :left]},[]),
42
+ md_par([
43
+ "Entity-substitution does not happen in code blocks or inline code."
44
+ ]),
45
+ md_par(["The following should not be translated:"]),
46
+ md_el(:code,[],{:raw_code=>"&copy;"},[]),
47
+ md_par(["It should read just like this: ", md_code("&copy;"), "."])
48
+ ],{},[])
49
+ *** Output of to_html ***
50
+ <p>Maruku translates HTML entities to the equivalent in LaTeX:</p>
51
+ <table><thead><tr><th>Entity</th><th>Result</th></tr></thead><tbody><tr><td style='text-align: left;'><code>&amp;copy;</code></td><td style='text-align: left;'>&#169;</td>
52
+ </tr><tr><td style='text-align: left;'><code>&amp;pound;</code></td><td style='text-align: left;'>&#163;</td>
53
+ </tr><tr><td style='text-align: left;'><code>a&amp;nbsp;b</code></td><td style='text-align: left;'>a&#160;b</td>
54
+ </tr><tr><td style='text-align: left;'><code>&amp;lambda;</code></td><td style='text-align: left;'>&#955;</td>
55
+ </tr><tr><td style='text-align: left;'><code>&amp;mdash;</code></td><td style='text-align: left;'>&#8212;</td>
56
+ </tr></tbody></table>
57
+ <p>Entity-substitution does not happen in code blocks or inline code.</p>
58
+
59
+ <p>The following should not be translated:</p>
60
+
61
+ <pre><code>&amp;copy;</code></pre>
62
+
63
+ <p>It should read just like this: <code>&amp;copy;</code>.</p>
64
+ *** Output of to_latex ***
65
+ Maruku translates HTML entities to the equivalent in \LaTeX\xspace :
66
+
67
+ \begin{tabular}{l|l}
68
+ Entity&Result\\
69
+ \hline
70
+ {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char38copy\char59}}&\copyright{}\\
71
+ {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char38pound\char59}}&\pounds{}\\
72
+ {\colorbox[rgb]{1.00,0.93,1.00}{\tt a\char38nbsp\char59b}}&a~{}b\\
73
+ {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char38lambda\char59}}&$\lambda${}\\
74
+ {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char38mdash\char59}}&---{}\\
75
+ \end{tabular}
76
+
77
+ Entity-substitution does not happen in code blocks or inline code.
78
+
79
+ The following should not be translated:
80
+
81
+ \begin{verbatim}&copy;\end{verbatim}
82
+ It should read just like this: {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char38copy\char59}}.
83
+ *** Output of to_md ***
84
+ Maruku translates HTML entities to the
85
+ equivalent in LaTeX:
86
+
87
+ EntityResultabEntity-substitution does not happen in
88
+ code blocks or inline code.
89
+
90
+ The following should not be translated:
91
+
92
+ It should read just like this: .
93
+ *** Output of to_s ***
94
+ Maruku translates HTML entities to the equivalent in LaTeX:EntityResultabEntity-substitution does not happen in code blocks or inline code.The following should not be translated:It should read just like this: .
95
+ *** EOF ***
96
+
97
+
98
+
99
+ OK!
100
+
101
+
102
+
103
+ *** Output of Markdown.pl ***
104
+ (not used anymore)
105
+ *** Output of Markdown.pl (parsed) ***
106
+ (not used anymore)
@@ -0,0 +1,79 @@
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>, * &lt;- due asterischi-&gt; * , un underscore-&gt; _ , <em>emphasis</em>, incre<em>dible</em>e!</p>
38
+
39
+ <p>This is <code>Code with a special: -&gt; ` &lt;-</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
+ (not used anymore)
78
+ *** Output of Markdown.pl (parsed) ***
79
+ (not used anymore)
@@ -0,0 +1,64 @@
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
+ (not used anymore)
63
+ *** Output of Markdown.pl (parsed) ***
64
+ (not used anymore)