kramdown 0.1.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of kramdown might be problematic. Click here for more details.

Files changed (201) hide show
  1. data/AUTHORS +1 -0
  2. data/COPYING +24 -0
  3. data/ChangeLog +1416 -0
  4. data/GPL +674 -0
  5. data/README +20 -0
  6. data/Rakefile +300 -0
  7. data/VERSION +1 -0
  8. data/benchmark/benchmark.rb +33 -0
  9. data/benchmark/mdbasics.text +306 -0
  10. data/benchmark/mdsyntax.text +888 -0
  11. data/benchmark/testing.sh +9 -0
  12. data/benchmark/timing.sh +10 -0
  13. data/bin/kramdown +26 -0
  14. data/doc/default.css +293 -0
  15. data/doc/default.template +78 -0
  16. data/doc/index.page +89 -0
  17. data/doc/installation.page +90 -0
  18. data/doc/news.feed +10 -0
  19. data/doc/news.page +27 -0
  20. data/doc/quickref.page +474 -0
  21. data/doc/syntax.page +1089 -0
  22. data/doc/tests.page +44 -0
  23. data/doc/virtual +2 -0
  24. data/lib/kramdown.rb +23 -0
  25. data/lib/kramdown/converter.rb +215 -0
  26. data/lib/kramdown/document.rb +150 -0
  27. data/lib/kramdown/error.rb +27 -0
  28. data/lib/kramdown/extension.rb +73 -0
  29. data/lib/kramdown/parser.rb +1056 -0
  30. data/lib/kramdown/parser/registry.rb +62 -0
  31. data/setup.rb +1585 -0
  32. data/test/run_tests.rb +58 -0
  33. data/test/test_files.rb +39 -0
  34. data/test/testcases/block/01_blank_line/spaces.html +1 -0
  35. data/test/testcases/block/01_blank_line/spaces.text +3 -0
  36. data/test/testcases/block/01_blank_line/tabs.html +1 -0
  37. data/test/testcases/block/01_blank_line/tabs.text +6 -0
  38. data/test/testcases/block/02_eob/beginning.html +1 -0
  39. data/test/testcases/block/02_eob/beginning.text +3 -0
  40. data/test/testcases/block/02_eob/end.html +1 -0
  41. data/test/testcases/block/02_eob/end.text +3 -0
  42. data/test/testcases/block/02_eob/middle.html +1 -0
  43. data/test/testcases/block/02_eob/middle.text +5 -0
  44. data/test/testcases/block/03_paragraph/indented.html +18 -0
  45. data/test/testcases/block/03_paragraph/indented.text +19 -0
  46. data/test/testcases/block/03_paragraph/no_newline_at_end.html +5 -0
  47. data/test/testcases/block/03_paragraph/no_newline_at_end.text +5 -0
  48. data/test/testcases/block/03_paragraph/one_para.html +1 -0
  49. data/test/testcases/block/03_paragraph/one_para.text +1 -0
  50. data/test/testcases/block/03_paragraph/two_para.html +4 -0
  51. data/test/testcases/block/03_paragraph/two_para.text +4 -0
  52. data/test/testcases/block/04_header/atx_header.html +26 -0
  53. data/test/testcases/block/04_header/atx_header.text +24 -0
  54. data/test/testcases/block/04_header/atx_header_no_newline_at_end.html +1 -0
  55. data/test/testcases/block/04_header/atx_header_no_newline_at_end.text +1 -0
  56. data/test/testcases/block/04_header/setext_header.html +25 -0
  57. data/test/testcases/block/04_header/setext_header.text +27 -0
  58. data/test/testcases/block/04_header/setext_header_no_newline_at_end.html +1 -0
  59. data/test/testcases/block/04_header/setext_header_no_newline_at_end.text +2 -0
  60. data/test/testcases/block/04_header/with_auto_ids.html +17 -0
  61. data/test/testcases/block/04_header/with_auto_ids.options +1 -0
  62. data/test/testcases/block/04_header/with_auto_ids.text +19 -0
  63. data/test/testcases/block/05_blockquote/indented.html +25 -0
  64. data/test/testcases/block/05_blockquote/indented.text +14 -0
  65. data/test/testcases/block/05_blockquote/nested.html +9 -0
  66. data/test/testcases/block/05_blockquote/nested.text +5 -0
  67. data/test/testcases/block/05_blockquote/no_newline_at_end.html +4 -0
  68. data/test/testcases/block/05_blockquote/no_newline_at_end.text +2 -0
  69. data/test/testcases/block/05_blockquote/only_first_quoted.html +8 -0
  70. data/test/testcases/block/05_blockquote/only_first_quoted.text +4 -0
  71. data/test/testcases/block/05_blockquote/with_code_blocks.html +15 -0
  72. data/test/testcases/block/05_blockquote/with_code_blocks.text +11 -0
  73. data/test/testcases/block/06_codeblock/error.html +4 -0
  74. data/test/testcases/block/06_codeblock/error.text +4 -0
  75. data/test/testcases/block/06_codeblock/no_newline_at_end.html +2 -0
  76. data/test/testcases/block/06_codeblock/no_newline_at_end.text +1 -0
  77. data/test/testcases/block/06_codeblock/normal.html +13 -0
  78. data/test/testcases/block/06_codeblock/normal.text +10 -0
  79. data/test/testcases/block/06_codeblock/tilde_syntax.html +7 -0
  80. data/test/testcases/block/06_codeblock/tilde_syntax.text +9 -0
  81. data/test/testcases/block/06_codeblock/whitespace.html +3 -0
  82. data/test/testcases/block/06_codeblock/whitespace.text +3 -0
  83. data/test/testcases/block/06_codeblock/with_blank_line.html +13 -0
  84. data/test/testcases/block/06_codeblock/with_blank_line.text +11 -0
  85. data/test/testcases/block/06_codeblock/with_eob_marker.html +6 -0
  86. data/test/testcases/block/06_codeblock/with_eob_marker.text +5 -0
  87. data/test/testcases/block/07_horizontal_rule/error.html +7 -0
  88. data/test/testcases/block/07_horizontal_rule/error.text +7 -0
  89. data/test/testcases/block/07_horizontal_rule/normal.html +19 -0
  90. data/test/testcases/block/07_horizontal_rule/normal.text +19 -0
  91. data/test/testcases/block/08_list/escaping.html +17 -0
  92. data/test/testcases/block/08_list/escaping.text +17 -0
  93. data/test/testcases/block/08_list/list_and_hr.html +9 -0
  94. data/test/testcases/block/08_list/list_and_hr.text +5 -0
  95. data/test/testcases/block/08_list/list_and_others.html +38 -0
  96. data/test/testcases/block/08_list/list_and_others.text +25 -0
  97. data/test/testcases/block/08_list/mixed.html +111 -0
  98. data/test/testcases/block/08_list/mixed.text +66 -0
  99. data/test/testcases/block/08_list/nested.html +17 -0
  100. data/test/testcases/block/08_list/nested.text +7 -0
  101. data/test/testcases/block/08_list/other_first_element.html +39 -0
  102. data/test/testcases/block/08_list/other_first_element.text +18 -0
  103. data/test/testcases/block/08_list/simple_ol.html +19 -0
  104. data/test/testcases/block/08_list/simple_ol.text +13 -0
  105. data/test/testcases/block/08_list/simple_ul.html +61 -0
  106. data/test/testcases/block/08_list/simple_ul.text +43 -0
  107. data/test/testcases/block/08_list/single_item.html +3 -0
  108. data/test/testcases/block/08_list/single_item.text +1 -0
  109. data/test/testcases/block/08_list/special_cases.html +29 -0
  110. data/test/testcases/block/08_list/special_cases.text +19 -0
  111. data/test/testcases/block/09_html/auto_parse_block_html.html +17 -0
  112. data/test/testcases/block/09_html/auto_parse_block_html.options +1 -0
  113. data/test/testcases/block/09_html/auto_parse_block_html.text +14 -0
  114. data/test/testcases/block/09_html/comment.html +12 -0
  115. data/test/testcases/block/09_html/comment.text +12 -0
  116. data/test/testcases/block/09_html/filtered_html.html +1 -0
  117. data/test/testcases/block/09_html/filtered_html.options +1 -0
  118. data/test/testcases/block/09_html/filtered_html.text +1 -0
  119. data/test/testcases/block/09_html/html_and_codeblocks.html +15 -0
  120. data/test/testcases/block/09_html/html_and_codeblocks.options +1 -0
  121. data/test/testcases/block/09_html/html_and_codeblocks.text +13 -0
  122. data/test/testcases/block/09_html/invalid_html_1.html +5 -0
  123. data/test/testcases/block/09_html/invalid_html_1.text +5 -0
  124. data/test/testcases/block/09_html/invalid_html_2.html +6 -0
  125. data/test/testcases/block/09_html/invalid_html_2.text +5 -0
  126. data/test/testcases/block/09_html/parse_as_raw.html +26 -0
  127. data/test/testcases/block/09_html/parse_as_raw.text +16 -0
  128. data/test/testcases/block/09_html/parse_as_span.html +12 -0
  129. data/test/testcases/block/09_html/parse_as_span.text +7 -0
  130. data/test/testcases/block/09_html/processing_instruction.html +12 -0
  131. data/test/testcases/block/09_html/processing_instruction.text +12 -0
  132. data/test/testcases/block/09_html/simple.html +78 -0
  133. data/test/testcases/block/09_html/simple.text +56 -0
  134. data/test/testcases/block/10_ald/simple.html +2 -0
  135. data/test/testcases/block/10_ald/simple.text +8 -0
  136. data/test/testcases/block/11_ial/simple.html +17 -0
  137. data/test/testcases/block/11_ial/simple.text +25 -0
  138. data/test/testcases/block/12_extension/comment.html +5 -0
  139. data/test/testcases/block/12_extension/comment.text +11 -0
  140. data/test/testcases/block/12_extension/ignored.html +6 -0
  141. data/test/testcases/block/12_extension/ignored.text +11 -0
  142. data/test/testcases/block/12_extension/kdoptions.html +15 -0
  143. data/test/testcases/block/12_extension/kdoptions.text +18 -0
  144. data/test/testcases/block/12_extension/kdoptions2.html +10 -0
  145. data/test/testcases/block/12_extension/kdoptions2.text +5 -0
  146. data/test/testcases/block/12_extension/nokramdown.html +6 -0
  147. data/test/testcases/block/12_extension/nokramdown.text +11 -0
  148. data/test/testcases/span/01_link/empty.html +3 -0
  149. data/test/testcases/span/01_link/empty.text +3 -0
  150. data/test/testcases/span/01_link/image_in_a.html +5 -0
  151. data/test/testcases/span/01_link/image_in_a.text +5 -0
  152. data/test/testcases/span/01_link/imagelinks.html +12 -0
  153. data/test/testcases/span/01_link/imagelinks.text +14 -0
  154. data/test/testcases/span/01_link/inline.html +40 -0
  155. data/test/testcases/span/01_link/inline.text +42 -0
  156. data/test/testcases/span/01_link/link_defs.html +8 -0
  157. data/test/testcases/span/01_link/link_defs.text +22 -0
  158. data/test/testcases/span/01_link/links_with_angle_brackets.html +3 -0
  159. data/test/testcases/span/01_link/links_with_angle_brackets.text +3 -0
  160. data/test/testcases/span/01_link/reference.html +32 -0
  161. data/test/testcases/span/01_link/reference.text +42 -0
  162. data/test/testcases/span/02_emphasis/empty.html +3 -0
  163. data/test/testcases/span/02_emphasis/empty.text +3 -0
  164. data/test/testcases/span/02_emphasis/errors.html +9 -0
  165. data/test/testcases/span/02_emphasis/errors.text +9 -0
  166. data/test/testcases/span/02_emphasis/nesting.html +34 -0
  167. data/test/testcases/span/02_emphasis/nesting.text +30 -0
  168. data/test/testcases/span/02_emphasis/normal.html +42 -0
  169. data/test/testcases/span/02_emphasis/normal.text +42 -0
  170. data/test/testcases/span/03_codespan/empty.html +5 -0
  171. data/test/testcases/span/03_codespan/empty.text +5 -0
  172. data/test/testcases/span/03_codespan/errors.html +1 -0
  173. data/test/testcases/span/03_codespan/errors.text +1 -0
  174. data/test/testcases/span/03_codespan/normal.html +16 -0
  175. data/test/testcases/span/03_codespan/normal.text +16 -0
  176. data/test/testcases/span/04_footnote/definitions.html +14 -0
  177. data/test/testcases/span/04_footnote/definitions.text +18 -0
  178. data/test/testcases/span/04_footnote/footnote_nr.html +12 -0
  179. data/test/testcases/span/04_footnote/footnote_nr.options +1 -0
  180. data/test/testcases/span/04_footnote/footnote_nr.text +4 -0
  181. data/test/testcases/span/04_footnote/markers.html +46 -0
  182. data/test/testcases/span/04_footnote/markers.text +26 -0
  183. data/test/testcases/span/05_html/normal.html +17 -0
  184. data/test/testcases/span/05_html/normal.text +17 -0
  185. data/test/testcases/span/autolinks/url_links.html +9 -0
  186. data/test/testcases/span/autolinks/url_links.text +9 -0
  187. data/test/testcases/span/escaped_chars/normal.html +33 -0
  188. data/test/testcases/span/escaped_chars/normal.text +33 -0
  189. data/test/testcases/span/ial/simple.html +5 -0
  190. data/test/testcases/span/ial/simple.text +5 -0
  191. data/test/testcases/span/line_breaks/normal.html +11 -0
  192. data/test/testcases/span/line_breaks/normal.text +11 -0
  193. data/test/testcases/span/text_substitutions/entities.html +4 -0
  194. data/test/testcases/span/text_substitutions/entities.text +4 -0
  195. data/test/testcases/span/text_substitutions/greaterthan.html +1 -0
  196. data/test/testcases/span/text_substitutions/greaterthan.text +1 -0
  197. data/test/testcases/span/text_substitutions/lowerthan.html +1 -0
  198. data/test/testcases/span/text_substitutions/lowerthan.text +1 -0
  199. data/test/testcases/span/text_substitutions/typography.html +3 -0
  200. data/test/testcases/span/text_substitutions/typography.text +3 -0
  201. metadata +259 -0
