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,33 @@
1
+ require 'maruku'
2
+
3
+ text = <<EOF
4
+ Chapter 1
5
+ =========
6
+
7
+ It was a stormy and rainy night.
8
+
9
+ EOF
10
+
11
+ invalid = <<EOF
12
+
13
+ This is a [bad link.
14
+
15
+ EOF
16
+
17
+ Maruku.new(text).to_html
18
+
19
+ s = ""
20
+
21
+ begin
22
+ Maruku.new(invalid, {:on_error => :raise, :error_stream => s})
23
+ puts "Error! It should have thrown an exception."
24
+ rescue
25
+ # puts "ok, got error"
26
+ end
27
+
28
+ begin
29
+ Maruku.new(invalid, {:on_error => :warning, :error_stream => s})
30
+ rescue
31
+ puts "Error! It should not have thrown an exception."
32
+ end
33
+
File without changes
@@ -0,0 +1,54 @@
1
+ # Copyright (C) 2006 Andrea Censi <andrea (at) rubyforge.org>
2
+ #
3
+ # This file is part of Maruku.
4
+ #
5
+ # Maruku is free software; you can redistribute it and/or modify
6
+ # it under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation; either version 2 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # Maruku is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License
16
+ # along with Maruku; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+
20
+ module MaRuKu
21
+ # The Maruku version.
22
+ VERSION = '0.6.0'
23
+
24
+ # @deprecated Exists for backwards compatibility. Use {VERSION}
25
+ # @private
26
+ Version = VERSION
27
+
28
+ # The URL of the Maruku website.
29
+ MARUKU_URL = 'http://maruku.rubyforge.org/'
30
+
31
+ # @deprecated Exists for backwards compatibility. Use {MARUKU_URL}
32
+ # @private
33
+ MarukuURL = MARUKU_URL
34
+
35
+ # Whether Markdown implements the PHP Markdown extra syntax.
36
+ #
37
+ # Note: it is not guaranteed that if this is false,
38
+ # then no special features will be used.
39
+ #
40
+ # @return [Boolean]
41
+ def markdown_extra?
42
+ true
43
+ end
44
+
45
+ # Whether Markdown implements the new meta-data proposal.
46
+ #
47
+ # Note: it is not guaranteed that if this is false,
48
+ # then no special features will be used.
49
+ #
50
+ # @return [Boolean]
51
+ def new_meta_data?
52
+ true
53
+ end
54
+ end
@@ -0,0 +1,52 @@
1
+ Write a comment abouth the test here.
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+
6
+ The HTML specification is maintained by the W3C.
7
+
8
+ *[HTML]: Hyper Text Markup Language
9
+ *[W3C]: World Wide Web Consortium
10
+
11
+
12
+
13
+ Operation Tigra Genesis is going well.
14
+
15
+ *[Tigra Genesis]:
16
+ *** Output of inspect ***
17
+ md_el(:document,[
18
+ md_par([
19
+ "The ",
20
+ md_el(:abbr,["HTML"],{:title=>"Hyper Text Markup Language"},[]),
21
+ " specification is maintained by the ",
22
+ md_el(:abbr,["W3C"],{:title=>"World Wide Web Consortium"},[]),
23
+ "."
24
+ ]),
25
+ md_el(:abbr_def,[],{:abbr=>"HTML",:text=>"Hyper Text Markup Language"},[]),
26
+ md_el(:abbr_def,[],{:abbr=>"W3C",:text=>"World Wide Web Consortium"},[]),
27
+ md_par([
28
+ "Operation ",
29
+ md_el(:abbr,["Tigra Genesis"],{:title=>nil},[]),
30
+ " is going well."
31
+ ]),
32
+ md_el(:abbr_def,[],{:abbr=>"Tigra Genesis",:text=>nil},[])
33
+ ],{},[])
34
+ *** Output of to_html ***
35
+ <p>The <abbr title='Hyper Text Markup Language'>HTML</abbr> specification is maintained by the <abbr title='World Wide Web Consortium'>W3C</abbr>.</p>
36
+
37
+ <p>Operation <abbr>Tigra Genesis</abbr> is going well.</p>
38
+ *** Output of to_latex ***
39
+ The HTML specification is maintained by the W3C.
40
+
41
+ Operation Tigra Genesis is going well.
42
+ *** Output of to_md ***
43
+ The HTMLspecification is maintained by
44
+ the W3C.
45
+
46
+ *[HTML]: Hyper Text Markup Language
47
+ *[W3C]: World Wide Web Consortium
48
+ Operation Tigra Genesisis going well.
49
+
50
+ *[Tigra Genesis]:
51
+ *** Output of to_s ***
52
+ The HTML specification is maintained by the W3C.Operation Tigra Genesis is going well.
@@ -0,0 +1,17 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {} # params
4
+ *** Markdown input: ***
5
+ ![bar](/foo.jpg)
6
+
7
+
8
+ *** Output of inspect ***
9
+ md_el(:document,[md_par([md_im_image(["bar"], "/foo.jpg", nil)])],{},[])
10
+ *** Output of to_html ***
11
+ <p><img src='/foo.jpg' alt='bar' /></p>
12
+ *** Output of to_latex ***
13
+
14
+ *** Output of to_md ***
15
+ bar
16
+ *** Output of to_s ***
17
+ bar
@@ -0,0 +1,20 @@
1
+
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ {a}: a
6
+ {:b: a}
7
+
8
+ *** Output of inspect ***
9
+ md_el(:document,[
10
+ md_el(:ald,[],{:ald=>[[:ref, "a"]],:ald_id=>"a"},[]),
11
+ md_el(:ald,[],{:ald=>[[:ref, "a"]],:ald_id=>"b"},[])
12
+ ],{},[])
13
+ *** Output of to_html ***
14
+
15
+ *** Output of to_latex ***
16
+
17
+ *** Output of to_md ***
18
+
19
+ *** Output of to_s ***
20
+
@@ -0,0 +1,28 @@
1
+ IALs can refer to element before or after.
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ Paragraph1
6
+ {:#par1}
7
+
8
+ {:#par2}
9
+ Paragraph2
10
+ *** Output of inspect ***
11
+ md_el(:document,[
12
+ md_par(["Paragraph1"], [[:id, "par1"]]),
13
+ md_par(["Paragraph2"], [[:id, "par2"]])
14
+ ],{},[])
15
+ *** Output of to_html ***
16
+ <p id='par1'>Paragraph1</p>
17
+
18
+ <p id='par2'>Paragraph2</p>
19
+ *** Output of to_latex ***
20
+ Paragraph1
21
+
22
+ Paragraph2
23
+ *** Output of to_md ***
24
+ Paragraph1
25
+
26
+ Paragraph2
27
+ *** Output of to_s ***
28
+ Paragraph1Paragraph2
@@ -0,0 +1,57 @@
1
+ This is a simple test for attributes
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+
6
+ Header with attributes {#header1}
7
+ ----------------------
8
+
9
+ ### Header with attributes ### {#header2}
10
+
11
+ ### Header no attributes ###
12
+
13
+ {:warn2}Paragraph with a.
14
+ {#par1}
15
+
16
+ Paragraph with *emphasis*{:hello notfound}
17
+ {#par2}
18
+
19
+ {:hello: .chello}
20
+ *** Output of inspect ***
21
+ md_el(:document,[
22
+ md_el(:header,["Header with attributes"],{:level=>2},[[:id, "header1"]]),
23
+ md_el(:header,["Header with attributes"],{:level=>3},[[:id, "header2"]]),
24
+ md_el(:header,["Header no attributes"],{:level=>3},[]),
25
+ md_par(["Paragraph with a."], [[:id, "par1"]]),
26
+ md_par([
27
+ "Paragraph with ",
28
+ md_em(["emphasis"], [[:ref, "hello"], [:ref, "notfound"]])
29
+ ], [[:id, "par2"]]),
30
+ md_el(:ald,[],{:ald=>[[:class, "chello"]],:ald_id=>"hello"},[])
31
+ ],{},[])
32
+ *** Output of to_html ***
33
+ <h2 id='header1'>Header with attributes</h2>
34
+
35
+ <h3 id='header2'>Header with attributes</h3>
36
+
37
+ <h3 id='header_no_attributes'>Header no attributes</h3>
38
+
39
+ <p id='par1'>Paragraph with a.</p>
40
+
41
+ <p id='par2'>Paragraph with <em class='chello'>emphasis</em></p>
42
+ *** Output of to_latex ***
43
+ \hypertarget{header1}{}\subsection*{{Header with attributes}}\label{header1}
44
+
45
+ \hypertarget{header2}{}\subsubsection*{{Header with attributes}}\label{header2}
46
+
47
+ \hypertarget{header_no_attributes}{}\subsubsection*{{Header no attributes}}\label{header_no_attributes}
48
+
49
+ Paragraph with a.
50
+
51
+ Paragraph with \emph{emphasis}
52
+ *** Output of to_md ***
53
+ Header with attributesHeader with attributesHeader no attributesParagraph with a.
54
+
55
+ Paragraph with emphasis
56
+ *** Output of to_s ***
57
+ Header with attributesHeader with attributesHeader no attributesParagraph with a.Paragraph with emphasis
@@ -0,0 +1,26 @@
1
+
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+
6
+ Paragraph
7
+ {:a}
8
+
9
+
10
+ {:a: b}
11
+ {:b: a}
12
+
13
+ *** Output of inspect ***
14
+ md_el(:document,[
15
+ md_par(["Paragraph"], [[:ref, "a"]]),
16
+ md_el(:ald,[],{:ald=>[[:ref, "b"]],:ald_id=>"a"},[]),
17
+ md_el(:ald,[],{:ald=>[[:ref, "a"]],:ald_id=>"b"},[])
18
+ ],{},[])
19
+ *** Output of to_html ***
20
+ <p>Paragraph</p>
21
+ *** Output of to_latex ***
22
+ Paragraph
23
+ *** Output of to_md ***
24
+ Paragraph
25
+ *** Output of to_s ***
26
+ Paragraph
@@ -0,0 +1,22 @@
1
+ This shows the use of default attributes list.
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ Paragraph2
6
+ {#2}
7
+
8
+ {paragraph}: .maruku-par
9
+
10
+ *** Output of inspect ***
11
+ md_el(:document,[
12
+ md_par(["Paragraph2"], [[:id, "2"]]),
13
+ md_el(:ald,[],{:ald=>[[:class, "maruku-par"]],:ald_id=>"paragraph"},[])
14
+ ],{},[])
15
+ *** Output of to_html ***
16
+ <p class='maruku-par' id='2'>Paragraph2</p>
17
+ *** Output of to_latex ***
18
+ Paragraph2
19
+ *** Output of to_md ***
20
+ Paragraph2
21
+ *** Output of to_s ***
22
+ Paragraph2
@@ -0,0 +1,24 @@
1
+ Write a comment about the test here.
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+
6
+ Linea 1
7
+
8
+ Linea 2
9
+ *** Output of inspect ***
10
+ md_el(:document,[md_par(["Linea 1"]), md_par(["Linea 2"])],{},[])
11
+ *** Output of to_html ***
12
+ <p>Linea 1</p>
13
+
14
+ <p>Linea 2</p>
15
+ *** Output of to_latex ***
16
+ Linea 1
17
+
18
+ Linea 2
19
+ *** Output of to_md ***
20
+ Linea 1
21
+
22
+ Linea 2
23
+ *** Output of to_s ***
24
+ Linea 1Linea 2
@@ -0,0 +1,75 @@
1
+ Write a comment abouth the test here.
2
+ *** Parameters: ***
3
+ {}
4
+ *** Markdown input: ***
5
+ This block is composed of three lines:
6
+
7
+ one
8
+
9
+ three
10
+
11
+ This block is composed of 5
12
+
13
+
14
+ one
15
+
16
+
17
+ four
18
+
19
+
20
+ This block is composed of 2
21
+
22
+
23
+ two
24
+
25
+
26
+
27
+ *** Output of inspect ***
28
+ md_el(:document,[
29
+ md_par(["This block is composed of three lines:"]),
30
+ md_el(:code,[],{:raw_code=>"one\n\nthree"},[]),
31
+ md_par(["This block is composed of 5"]),
32
+ md_el(:code,[],{:raw_code=>"one\n\n\nfour"},[]),
33
+ md_par(["This block is composed of 2"]),
34
+ md_el(:code,[],{:raw_code=>"two"},[])
35
+ ],{},[])
36
+ *** Output of to_html ***
37
+ <p>This block is composed of three lines:</p>
38
+
39
+ <pre><code>one
40
+
41
+ three</code></pre>
42
+
43
+ <p>This block is composed of 5</p>
44
+
45
+ <pre><code>one
46
+
47
+
48
+ four</code></pre>
49
+
50
+ <p>This block is composed of 2</p>
51
+
52
+ <pre><code>two</code></pre>
53
+ *** Output of to_latex ***
54
+ This block is composed of three lines:
55
+
56
+ \begin{verbatim}one
57
+
58
+ three\end{verbatim}
59
+ This block is composed of 5
60
+
61
+ \begin{verbatim}one
62
+
63
+
64
+ four\end{verbatim}
65
+ This block is composed of 2
66
+
67
+ \begin{verbatim}two\end{verbatim}
68
+ *** Output of to_md ***
69
+ This block is composed of three lines:
70
+
71
+ This block is composed of 5
72
+
73
+ This block is composed of 2
74
+ *** Output of to_s ***
75
+ This block is composed of three lines:This block is composed of 5This block is composed of 2
@@ -0,0 +1,16 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {} # params
4
+ *** Markdown input: ***
5
+ [test][]:
6
+
7
+ *** Output of inspect ***
8
+ md_el(:document,[md_par([md_link(["test"],"test"), ":"])],{},[])
9
+ *** Output of to_html ***
10
+ <p><span>test</span>:</p>
11
+ *** Output of to_latex ***
12
+ test:
13
+ *** Output of to_md ***
14
+ test:
15
+ *** Output of to_s ***
16
+ test:
@@ -0,0 +1,46 @@
1
+ Write a comment here
2
+ *** Parameters: ***
3
+ {} # params
4
+ *** Markdown input: ***
5
+
6
+
7
+ hello
8
+ {: summary="Table summary" .class1 style="color:red"}
9
+
10
+ h | h
11
+ ----------|--
12
+ {:t} c1 | c2
13
+ {: summary="Table summary" .class1 style="color:red"}
14
+
15
+
16
+
17
+ {:t: scope="row"}
18
+ *** Output of inspect ***
19
+ md_el(:document,[
20
+ md_par(["hello"], [["summary", "Table summary"], [:class, "class1"], ["style", "color:red"]]),
21
+ md_el(:table,[
22
+ md_el(:head_cell,["h"],{},[]),
23
+ md_el(:head_cell,["h"],{},[]),
24
+ md_el(:cell,[" c1"],{},[[:ref, "t"]]),
25
+ md_el(:cell,["c2"],{},[])
26
+ ],{:align=>[:left, :left]},[["summary", "Table summary"], [:class, "class1"], ["style", "color:red"]]),
27
+ md_el(:ald,[],{:ald=>[["scope", "row"]],:ald_id=>"t"},[])
28
+ ],{},[])
29
+ *** Output of to_html ***
30
+ <p class='class1' style='color:red'>hello</p>
31
+ <table class='class1' summary='Table summary' style='color:red'><thead><tr><th>h</th><th>h</th></tr></thead><tbody><tr><th scope='row' style='text-align: left;'> c1</th><td style='text-align: left;'>c2</td>
32
+ </tr></tbody></table>
33
+ *** Output of to_latex ***
34
+ hello
35
+
36
+ \begin{tabular}{l|l}
37
+ h&h\\
38
+ \hline
39
+ c1&c2\\
40
+ \end{tabular}
41
+ *** Output of to_md ***
42
+ hello
43
+
44
+ hh c1c2
45
+ *** Output of to_s ***
46
+ hellohh c1c2