patcito-maruku 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. data/AUTHORS +23 -0
  2. data/LICENSE +340 -0
  3. data/README.md +73 -0
  4. data/bin/maruku +196 -0
  5. data/bin/marutex +4 -0
  6. data/data/entities.xml +261 -0
  7. data/docs/changelog.md +334 -0
  8. data/docs/div_syntax.md +36 -0
  9. data/docs/entity_test.md +23 -0
  10. data/docs/markdown_syntax.md +899 -0
  11. data/docs/maruku.md +346 -0
  12. data/docs/math.md +194 -0
  13. data/docs/other_stuff.md +51 -0
  14. data/docs/proposal.md +309 -0
  15. data/docs/website/src/bluecloth.md +25 -0
  16. data/docs/website/src/download.md +31 -0
  17. data/docs/website/src/maruku.md +261 -0
  18. data/docs/website/src/proposal.md +271 -0
  19. data/lib/maruku.rb +132 -0
  20. data/lib/maruku/attributes.rb +138 -0
  21. data/lib/maruku/defaults.rb +69 -0
  22. data/lib/maruku/errors.rb +89 -0
  23. data/lib/maruku/ext/div.rb +121 -0
  24. data/lib/maruku/ext/fenced_code.rb +78 -0
  25. data/lib/maruku/ext/math.rb +37 -0
  26. data/lib/maruku/ext/math/elements.rb +21 -0
  27. data/lib/maruku/ext/math/latex_fix.rb +12 -0
  28. data/lib/maruku/ext/math/mathml_engines/blahtex.rb +93 -0
  29. data/lib/maruku/ext/math/mathml_engines/itex2mml.rb +39 -0
  30. data/lib/maruku/ext/math/mathml_engines/none.rb +21 -0
  31. data/lib/maruku/ext/math/mathml_engines/ritex.rb +24 -0
  32. data/lib/maruku/ext/math/parsing.rb +125 -0
  33. data/lib/maruku/ext/math/to_html.rb +237 -0
  34. data/lib/maruku/ext/math/to_latex.rb +36 -0
  35. data/lib/maruku/ext/yaml.rb +43 -0
  36. data/lib/maruku/helpers.rb +214 -0
  37. data/lib/maruku/input/charsource.rb +326 -0
  38. data/lib/maruku/input/extensions.rb +69 -0
  39. data/lib/maruku/input/html_helper.rb +189 -0
  40. data/lib/maruku/input/linesource.rb +111 -0
  41. data/lib/maruku/input/parse_block.rb +608 -0
  42. data/lib/maruku/input/parse_doc.rb +240 -0
  43. data/lib/maruku/input/parse_span_better.rb +746 -0
  44. data/lib/maruku/input/rubypants.rb +225 -0
  45. data/lib/maruku/input/type_detection.rb +147 -0
  46. data/lib/maruku/input_textile2/t2_parser.rb +163 -0
  47. data/lib/maruku/maruku.rb +31 -0
  48. data/lib/maruku/output/s5/fancy.rb +756 -0
  49. data/lib/maruku/output/s5/to_s5.rb +138 -0
  50. data/lib/maruku/output/to_html.rb +994 -0
  51. data/lib/maruku/output/to_latex.rb +580 -0
  52. data/lib/maruku/output/to_latex_entities.rb +101 -0
  53. data/lib/maruku/output/to_latex_strings.rb +64 -0
  54. data/lib/maruku/output/to_markdown.rb +164 -0
  55. data/lib/maruku/output/to_s.rb +54 -0
  56. data/lib/maruku/string_utils.rb +185 -0
  57. data/lib/maruku/structures.rb +143 -0
  58. data/lib/maruku/structures_inspect.rb +51 -0
  59. data/lib/maruku/structures_iterators.rb +48 -0
  60. data/lib/maruku/textile2.rb +1 -0
  61. data/lib/maruku/toc.rb +214 -0
  62. data/lib/maruku/usage/example1.rb +33 -0
  63. data/lib/maruku/version +0 -0
  64. data/lib/maruku/version.rb +54 -0
  65. data/spec/block_docs/abbreviations.md +52 -0
  66. data/spec/block_docs/alt.md +17 -0
  67. data/spec/block_docs/attributes/att2.md +20 -0
  68. data/spec/block_docs/attributes/att3.md +28 -0
  69. data/spec/block_docs/attributes/attributes.md +57 -0
  70. data/spec/block_docs/attributes/circular.md +26 -0
  71. data/spec/block_docs/attributes/default.md +22 -0
  72. data/spec/block_docs/blank.md +24 -0
  73. data/spec/block_docs/blanks_in_code.md +75 -0
  74. data/spec/block_docs/bug_def.md +16 -0
  75. data/spec/block_docs/bug_table.md +46 -0
  76. data/spec/block_docs/code.md +34 -0
  77. data/spec/block_docs/code2.md +28 -0
  78. data/spec/block_docs/code3.md +71 -0
  79. data/spec/block_docs/data_loss.md +25 -0
  80. data/spec/block_docs/divs/div1.md +167 -0
  81. data/spec/block_docs/divs/div2.md +21 -0
  82. data/spec/block_docs/divs/div3_nest.md +45 -0
  83. data/spec/block_docs/easy.md +15 -0
  84. data/spec/block_docs/email.md +20 -0
  85. data/spec/block_docs/encoding/iso-8859-1.md +23 -0
  86. data/spec/block_docs/encoding/utf-8.md +18 -0
  87. data/spec/block_docs/entities.md +94 -0
  88. data/spec/block_docs/escaping.md +67 -0
  89. data/spec/block_docs/extra_dl.md +52 -0
  90. data/spec/block_docs/extra_header_id.md +63 -0
  91. data/spec/block_docs/extra_table1.md +37 -0
  92. data/spec/block_docs/footnotes.md +97 -0
  93. data/spec/block_docs/headers.md +37 -0
  94. data/spec/block_docs/hex_entities.md +37 -0
  95. data/spec/block_docs/hrule.md +39 -0
  96. data/spec/block_docs/html2.md +22 -0
  97. data/spec/block_docs/html3.md +31 -0
  98. data/spec/block_docs/html4.md +25 -0
  99. data/spec/block_docs/html5.md +23 -0
  100. data/spec/block_docs/ie.md +49 -0
  101. data/spec/block_docs/images.md +90 -0
  102. data/spec/block_docs/images2.md +31 -0
  103. data/spec/block_docs/inline_html.md +152 -0
  104. data/spec/block_docs/inline_html2.md +21 -0
  105. data/spec/block_docs/links.md +152 -0
  106. data/spec/block_docs/links2.md +22 -0
  107. data/spec/block_docs/list1.md +46 -0
  108. data/spec/block_docs/list12.md +28 -0
  109. data/spec/block_docs/list2.md +56 -0
  110. data/spec/block_docs/list3.md +64 -0
  111. data/spec/block_docs/list4.md +89 -0
  112. data/spec/block_docs/lists.md +192 -0
  113. data/spec/block_docs/lists10.md +34 -0
  114. data/spec/block_docs/lists11.md +23 -0
  115. data/spec/block_docs/lists6.md +41 -0
  116. data/spec/block_docs/lists9.md +64 -0
  117. data/spec/block_docs/lists_after_paragraph.md +208 -0
  118. data/spec/block_docs/lists_ol.md +262 -0
  119. data/spec/block_docs/loss.md +16 -0
  120. data/spec/block_docs/math/equations.md +45 -0
  121. data/spec/block_docs/math/inline.md +46 -0
  122. data/spec/block_docs/math/math2.md +45 -0
  123. data/spec/block_docs/math/notmath.md +25 -0
  124. data/spec/block_docs/math/table.md +25 -0
  125. data/spec/block_docs/math/table2.md +42 -0
  126. data/spec/block_docs/misc_sw.md +525 -0
  127. data/spec/block_docs/notyet/escape.md +21 -0
  128. data/spec/block_docs/notyet/header_after_par.md +58 -0
  129. data/spec/block_docs/notyet/ticks.md +18 -0
  130. data/spec/block_docs/notyet/triggering.md +157 -0
  131. data/spec/block_docs/olist.md +45 -0
  132. data/spec/block_docs/one.md +15 -0
  133. data/spec/block_docs/paragraph.md +16 -0
  134. data/spec/block_docs/paragraph_rules/dont_merge_ref.md +42 -0
  135. data/spec/block_docs/paragraph_rules/tab_is_blank.md +24 -0
  136. data/spec/block_docs/paragraphs.md +46 -0
  137. data/spec/block_docs/pending/amps.md +15 -0
  138. data/spec/block_docs/pending/empty_cells.md +37 -0
  139. data/spec/block_docs/pending/link.md +72 -0
  140. data/spec/block_docs/pending/ref.md +21 -0
  141. data/spec/block_docs/recover/recover_links.md +15 -0
  142. data/spec/block_docs/red_tests/abbrev.md +679 -0
  143. data/spec/block_docs/red_tests/lists7.md +32 -0
  144. data/spec/block_docs/red_tests/lists7b.md +65 -0
  145. data/spec/block_docs/red_tests/lists8.md +42 -0
  146. data/spec/block_docs/red_tests/ref.md +23 -0
  147. data/spec/block_docs/red_tests/xml.md +35 -0
  148. data/spec/block_docs/references/long_example.md +71 -0
  149. data/spec/block_docs/references/spaces_and_numbers.md +15 -0
  150. data/spec/block_docs/smartypants.md +114 -0
  151. data/spec/block_docs/syntax_hl.md +52 -0
  152. data/spec/block_docs/table_attributes.md +34 -0
  153. data/spec/block_docs/test.md +19 -0
  154. data/spec/block_docs/underscore_in_words.md +15 -0
  155. data/spec/block_docs/wrapping.md +67 -0
  156. data/spec/block_docs/xml2.md +19 -0
  157. data/spec/block_docs/xml3.md +26 -0
  158. data/spec/block_docs/xml_instruction.md +52 -0
  159. data/spec/block_spec.rb +49 -0
  160. data/spec/span_spec.rb +254 -0
  161. data/spec/spec_helper.rb +6 -0
  162. metadata +247 -0