@@ -0,0 +1,5 @@
1
+ This is `` empty.
2
+
3
+ This is ``empty.
4
+
5
+ This is ````empty.
@@ -0,0 +1 @@
1
+ <p>Not ended `span.</p>
@@ -0,0 +1 @@
1
+ Not ended `span.
@@ -0,0 +1,16 @@
1
+ <p>This is <code>a</code> simple span.</p>
2
+
3
+ <p>With <code>some&lt;ht&gt;&amp;ml</code> in it.</p>
4
+
5
+ <p>And <code>`</code> backticks.</p>
6
+
7
+ <p>And <code>``some``</code> more.</p>
8
+
9
+ <p>With backslash <code>in\</code> it.</p>
10
+
11
+ <p>This is a ` literal backtick.
12
+ As `are` these!</p>
13
+
14
+ <p>No <code>literal backtick</code>.</p>
15
+
16
+ <p><code>something</code></p>
@@ -0,0 +1,16 @@
1
+ This is `a` simple span.
2
+
3
+ With `some<ht>&ml` in it.
4
+
5
+ And `` ` `` backticks.
6
+
7
+ And ``` ``some`` ``` more.
8
+
9
+ With backslash `in\` it.
10
+
11
+ This is a ` literal backtick.
12
+ As \`are\` these!
13
+
14
+ No `` literal backtick``.
15
+
16
+ `something`
@@ -0,0 +1,14 @@
1
+ <p>Some para.</p>
2
+ <blockquote>
3
+ <p>blockquote</p>
4
+ </blockquote>
5
+
6
+ <ul>
7
+ <li>a list
8
+ with some text</li>
9
+ </ul>
10
+ <ul>
11
+ <li>other list</li>
12
+ </ul>
13
+ <pre><code>code
14
+ </code></pre>
@@ -0,0 +1,18 @@
1
+ Some para.
2
+ [^footnote]: ignored definition
3
+ [^footnote]: Some footnote text
4
+ > blockquote
5
+ [^other]: some
6
+ foot
7
+
8
+ note text
9
+
10
+ * a list
11
+ with some text
12
+ [^tnote]: foot note
13
+ * other list
14
+ ^
15
+ code
16
+ [^1]:
17
+ > a blockquote
18
+ and some para
@@ -0,0 +1,12 @@
1
+ <p>This is a footnote<sup id="fnref:ab"><a href="#fn:ab" rel="footnote">35</a></sup>. And another<sup id="fnref:bc"><a href="#fn:bc" rel="footnote">36</a></sup>.</p>
2
+
3
+ <div class="kramdown-footnotes">
4
+ <ol start="35">
5
+ <li id="fn:ab">
6
+ <p>Some text.<a href="#fnref:ab" rev="footnote">&#8617;</a></p>
7
+ </li>
8
+ <li id="fn:bc">
9
+ <p>Some other text.<a href="#fnref:bc" rev="footnote">&#8617;</a></p>
10
+ </li>
11
+ </ol>
12
+ </div>
@@ -0,0 +1 @@
1
+ :footnote_nr: 35
@@ -0,0 +1,4 @@
1
+ This is a footnote[^ab]. And another[^bc].
2
+
3
+ [^ab]: Some text.
4
+ [^bc]: Some other text.
@@ -0,0 +1,46 @@
1
+ <p>This is some *ref.<sup id="fnref:fn"><a href="#fn:fn" rel="footnote">1</a></sup></p>
2
+
3
+ <blockquote>
4
+ <p>a blockquote <sup id="fnref:3"><a href="#fn:3" rel="footnote">2</a></sup></p>
5
+ </blockquote>
6
+
7
+ <ul>
8
+ <li>and a list item <sup id="fnref:1"><a href="#fn:1" rel="footnote">3</a></sup></li>
9
+ </ul>
10
+
11
+ <h1>And a header<sup id="fnref:now"><a href="#fn:now" rel="footnote">4</a></sup></h1>
12
+
13
+ <p>A marker without a definition [^without].</p>
14
+
15
+ <p>A marker <sup id="fnref:empty"><a href="#fn:empty" rel="footnote">5</a></sup> used twice[^fn].</p>
16
+
17
+ <div class="kramdown-footnotes">
18
+ <ol>
19
+ <li id="fn:fn">
20
+ <p>Some foot note text<a href="#fnref:fn" rev="footnote">&#8617;</a></p>
21
+ </li>
22
+ <li id="fn:3">
23
+ <p>other text
24
+ with more lines</p>
25
+
26
+ <blockquote>
27
+ <p>and a quote</p>
28
+ </blockquote>
29
+ <p><a href="#fnref:3" rev="footnote">&#8617;</a></p>
30
+ </li>
31
+ <li id="fn:1">
32
+ <p>some <em>text</em><a href="#fnref:1" rev="footnote">&#8617;</a></p>
33
+ </li>
34
+ <li id="fn:now">
35
+
36
+ <pre><code>code block
37
+ continued here
38
+ </code></pre>
39
+ <p><a href="#fnref:now" rev="footnote">&#8617;</a></p>
40
+ </li>
41
+ <li id="fn:empty">
42
+
43
+ <p><a href="#fnref:empty" rev="footnote">&#8617;</a></p>
44
+ </li>
45
+ </ol>
46
+ </div>
@@ -0,0 +1,26 @@
1
+ This is some *ref.[^fn]
2
+
3
+ [^fn]: Some foot note text
4
+
5
+ > a blockquote [^3]
6
+
7
+ * and a list item [^1]
8
+
9
+ # And a header[^now]
10
+
11
+ [^1]:some *text*
12
+ [^3]: other text
13
+ with more lines
14
+
15
+ > and a quote
16
+
17
+ A marker without a definition [^without].
18
+
19
+ A marker [^empty] used twice[^fn].
20
+
21
+ [^now]:
22
+
23
+ code block
24
+ continued here
25
+
26
+ [^empty]:
@@ -0,0 +1,17 @@
1
+ <p><a href="test">title</a> is a title.</p>
2
+
3
+ <p>This is <? a PI ?>.</p>
4
+
5
+ <p>This is <!-- a --> comment.</p>
6
+
7
+ <p>This is <!-- a
8
+ --> multiline comment.</p>
9
+
10
+ <p>This is <span>tag
11
+ now </span>.</p>
12
+
13
+ <p>This is <em>something<span test="do_it" /> strange</em>.</p>
14
+
15
+ <p>An invalid tag: &lt;hr&gt;</p>
16
+
17
+ <p>An invalid &lt;/closing&gt; tag.</p>
@@ -0,0 +1,17 @@
1
+ <a href="test">title</a> is a title.
2
+
3
+ This is <? a PI ?>.
4
+
5
+ This is <!-- a --> comment.
6
+
7
+ This is <!-- a
8
+ --> multiline comment.
9
+
10
+ This is <span>tag
11
+ now </span>.
12
+
13
+ This is _something<span test="do_it" /> strange_.
14
+
15
+ An invalid tag: <hr>
16
+
17
+ An invalid </closing> tag.
@@ -0,0 +1,9 @@
1
+ <p>This should be a <a href="http://www.example.com/">http://www.example.com/</a> link.
2
+ This should be a <a href="&#109;&#097;&#105;&#108;&#116;&#111;:&#106;&#111;&#104;&#110;&#046;&#100;&#111;&#101;&#064;&#101;&#120;&#097;&#109;&#112;&#108;&#101;&#046;&#099;&#111;&#109;">&#106;&#111;&#104;&#110;&#046;&#100;&#111;&#101;&#064;&#101;&#120;&#097;&#109;&#112;&#108;&#101;&#046;&#099;&#111;&#109;</a> link.
3
+ As should <a href="&#109;&#097;&#105;&#108;&#116;&#111;:&#106;&#111;&#104;&#110;&#046;&#100;&#111;&#101;&#064;&#101;&#120;&#097;&#109;&#112;&#108;&#101;&#046;&#099;&#111;&#109;">&#106;&#111;&#104;&#110;&#046;&#100;&#111;&#101;&#064;&#101;&#120;&#097;&#109;&#112;&#108;&#101;&#046;&#099;&#111;&#109;</a> this.
4
+ Another ampersand <a href="http://www.example.com/?doit&amp;x=y">http://www.example.com/?doit&amp;x=y</a> link.
5
+ More entities <a href="http://www.example.com/?doit&amp;x=&quot;y&amp;z=y">http://www.example.com/?doit&amp;x=&quot;y&amp;z=y</a>.</p>
6
+
7
+ <p>Autolink with underscore: <a href="http://www.example.com/with_under_score">http://www.example.com/with_under_score</a></p>
8
+
9
+ <p><a href="http://www.example.com/">http://www.example.com/</a></p>
@@ -0,0 +1,9 @@
1
+ This should be a <http://www.example.com/> link.
2
+ This should be a <mailto:john.doe@example.com> link.
3
+ As should <john.doe@example.com> this.
4
+ Another ampersand <http://www.example.com/?doit&x=y> link.
5
+ More entities <http://www.example.com/?doit&amp;x=&quot;y&z=y>.
6
+
7
+ Autolink with underscore: <http://www.example.com/with_under_score>
8
+
9
+ <http://www.example.com/>
@@ -0,0 +1,33 @@
1
+ <p>\</p>
2
+
3
+ <p>.</p>
4
+
5
+ <p>*</p>
6
+
7
+ <p>_</p>
8
+
9
+ <p>+</p>
10
+
11
+ <p>-</p>
12
+
13
+ <p>`</p>
14
+
15
+ <p>(</p>
16
+
17
+ <p>)</p>
18
+
19
+ <p>[</p>
20
+
21
+ <p>]</p>
22
+
23
+ <p>{</p>
24
+
25
+ <p>}</p>
26
+
27
+ <p>#</p>
28
+
29
+ <p>!</p>
30
+
31
+ <p>&lt;&lt;</p>
32
+
33
+ <p>&gt;&gt;</p>
@@ -0,0 +1,5 @@
1
+ <p>This is a <code class="hund" id="dog">span</code>.</p>
2
+
3
+ <p>This is a <code class="hund katz" id="dog" key="val">span</code>.</p>
4
+
5
+ <p>This is an{: .ignored} span ial.</p>
@@ -0,0 +1,5 @@
1
+ This is a `span`{: .hund #dog}.
2
+
3
+ This is a `span`{: .hund #dog}{: .katz key='val'}.
4
+
5
+ This is an{: .ignored} span ial.
@@ -0,0 +1,11 @@
1
+ <p>This is a line<br />
2
+ with a line break. </p>
3
+
4
+ <p>This is a line
5
+ without a line break.</p>
6
+
7
+ <p>This is a line <br />
8
+ with a line\ <br />
9
+ break.</p>
10
+
11
+ <p>Line break on last line. </p>
@@ -0,0 +1,11 @@
1
+ This is a line
2
+ with a line break.
3
+
4
+ This is a line
5
+ without a line break.
6
+
7
+ This is a line \\
8
+ with a line\\
9
+ break.
10
+
11
+ Line break on last line.
@@ -0,0 +1,4 @@
1
+ <p>This is the A&amp;O. &copy; 2008 by me
2
+ As well \&amp; as this. Some &#343; other
3
+ values may &#xAF; may also show but
4
+ not st. like &amp;#xYZ;.</p>
@@ -0,0 +1,4 @@
1
+ This is the A&O. &copy; 2008 by me
2
+ As well \& as this. Some &#343; other
3
+ values may &#xAF; may also show but
4
+ not st. like &#xYZ;.
@@ -0,0 +1 @@
1
+ <p>2 &gt; 1 &gt; 0</p>
@@ -0,0 +1 @@
1
+ <p>0 &lt; 1 &lt; 2</p>
@@ -0,0 +1,3 @@
1
+ <p>This is&hellip; something&mdash;this too&ndash;!</p>
2
+
3
+ <p>This &laquo;is&raquo; some text, &laquo;&nbsp;this&nbsp;&raquo; too!</p>
@@ -0,0 +1,3 @@
1
+ This is... something---this too--!
2
+
3
+ This <<is>> some text, << this >> too!
metadata ADDED
@@ -0,0 +1,259 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kramdown
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Thomas Leitner
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-11-21 00:00:00 +01:00
13
+ default_executable: kramdown
14
+ dependencies: []
15
+
16
+ description: |
17
+ kramdown is yet-another-markdown-parser but fast, pure Ruby,
18
+ using a strict syntax definition and supporting several common extensions.
19
+
20
+ email: t_leitner@gmx.at
21
+ executables:
22
+ - kramdown
23
+ extensions: []
24
+
25
+ extra_rdoc_files: []
26
+
27
+ files:
28
+ - Rakefile
29
+ - setup.rb
30
+ - COPYING
31
+ - GPL
32
+ - README
33
+ - AUTHORS
34
+ - VERSION
35
+ - ChangeLog
36
+ - bin/kramdown
37
+ - benchmark/benchmark.rb
38
+ - benchmark/mdbasics.text
39
+ - benchmark/mdsyntax.text
40
+ - benchmark/testing.sh
41
+ - benchmark/timing.sh
42
+ - lib/kramdown/converter.rb
43
+ - lib/kramdown/document.rb
44
+ - lib/kramdown/error.rb
45
+ - lib/kramdown/extension.rb
46
+ - lib/kramdown/parser/registry.rb
47
+ - lib/kramdown/parser.rb
48
+ - lib/kramdown.rb
49
+ - doc/default.css
50
+ - doc/default.template
51
+ - doc/index.page
52
+ - doc/installation.page
53
+ - doc/news.feed
54
+ - doc/news.page
55
+ - doc/quickref.page
56
+ - doc/syntax.page
57
+ - doc/tests.page
58
+ - doc/virtual
59
+ - test/run_tests.rb
60
+ - test/test_files.rb
61
+ - test/testcases/block/01_blank_line/spaces.html
62
+ - test/testcases/block/01_blank_line/spaces.text
63
+ - test/testcases/block/01_blank_line/tabs.html
64
+ - test/testcases/block/01_blank_line/tabs.text
65
+ - test/testcases/block/02_eob/beginning.html
66
+ - test/testcases/block/02_eob/beginning.text
67
+ - test/testcases/block/02_eob/end.html
68
+ - test/testcases/block/02_eob/end.text
69
+ - test/testcases/block/02_eob/middle.html
70
+ - test/testcases/block/02_eob/middle.text
71
+ - test/testcases/block/03_paragraph/indented.html
72
+ - test/testcases/block/03_paragraph/indented.text
73
+ - test/testcases/block/03_paragraph/no_newline_at_end.html
74
+ - test/testcases/block/03_paragraph/no_newline_at_end.text
75
+ - test/testcases/block/03_paragraph/one_para.html
76
+ - test/testcases/block/03_paragraph/one_para.text
77
+ - test/testcases/block/03_paragraph/two_para.html
78
+ - test/testcases/block/03_paragraph/two_para.text
79
+ - test/testcases/block/04_header/atx_header.html
80
+ - test/testcases/block/04_header/atx_header.text
81
+ - test/testcases/block/04_header/atx_header_no_newline_at_end.html
82
+ - test/testcases/block/04_header/atx_header_no_newline_at_end.text
83
+ - test/testcases/block/04_header/setext_header.html
84
+ - test/testcases/block/04_header/setext_header.text
85
+ - test/testcases/block/04_header/setext_header_no_newline_at_end.html
86
+ - test/testcases/block/04_header/setext_header_no_newline_at_end.text
87
+ - test/testcases/block/04_header/with_auto_ids.html
88
+ - test/testcases/block/04_header/with_auto_ids.options
89
+ - test/testcases/block/04_header/with_auto_ids.text
90
+ - test/testcases/block/05_blockquote/indented.html
91
+ - test/testcases/block/05_blockquote/indented.text
92
+ - test/testcases/block/05_blockquote/nested.html
93
+ - test/testcases/block/05_blockquote/nested.text
94
+ - test/testcases/block/05_blockquote/no_newline_at_end.html
95
+ - test/testcases/block/05_blockquote/no_newline_at_end.text
96
+ - test/testcases/block/05_blockquote/only_first_quoted.html
97
+ - test/testcases/block/05_blockquote/only_first_quoted.text
98
+ - test/testcases/block/05_blockquote/with_code_blocks.html
99
+ - test/testcases/block/05_blockquote/with_code_blocks.text
100
+ - test/testcases/block/06_codeblock/error.html
101
+ - test/testcases/block/06_codeblock/error.text
102
+ - test/testcases/block/06_codeblock/no_newline_at_end.html
103
+ - test/testcases/block/06_codeblock/no_newline_at_end.text
104
+ - test/testcases/block/06_codeblock/normal.html
105
+ - test/testcases/block/06_codeblock/normal.text
106
+ - test/testcases/block/06_codeblock/tilde_syntax.html
107
+ - test/testcases/block/06_codeblock/tilde_syntax.text
108
+ - test/testcases/block/06_codeblock/whitespace.html
109
+ - test/testcases/block/06_codeblock/whitespace.text
110
+ - test/testcases/block/06_codeblock/with_blank_line.html
111
+ - test/testcases/block/06_codeblock/with_blank_line.text
112
+ - test/testcases/block/06_codeblock/with_eob_marker.html
113
+ - test/testcases/block/06_codeblock/with_eob_marker.text
114
+ - test/testcases/block/07_horizontal_rule/error.html
115
+ - test/testcases/block/07_horizontal_rule/error.text
116
+ - test/testcases/block/07_horizontal_rule/normal.html
117
+ - test/testcases/block/07_horizontal_rule/normal.text
118
+ - test/testcases/block/08_list/escaping.html
119
+ - test/testcases/block/08_list/escaping.text
120
+ - test/testcases/block/08_list/list_and_hr.html
121
+ - test/testcases/block/08_list/list_and_hr.text
122
+ - test/testcases/block/08_list/list_and_others.html
123
+ - test/testcases/block/08_list/list_and_others.text
124
+ - test/testcases/block/08_list/mixed.html
125
+ - test/testcases/block/08_list/mixed.text
126
+ - test/testcases/block/08_list/nested.html
127
+ - test/testcases/block/08_list/nested.text
128
+ - test/testcases/block/08_list/other_first_element.html
129
+ - test/testcases/block/08_list/other_first_element.text
130
+ - test/testcases/block/08_list/simple_ol.html
131
+ - test/testcases/block/08_list/simple_ol.text
132
+ - test/testcases/block/08_list/simple_ul.html
133
+ - test/testcases/block/08_list/simple_ul.text
134
+ - test/testcases/block/08_list/single_item.html
135
+ - test/testcases/block/08_list/single_item.text
136
+ - test/testcases/block/08_list/special_cases.html
137
+ - test/testcases/block/08_list/special_cases.text
138
+ - test/testcases/block/09_html/auto_parse_block_html.html
139
+ - test/testcases/block/09_html/auto_parse_block_html.options
140
+ - test/testcases/block/09_html/auto_parse_block_html.text
141
+ - test/testcases/block/09_html/comment.html
142
+ - test/testcases/block/09_html/comment.text
143
+ - test/testcases/block/09_html/filtered_html.html
144
+ - test/testcases/block/09_html/filtered_html.options
145
+ - test/testcases/block/09_html/filtered_html.text
146
+ - test/testcases/block/09_html/html_and_codeblocks.html
147
+ - test/testcases/block/09_html/html_and_codeblocks.options
148
+ - test/testcases/block/09_html/html_and_codeblocks.text
149
+ - test/testcases/block/09_html/invalid_html_1.html
150
+ - test/testcases/block/09_html/invalid_html_1.text
151
+ - test/testcases/block/09_html/invalid_html_2.html
152
+ - test/testcases/block/09_html/invalid_html_2.text
153
+ - test/testcases/block/09_html/parse_as_raw.html
154
+ - test/testcases/block/09_html/parse_as_raw.text
155
+ - test/testcases/block/09_html/parse_as_span.html
156
+ - test/testcases/block/09_html/parse_as_span.text
157
+ - test/testcases/block/09_html/processing_instruction.html
158
+ - test/testcases/block/09_html/processing_instruction.text
159
+ - test/testcases/block/09_html/simple.html
160
+ - test/testcases/block/09_html/simple.text
161
+ - test/testcases/block/10_ald/simple.html
162
+ - test/testcases/block/10_ald/simple.text
163
+ - test/testcases/block/11_ial/simple.html
164
+ - test/testcases/block/11_ial/simple.text
165
+ - test/testcases/block/12_extension/comment.html
166
+ - test/testcases/block/12_extension/comment.text
167
+ - test/testcases/block/12_extension/ignored.html
168
+ - test/testcases/block/12_extension/ignored.text
169
+ - test/testcases/block/12_extension/kdoptions.html
170
+ - test/testcases/block/12_extension/kdoptions.text
171
+ - test/testcases/block/12_extension/kdoptions2.html
172
+ - test/testcases/block/12_extension/kdoptions2.text
173
+ - test/testcases/block/12_extension/nokramdown.html
174
+ - test/testcases/block/12_extension/nokramdown.text
175
+ - test/testcases/span/01_link/empty.html
176
+ - test/testcases/span/01_link/empty.text
177
+ - test/testcases/span/01_link/image_in_a.html
178
+ - test/testcases/span/01_link/image_in_a.text
179
+ - test/testcases/span/01_link/imagelinks.html
180
+ - test/testcases/span/01_link/imagelinks.text
181
+ - test/testcases/span/01_link/inline.html
182
+ - test/testcases/span/01_link/inline.text
183
+ - test/testcases/span/01_link/link_defs.html
184
+ - test/testcases/span/01_link/link_defs.text
185
+ - test/testcases/span/01_link/links_with_angle_brackets.html
186
+ - test/testcases/span/01_link/links_with_angle_brackets.text
187
+ - test/testcases/span/01_link/reference.html
188
+ - test/testcases/span/01_link/reference.text
189
+ - test/testcases/span/02_emphasis/empty.html
190
+ - test/testcases/span/02_emphasis/empty.text
191
+ - test/testcases/span/02_emphasis/errors.html
192
+ - test/testcases/span/02_emphasis/errors.text
193
+ - test/testcases/span/02_emphasis/nesting.html
194
+ - test/testcases/span/02_emphasis/nesting.text
195
+ - test/testcases/span/02_emphasis/normal.html
196
+ - test/testcases/span/02_emphasis/normal.text
197
+ - test/testcases/span/03_codespan/empty.html
198
+ - test/testcases/span/03_codespan/empty.text
199
+ - test/testcases/span/03_codespan/errors.html
200
+ - test/testcases/span/03_codespan/errors.text
201
+ - test/testcases/span/03_codespan/normal.html
202
+ - test/testcases/span/03_codespan/normal.text
203
+ - test/testcases/span/04_footnote/definitions.html
204
+ - test/testcases/span/04_footnote/definitions.text
205
+ - test/testcases/span/04_footnote/footnote_nr.html
206
+ - test/testcases/span/04_footnote/footnote_nr.options
207
+ - test/testcases/span/04_footnote/footnote_nr.text
208
+ - test/testcases/span/04_footnote/markers.html
209
+ - test/testcases/span/04_footnote/markers.text
210
+ - test/testcases/span/05_html/normal.html
211
+ - test/testcases/span/05_html/normal.text
212
+ - test/testcases/span/autolinks/url_links.html
213
+ - test/testcases/span/autolinks/url_links.text
214
+ - test/testcases/span/escaped_chars/normal.html
215
+ - test/testcases/span/escaped_chars/normal.text
216
+ - test/testcases/span/ial/simple.html
217
+ - test/testcases/span/ial/simple.text
218
+ - test/testcases/span/line_breaks/normal.html
219
+ - test/testcases/span/line_breaks/normal.text
220
+ - test/testcases/span/text_substitutions/entities.html
221
+ - test/testcases/span/text_substitutions/entities.text
222
+ - test/testcases/span/text_substitutions/greaterthan.html
223
+ - test/testcases/span/text_substitutions/greaterthan.text
224
+ - test/testcases/span/text_substitutions/lowerthan.html
225
+ - test/testcases/span/text_substitutions/lowerthan.text
226
+ - test/testcases/span/text_substitutions/typography.html
227
+ - test/testcases/span/text_substitutions/typography.text
228
+ has_rdoc: true
229
+ homepage: http://kramdown.rubyforge.org
230
+ licenses: []
231
+
232
+ post_install_message:
233
+ rdoc_options:
234
+ - --line-numbers
235
+ - --main
236
+ - Kramdown
237
+ require_paths:
238
+ - lib
239
+ required_ruby_version: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: "0"
244
+ version:
245
+ required_rubygems_version: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - ">="
248
+ - !ruby/object:Gem::Version
249
+ version: "0"
250
+ version:
251
+ requirements: []
252
+
253
+ rubyforge_project: kramdown
254
+ rubygems_version: 1.3.5
255
+ signing_key:
256
+ specification_version: 3
257
+ summary: kramdown is a fast, pure-Ruby converter for Markdown-like markup.
258
+ test_files: []
259
+