@@ -0,0 +1,37 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {} # params
4
+ *** Markdown input: ***
5
+ Examples of numeric character references include © or © for the copyright symbol, Α or Α for the Greek capital letter alpha, and ا or ا for the Arabic letter alef.
6
+
7
+
8
+ *** Output of inspect ***
9
+ md_el(:document,[
10
+ md_par([
11
+ "Examples of numeric character references include ",
12
+ md_entity(169),
13
+ " or ",
14
+ md_entity(169),
15
+ " for the copyright symbol, ",
16
+ md_entity(913),
17
+ " or ",
18
+ md_entity(913),
19
+ " for the Greek capital letter alpha, and ",
20
+ md_entity(1575),
21
+ " or ",
22
+ md_entity(1575),
23
+ " for the Arabic letter alef."
24
+ ])
25
+ ],{},[])
26
+ *** Output of to_html ***
27
+ <p>Examples of numeric character references include &#169; or &#169; for the copyright symbol, &#913; or &#913; for the Greek capital letter alpha, and &#1575; or &#1575; for the Arabic letter alef.</p>
28
+ *** Output of to_latex ***
29
+ Examples of numeric character references include \copyright{} or \copyright{} for the copyright symbol, $A${} or $A${} for the Greek capital letter alpha, and or for the Arabic letter alef.
30
+ *** Output of to_md ***
31
+ Examples of numeric character
32
+ references include or for the copyright
33
+ symbol, or for the Greek capital letter
34
+ alpha, and or for the Arabic letter
35
+ alef.
36
+ *** Output of to_s ***
37
+ Examples of numeric character references include or for the copyright symbol, or for the Greek capital letter alpha, and or for the Arabic letter alef.
@@ -0,0 +1,39 @@
1
+ Write a comment abouth the test here.
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ * * *
6
+
7
+ ***
8
+
9
+ *****
10
+
11
+ - - -
12
+
13
+ ---------------------------------------
14
+
15
+
16
+ *** Output of inspect ***
17
+ md_el(:document,[
18
+ md_el(:hrule,[],{},[]),
19
+ md_el(:hrule,[],{},[]),
20
+ md_el(:hrule,[],{},[]),
21
+ md_el(:hrule,[],{},[]),
22
+ md_el(:hrule,[],{},[])
23
+ ],{},[])
24
+ *** Output of to_html ***
25
+ <hr /><hr /><hr /><hr /><hr />
26
+ *** Output of to_latex ***
27
+ \vspace{.5em} \hrule \vspace{.5em}
28
+
29
+ \vspace{.5em} \hrule \vspace{.5em}
30
+
31
+ \vspace{.5em} \hrule \vspace{.5em}
32
+
33
+ \vspace{.5em} \hrule \vspace{.5em}
34
+
35
+ \vspace{.5em} \hrule \vspace{.5em}
36
+ *** Output of to_md ***
37
+
38
+ *** Output of to_s ***
39
+
@@ -0,0 +1,22 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {} # params
4
+ *** Markdown input: ***
5
+ One
6
+ <div></div>123
7
+
8
+ <div></div>123
9
+ *** Output of inspect ***
10
+ md_el(:document,[
11
+ md_par(["One ", md_html("<div></div>"), "123"]),
12
+ md_html("<div></div>")
13
+ ],{},[])
14
+ *** Output of to_html ***
15
+ <p>One <div />123</p>
16
+ <div />
17
+ *** Output of to_latex ***
18
+ One 123
19
+ *** Output of to_md ***
20
+ One 123
21
+ *** Output of to_s ***
22
+ One 123
@@ -0,0 +1,31 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {} # params
4
+ *** Markdown input: ***
5
+ taking part in <a href="http://sied.dis.uniroma1.it/">some arcane conspirations</a> which
6
+ involve <b href="http://www.flickr.com/photos/censi/70893277/">coffee</b>,
7
+ <a href="http://flickr.com/photos/censi/42775664/in/set-936677/">robots</a>,
8
+ <a href="http://www.flickr.com/photos/censi/42775888/in/set-936677/">sushi</a>,
9
+
10
+ *** Output of inspect ***
11
+ md_el(:document,[
12
+ md_par([
13
+ "taking part in ",
14
+ md_html("<a href=\"http://sied.dis.uniroma1.it/\">some arcane conspirations</a>"),
15
+ " which involve ",
16
+ md_html("<b href=\"http://www.flickr.com/photos/censi/70893277/\">coffee</b>"),
17
+ ", ",
18
+ md_html("<a href=\"http://flickr.com/photos/censi/42775664/in/set-936677/\">robots</a>"),
19
+ ", ",
20
+ md_html("<a href=\"http://www.flickr.com/photos/censi/42775888/in/set-936677/\">sushi</a>"),
21
+ ","
22
+ ])
23
+ ],{},[])
24
+ *** Output of to_html ***
25
+ <p>taking part in <a href='http://sied.dis.uniroma1.it/'>some arcane conspirations</a> which involve <b href='http://www.flickr.com/photos/censi/70893277/'>coffee</b>, <a href='http://flickr.com/photos/censi/42775664/in/set-936677/'>robots</a>, <a href='http://www.flickr.com/photos/censi/42775888/in/set-936677/'>sushi</a>,</p>
26
+ *** Output of to_latex ***
27
+ taking part in which involve , , ,
28
+ *** Output of to_md ***
29
+ taking part in which involve , , ,
30
+ *** Output of to_s ***
31
+ taking part in which involve , , ,
@@ -0,0 +1,25 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {} # params
4
+ *** Markdown input: ***
5
+ <div class="frame">
6
+ <a class="photo" href="http://www.flickr.com/photos/censi/54757256/"><img alt=""
7
+ moz-do-not-send="true"
8
+ src="http://static.flickr.com/27/54757256_1a2c1d2a95_m.jpg" /></a>
9
+ </div>
10
+
11
+
12
+ *** Output of inspect ***
13
+ md_el(:document,[
14
+ md_html("<div class=\"frame\">\n\t<a class=\"photo\" href=\"http://www.flickr.com/photos/censi/54757256/\"><img alt=\"\"\n moz-do-not-send=\"true\"\n src=\"http://static.flickr.com/27/54757256_1a2c1d2a95_m.jpg\" /></a>\n</div>")
15
+ ],{},[])
16
+ *** Output of to_html ***
17
+ <div class='frame'>
18
+ <a href='http://www.flickr.com/photos/censi/54757256/' class='photo'><img src='http://static.flickr.com/27/54757256_1a2c1d2a95_m.jpg' moz-do-not-send='true' alt='' /></a>
19
+ </div>
20
+ *** Output of to_latex ***
21
+
22
+ *** Output of to_md ***
23
+
24
+ *** Output of to_s ***
25
+
@@ -0,0 +1,23 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {} # params
4
+ *** Markdown input: ***
5
+ <div class="frame">
6
+ <a class="photo" href="http://www.flickr.com/photos/censi/88561568/" ><img moz-do-not-send="true" src="http://static.flickr.com/28/88561568_ab84d28245_m.jpg" width="240" height="180" alt="Aperitif" /></a>
7
+ </div>
8
+
9
+
10
+ *** Output of inspect ***
11
+ md_el(:document,[
12
+ md_html(" <div class=\"frame\">\n <a class=\"photo\" href=\"http://www.flickr.com/photos/censi/88561568/\" ><img moz-do-not-send=\"true\" src=\"http://static.flickr.com/28/88561568_ab84d28245_m.jpg\" width=\"240\" height=\"180\" alt=\"Aperitif\" /></a>\n </div>")
13
+ ],{},[])
14
+ *** Output of to_html ***
15
+ <div class='frame'>
16
+ <a href='http://www.flickr.com/photos/censi/88561568/' class='photo'><img src='http://static.flickr.com/28/88561568_ab84d28245_m.jpg' height='180' moz-do-not-send='true' alt='Aperitif' width='240' /></a>
17
+ </div>
18
+ *** Output of to_latex ***
19
+
20
+ *** Output of to_md ***
21
+
22
+ *** Output of to_s ***
23
+
@@ -0,0 +1,49 @@
1
+ We must make sure that `&apos;` is always written as `&#39;`.
2
+
3
+ *** Parameters: ***
4
+ {} # params
5
+ *** Markdown input: ***
6
+ `<p>here's an apostrophe & a quote "</p>`
7
+
8
+ <p>here's an apostrophe & a quote "</p>
9
+ {:}
10
+
11
+ <p>here's an apostrophe & a quote "</p>
12
+ {:lang=xml}
13
+
14
+ <p>here's an apostrophe & a quote "</p>
15
+ {:html_use_syntax=true lang=not_supported}
16
+
17
+ <p>here's an apostrophe & a quote "</p>
18
+ {:html_use_syntax=true lang=xml}
19
+
20
+
21
+ *** Output of inspect ***
22
+ md_el(:document,[
23
+ md_par([md_code("<p>here's an apostrophe & a quote \"</p>")]),
24
+ md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[]),
25
+ md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[["lang", "xml"]]),
26
+ md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[["html_use_syntax", "true"], ["lang", "not_supported"]]),
27
+ md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[["html_use_syntax", "true"], ["lang", "xml"]])
28
+ ],{},[])
29
+ *** Output of to_html ***
30
+ <p><code>&lt;p&gt;here&#39;s an apostrophe &amp; a quote &quot;&lt;/p&gt;</code></p>
31
+
32
+ <pre><code>&lt;p&gt;here&#39;s an apostrophe &amp; a quote &quot;&lt;/p&gt;</code></pre>
33
+
34
+ <pre lang='xml'><code class='xml' lang='xml'>&lt;p&gt;here&#39;s an apostrophe &amp; a quote &quot;&lt;/p&gt;</code></pre>
35
+
36
+ <pre><code class='not_supported' lang='not_supported'>&lt;p&gt;here&#39;s an apostrophe &amp; a quote &quot;&lt;/p&gt;</code></pre>
37
+
38
+ <pre><code class='xml' lang='xml'><span class='punct'>&lt;</span><span class='tag'>p</span><span class='punct'>&gt;</span>here&#39;s an apostrophe &amp; a quote &quot;<span class='punct'>&lt;/</span><span class='tag'>p</span><span class='punct'>&gt;</span></code></pre>
39
+ *** Output of to_latex ***
40
+ {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char60p\char62here\char39s~an~apostrophe~\char38~a~quote~\char34\char60\char47p\char62}}
41
+
42
+ \begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
43
+ \begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
44
+ \begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
45
+ \begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
46
+ *** Output of to_md ***
47
+
48
+ *** Output of to_s ***
49
+
@@ -0,0 +1,90 @@
1
+ Write a comment abouth the test here.
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+
6
+ This page does not uilizes ![Cascading Style Sheets](http://jigsaw.w3.org/css-validator/images/vcss)
7
+
8
+
9
+ Please mouseover to see the title: ![Cascading Style Sheets](http://jigsaw.w3.org/css-validator/images/vcss "Title ok!")
10
+
11
+ Please mouseover to see the title: ![Cascading Style Sheets](http://jigsaw.w3.org/css-validator/images/vcss 'Title ok!')
12
+
13
+
14
+ I'll say it one more time: this page does not use ![Cascading Style Sheets] [css]
15
+
16
+ This is double size: ![Cascading Style Sheets] [css2]
17
+
18
+
19
+
20
+ [css]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute"
21
+
22
+ [css2]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute" class=external
23
+ style="border:0;width:188px;height:131px"
24
+
25
+
26
+
27
+ *** Output of inspect ***
28
+ md_el(:document,[
29
+ md_par([
30
+ "This page does not uilizes ",
31
+ md_im_image(["Cascading Style Sheets"], "http://jigsaw.w3.org/css-validator/images/vcss", nil)
32
+ ]),
33
+ md_par([
34
+ "Please mouseover to see the title: ",
35
+ md_im_image(["Cascading Style Sheets"], "http://jigsaw.w3.org/css-validator/images/vcss", "Title ok!")
36
+ ]),
37
+ md_par([
38
+ "Please mouseover to see the title: ",
39
+ md_im_image(["Cascading Style Sheets"], "http://jigsaw.w3.org/css-validator/images/vcss", "Title ok!")
40
+ ]),
41
+ md_par([
42
+ "I",
43
+ md_entity("rsquo"),
44
+ "ll say it one more time: this page does not use ",
45
+ md_image(["Cascading Style Sheets"], "css")
46
+ ]),
47
+ md_par([
48
+ "This is double size: ",
49
+ md_image(["Cascading Style Sheets"], "css2")
50
+ ]),
51
+ md_ref_def("css", "http://jigsaw.w3.org/css-validator/images/vcss", {:title=>"Optional title attribute"}),
52
+ md_ref_def("css2", "http://jigsaw.w3.org/css-validator/images/vcss", {:title=>"Optional title attribute"})
53
+ ],{},[])
54
+ *** Output of to_html ***
55
+ <p>This page does not uilizes <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
56
+
57
+ <p>Please mouseover to see the title: <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
58
+
59
+ <p>Please mouseover to see the title: <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
60
+
61
+ <p>I&#8217;ll say it one more time: this page does not use <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
62
+
63
+ <p>This is double size: <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
64
+ *** Output of to_latex ***
65
+ This page does not uilizes
66
+
67
+ Please mouseover to see the title:
68
+
69
+ Please mouseover to see the title:
70
+
71
+ I'{}ll say it one more time: this page does not use
72
+
73
+ This is double size:
74
+ *** Output of to_md ***
75
+ This page does not uilizes
76
+ Cascading Style Sheets
77
+
78
+ Please mouseover to see the title:
79
+ Cascading Style Sheets
80
+
81
+ Please mouseover to see the title:
82
+ Cascading Style Sheets
83
+
84
+ I ll say it one more time: this page
85
+ does not use Cascading Style Sheets
86
+
87
+ This is double size:
88
+ Cascading Style Sheets
89
+ *** Output of to_s ***
90
+ This page does not uilizes Cascading Style SheetsPlease mouseover to see the title: Cascading Style SheetsPlease mouseover to see the title: Cascading Style SheetsIll say it one more time: this page does not use Cascading Style SheetsThis is double size: Cascading Style Sheets
@@ -0,0 +1,31 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {} # params
4
+ *** Markdown input: ***
5
+
6
+ This is an ![image][].
7
+
8
+ This is an ![image].
9
+
10
+ [image]: image.jpg
11
+
12
+ *** Output of inspect ***
13
+ md_el(:document,[
14
+ md_par(["This is an ", md_image(["image"], "image"), "."]),
15
+ md_par(["This is an ", md_image(["image"], "image"), "."]),
16
+ md_ref_def("image", "image.jpg", {:title=>nil})
17
+ ],{},[])
18
+ *** Output of to_html ***
19
+ <p>This is an <img src='image.jpg' alt='image' />.</p>
20
+
21
+ <p>This is an <img src='image.jpg' alt='image' />.</p>
22
+ *** Output of to_latex ***
23
+ This is an .
24
+
25
+ This is an .
26
+ *** Output of to_md ***
27
+ This is an image.
28
+
29
+ This is an image.
30
+ *** Output of to_s ***
31
+ This is an image.This is an image.
@@ -0,0 +1,152 @@
1
+ Write a comment abouth the test here.
2
+ *** Parameters: ***
3
+ {:css=>"style.css"}
4
+ *** Markdown input: ***
5
+ CSS: style.css
6
+
7
+ Input:
8
+
9
+ <em>Emphasis</em>
10
+
11
+ Result: <em>Emphasis</em>
12
+
13
+ Input:
14
+
15
+ <img src="http://jigsaw.w3.org/css-validator/images/vcss"/>
16
+
17
+ Result on span: <img src="http://jigsaw.w3.org/css-validator/images/vcss"/>
18
+
19
+ Result alone:
20
+
21
+ <img src="http://jigsaw.w3.org/css-validator/images/vcss"/>
22
+
23
+ Without closing:
24
+
25
+ <img src="http://jigsaw.w3.org/css-validator/images/vcss">
26
+
27
+ <div markdown="1">
28
+ This is *true* markdown text (paragraph)
29
+
30
+ <p markdown="1">
31
+ This is *true* markdown text (no paragraph)
32
+ </p>
33
+ <p markdown="block">
34
+ This is *true* markdown text (block paragraph)
35
+ </p>
36
+ </div>
37
+
38
+ <table>
39
+ <tr>
40
+ <td markdown="1">This is a *true* markdown text. (no par)</td>
41
+ <td markdown="block">This is *true* markdown text. (par)</td>
42
+ </tr>
43
+ </table>
44
+
45
+
46
+
47
+ *** Output of inspect ***
48
+ md_el(:document,[
49
+ md_par(["Input:"]),
50
+ md_el(:code,[],{:raw_code=>"<em>Emphasis</em>"},[]),
51
+ md_par(["Result: ", md_html("<em>Emphasis</em>")]),
52
+ md_par(["Input:"]),
53
+ md_el(:code,[],{:raw_code=>"<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\"/>"},[]),
54
+ md_par([
55
+ "Result on span: ",
56
+ md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />")
57
+ ]),
58
+ md_par(["Result alone:"]),
59
+ md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />"),
60
+ md_par(["Without closing:"]),
61
+ md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />"),
62
+ md_html("<div markdown=\"1\">\n\tThis is *true* markdown text (paragraph)\n\n\t<p markdown=\"1\">\n\t\tThis is *true* markdown text (no paragraph)\n\t</p>\n\t<p markdown=\"block\">\n\t\tThis is *true* markdown text (block paragraph)\n\t</p>\n</div>"),
63
+ md_html("<table>\n<tr>\n<td markdown=\"1\">This is a *true* markdown text. (no par)</td>\n<td markdown=\"block\">This is *true* markdown text. (par)</td>\n</tr>\n</table>")
64
+ ],{},[])
65
+ *** Output of to_html ***
66
+ <p>Input:</p>
67
+
68
+ <pre><code>&lt;em&gt;Emphasis&lt;/em&gt;</code></pre>
69
+
70
+ <p>Result: <em>Emphasis</em></p>
71
+
72
+ <p>Input:</p>
73
+
74
+ <pre><code>&lt;img src=&quot;http://jigsaw.w3.org/css-validator/images/vcss&quot;/&gt;</code></pre>
75
+
76
+ <p>Result on span: <img src='http://jigsaw.w3.org/css-validator/images/vcss' /></p>
77
+
78
+ <p>Result alone:</p>
79
+ <img src='http://jigsaw.w3.org/css-validator/images/vcss' />
80
+ <p>Without closing:</p>
81
+ <img src='http://jigsaw.w3.org/css-validator/images/vcss' /><div>
82
+ <p>
83
+ <p>This is</p>
84
+ <em>
85
+ <p>true</p>
86
+ </em>
87
+ <p>markdown text (paragraph)</p>
88
+ </p>
89
+ <p>
90
+ <p>
91
+ <p>This is</p>
92
+ <em>
93
+ <p>true</p>
94
+ </em>
95
+ <p>markdown text (no paragraph)</p>
96
+ </p>
97
+ </p>
98
+ <p>
99
+ <p>
100
+ <p>This is</p>
101
+ <em>
102
+ <p>true</p>
103
+ </em>
104
+ <p>markdown text (block paragraph)</p>
105
+ </p>
106
+ </p>
107
+ </div><table>
108
+ <tr>
109
+ <td>
110
+ <p>This is a</p>
111
+ <em>
112
+ <p>true</p>
113
+ </em>
114
+ <p>markdown text. (no par)</p>
115
+ </td>
116
+ <td>
117
+ <p>This is</p>
118
+ <em>
119
+ <p>true</p>
120
+ </em>
121
+ <p>markdown text. (par)</p>
122
+ </td>
123
+ </tr>
124
+ </table>
125
+ *** Output of to_latex ***
126
+ Input:
127
+
128
+ \begin{verbatim}<em>Emphasis</em>\end{verbatim}
129
+ Result:
130
+
131
+ Input:
132
+
133
+ \begin{verbatim}<img src="http://jigsaw.w3.org/css-validator/images/vcss"/>\end{verbatim}
134
+ Result on span:
135
+
136
+ Result alone:
137
+
138
+ Without closing:
139
+ *** Output of to_md ***
140
+ Input:
141
+
142
+ Result:
143
+
144
+ Input:
145
+
146
+ Result on span:
147
+
148
+ Result alone:
149
+
150
+ Without closing:
151
+ *** Output of to_s ***
152
+ Input:Result: Input:Result on span: Result alone:Without closing: