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,3 @@
1
+ <p>This is [] empty.</p>
2
+
3
+ <p>This is [][] empty.</p>
@@ -0,0 +1,3 @@
1
+ This is [] empty.
2
+
3
+ This is [][] empty.
@@ -0,0 +1,5 @@
1
+ <p>Simple: <a href="local.html">Some <img alt="alt text" src="/images/other.png" /></a></p>
2
+
3
+ <p>Nested: <a href="local.html">Some <img alt="alt ![img](text.png) text" src="/images/other.png" /></a></p>
4
+
5
+ <p>Simple: <a href="local.html">Some <em>text <img alt="alt text" src="/images/other.png" /> text</em></a></p>
@@ -0,0 +1,5 @@
1
+ Simple: [Some ![alt text](/images/other.png)](local.html)
2
+
3
+ Nested: [Some ![alt ![img](text.png) text](/images/other.png)](local.html)
4
+
5
+ Simple: [Some *text ![alt text](/images/other.png) text*](local.html)
@@ -0,0 +1,12 @@
1
+ <p>Simple: <img alt="alt text" src="/images/other.png" /></p>
2
+
3
+ <p>Simple with title: <img alt="alt text" src="/images/other.png" title="title" /></p>
4
+
5
+ <p>Empty img link: <img alt="alt text" src="" /></p>
6
+
7
+ <p>Reference style: <img alt="alt text" src="other.png" /></p>
8
+
9
+ <p>Reference style with title: <img alt="alt text" src="other.png" title="Title" /></p>
10
+
11
+ <p>No id: <img alt="imgo" src="other.png" title="Title" /></p>
12
+
@@ -0,0 +1,14 @@
1
+ Simple: ![alt text](/images/other.png)
2
+
3
+ Simple with title: ![alt text](/images/other.png "title")
4
+
5
+ Empty img link: ![alt text]()
6
+
7
+ Reference style: ![alt text][img]
8
+
9
+ Reference style with title: ![alt text][imgo]
10
+
11
+ No id: ![imgo]
12
+
13
+ [img]: other.png
14
+ [imgo]: other.png "Title"
@@ -0,0 +1,40 @@
1
+ <p>simple <a href="">URL</a></p>
2
+
3
+ <p>simple <a href="something.html">URL</a></p>
4
+
5
+ <p>simple <a href="something.html">URL <em>with</em> formatting</a></p>
6
+
7
+ <p>simple <a href="something.html" title="a t&quot;itle">URL with single quoted title</a></p>
8
+
9
+ <p>simple <a href="something.html" title="a t'itle">URL with double quoted title</a></p>
10
+
11
+ <p>simple <a href="something.html">URL [with ] escaped</a></p>
12
+
13
+ <p>simple <a href="something.html">URL with ] escaped</a></p>
14
+
15
+ <p>simple <a href="something.html">URL [with] nested</a></p>
16
+
17
+ <p>simple <a href="something.html">URL with [no](link.html) inside</a></p>
18
+
19
+ <p>simple <a href="/something/to(do)">URL with parens</a></p>
20
+
21
+ <p>simple <a href="/something/to(do" title="doit">URL with parens</a></p>
22
+
23
+ <p>simple <a href="something.html" title="title">URL broken
24
+ on line</a></p>
25
+
26
+ <p>bad [URL <a href="something.html">not</a></p>
27
+
28
+ <p>bad [URL with parens](something(new.html)</p>
29
+
30
+ <p>bad [URL with leading spaces]( something.html)</p>
31
+
32
+ <p>bad [URL with trailing spaces](something.html )</p>
33
+
34
+ <p>bad [URL with spaces](this is some url.html)</p>
35
+
36
+ <p>bad [URL with empty title](something.html '')</p>
37
+
38
+ <p>bad [URL](</p>
39
+
40
+ <p>bad [URL](no</p>
@@ -0,0 +1,42 @@
1
+ simple [URL]()
2
+
3
+ simple [URL](something.html)
4
+
5
+ simple [URL *with* formatting](something.html)
6
+
7
+ simple [URL with single quoted title](something.html 'a t"itle')
8
+
9
+ simple [URL with double quoted title](something.html "a t'itle")
10
+
11
+ simple [URL \[with \] escaped](something.html)
12
+
13
+ simple [URL with \] escaped](something.html)
14
+
15
+ simple [URL [with] nested](something.html)
16
+
17
+ simple [URL with [no](link.html) inside](something.html)
18
+
19
+ simple [URL with parens](/something/to(do))
20
+
21
+ simple [URL with parens](/something/to(do "doit")
22
+
23
+ simple [URL broken
24
+ on line](something.html
25
+ "title")
26
+
27
+
28
+ bad [URL [not](something.html)
29
+
30
+ bad [URL with parens](something(new.html)
31
+
32
+ bad [URL with leading spaces]( something.html)
33
+
34
+ bad [URL with trailing spaces](something.html )
35
+
36
+ bad [URL with spaces](this is some url.html)
37
+
38
+ bad [URL with empty title](something.html '')
39
+
40
+ bad [URL](
41
+
42
+ bad [URL](no
@@ -0,0 +1,8 @@
1
+ <p>This is a para.</p>
2
+
3
+ <pre><code>[4]: nourl
4
+ </code></pre>
5
+
6
+ <p>Points to <a href="one.url">1</a> and <a href="two.url">2</a> and <a href="three.url">3</a> but not [4]</p>
7
+
8
+ <p>Points to <a href="http://example.com">_.:,;!?-</a></p>
@@ -0,0 +1,22 @@
1
+ This is a para.
2
+ [id]: http://www.example.com/
3
+
4
+ [otherid1]: http://wwww.example.com/ "title 1"
5
+ [otherid2]: http://wwww.example.com/ 'title 2'
6
+ [otherid3]: <some spaces.html>
7
+ [otherid4]: <some spaces.html> 'title'
8
+
9
+ [break]: http://www.example.com/test/asdf.html
10
+ 'Another title'
11
+
12
+ [1]: ignored.url
13
+ [1]: one.url
14
+ [2]: two.url
15
+ [3]: three.url
16
+ [4]: nourl
17
+
18
+ Points to [1] and [2] and [3] but not [4]
19
+
20
+ [_.:,;!?-]: http://example.com
21
+
22
+ Points to [_.:,;!?-]
@@ -0,0 +1,3 @@
1
+ <p>This is a <a href="with angle.html">link</a>.</p>
2
+
3
+ <p>This is a <a href="with angle.html" title="and title">link</a>.</p>
@@ -0,0 +1,3 @@
1
+ This is a [link](<with angle.html>).
2
+
3
+ This is a [link](<with angle.html> 'and title').
@@ -0,0 +1,32 @@
1
+
2
+ <p>simple <a href="otherurl.html">URL</a> and <a href="someurl.html">URL</a></p>
3
+
4
+ <p>simple <a href="otherurl.html">URL</a> and <a href="someurl.html">URL</a></p>
5
+
6
+ <p>simple <a href="otherurl.html">1</a> and <a href="someurl.html">isurl</a></p>
7
+
8
+ <p>simple <a href="otherurl.html">1</a> and <a href="someurl.html">isurl</a></p>
9
+
10
+ <p>this is [a holy <a href="someurl.html">isurl</a>]</p>
11
+
12
+ <p>no [resolution][] here and [here]</p>
13
+
14
+ <p>with a <a href="url.html">break in
15
+ the text</a></p>
16
+
17
+ <p>this not [isurl] and not [isurl]</p>
18
+
19
+ <p>a <a href="letters.html" title="This is the title">Link with_BIG</a> letters</p>
20
+
21
+ <p>bad [no URL] d <a href="someurl.html">isurl</a></p>
22
+
23
+ <p>[no % url]: invalid.html
24
+ [no url] invalid.html
25
+ [no url]:</p>
26
+
27
+ <p>&quot;title&quot;</p>
28
+
29
+ <p>test <a href="invalid.html">url but no title</a>
30
+ test [urldef]</p>
31
+
32
+ <p>[urldef]: some.url 'title&quot;</p>
@@ -0,0 +1,42 @@
1
+ [isurl]: someurl.html
2
+ [1]: otherurl.html
3
+
4
+ simple [URL][1] and [URL][isurl]
5
+
6
+ simple [URL] [1] and [URL]
7
+ [isurl]
8
+
9
+ simple [1][] and [isurl][]
10
+
11
+ simple [1] and [isurl]
12
+
13
+ this is [a holy [isurl]]
14
+
15
+ no [resolution][] here and [here]
16
+
17
+ with a [break in
18
+ the text]
19
+
20
+ [break in the text]: url.html
21
+
22
+ this not \[isurl] and not [isurl\]
23
+
24
+ a [Link with_BIG] letters
25
+
26
+ [link WITH_big]: letters.html
27
+ 'This is the title'
28
+
29
+ bad [no URL] d [isurl]
30
+
31
+ [no % url]: invalid.html
32
+ [no url] invalid.html
33
+ [no url]:
34
+
35
+ [URL but no title]: invalid.html
36
+
37
+ "title"
38
+
39
+ test [url but no title]
40
+ test [urldef]
41
+
42
+ [urldef]: some.url 'title"
@@ -0,0 +1,3 @@
1
+ <p>This __is **empty.</p>
2
+
3
+ <p>This <em>**</em>is empty.</p>
@@ -0,0 +1,3 @@
1
+ This __is **empty.
2
+
3
+ This ****is empty.
@@ -0,0 +1,9 @@
1
+ <p>This is a *star.</p>
2
+
3
+ <p>This is a **star.</p>
4
+
5
+ <p>This is **a <em>star</em>.</p>
6
+
7
+ <p>This is *a star*.</p>
8
+
9
+ <p>This** is** a star.</p>
@@ -0,0 +1,9 @@
1
+ This is a *star.
2
+
3
+ This is a **star.
4
+
5
+ This is **a *star*.
6
+
7
+ This is *a star\*.
8
+
9
+ This** is** a star.
@@ -0,0 +1,34 @@
1
+ <ul>
2
+ <li><strong><em>test test</em></strong></li>
3
+ <li><strong><em>test test</em></strong></li>
4
+ <li><em>test <strong>test</strong></em></li>
5
+ <li><strong>test <em>test</em></strong></li>
6
+ <li><strong><em>test</em> test</strong></li>
7
+ <li><em><strong>test</strong> test</em></li>
8
+ <li><strong><em>test</em> test</strong></li>
9
+ <li><strong>test <em>test</em></strong></li>
10
+ <li><em>test <strong>test</strong></em></li>
11
+ <li><em>test <strong>test</strong></em></li>
12
+ <li><strong>test <em>test</em></strong></li>
13
+ <li><strong><em>test</em> test</strong></li>
14
+ <li><em><strong>test</strong> test</em></li>
15
+ <li><strong><em>test</em> test</strong></li>
16
+ <li><strong>test <em>test</em></strong></li>
17
+ <li><em>test <strong>test</strong></em></li>
18
+ </ul>
19
+ <ul>
20
+ <li><em>a</em>b</li>
21
+ <li>a<em>b</em></li>
22
+ <li>a<em>b</em>c</li>
23
+ <li><strong>a</strong>b</li>
24
+ <li>a<strong>b</strong></li>
25
+ <li>a<strong>b</strong>c</li>
26
+ </ul>
27
+ <ul>
28
+ <li>_a_b</li>
29
+ <li>a_b_</li>
30
+ <li>a_b_c</li>
31
+ <li>__a__b</li>
32
+ <li>a__b__</li>
33
+ <li>a__b__c</li>
34
+ </ul>
@@ -0,0 +1,30 @@
1
+ - ***test test***
2
+ - ___test test___
3
+ - *test **test***
4
+ - **test *test***
5
+ - ***test* test**
6
+ - ***test** test*
7
+ - ***test* test**
8
+ - **test *test***
9
+ - *test **test***
10
+ - _test __test___
11
+ - __test _test___
12
+ - ___test_ test__
13
+ - ___test__ test_
14
+ - ___test_ test__
15
+ - __test _test___
16
+ - _test __test___
17
+ ^
18
+ - *a*b
19
+ - a*b*
20
+ - a*b*c
21
+ - **a**b
22
+ - a**b**
23
+ - a**b**c
24
+ ^
25
+ - _a_b
26
+ - a_b_
27
+ - a_b_c
28
+ - __a__b
29
+ - a__b__
30
+ - a__b__c
@@ -0,0 +1,42 @@
1
+ <p>This <em>is</em> so <strong>hard</strong>.</p>
2
+
3
+ <p>This <em>is</em> so <strong>hard</strong> too.</p>
4
+
5
+ <p><em>At</em> start.</p>
6
+
7
+ <p>At <em>end</em></p>
8
+
9
+ <p><em>At</em> start.</p>
10
+
11
+ <p>At <em>end</em></p>
12
+
13
+ <p>And <em>nest<strong>ed</strong></em>.</p>
14
+
15
+ <p>And <em>nest**ed</em>.</p>
16
+
17
+ <p>And *nest<strong>ed* like</strong> this.</p>
18
+
19
+ <p>And <em>not_nest_ed</em>.</p>
20
+
21
+ <p>And <strong><em>nested</em></strong>.</p>
22
+
23
+ <p>And <strong><em>nested</em></strong>.</p>
24
+
25
+ <p>And <strong>nest<em>e</em></strong>.</p>
26
+
27
+ <p>And lonely * here*.</p>
28
+
29
+ <p>And lonely ** here**.</p>
30
+
31
+ <p>And <strong>lonely ** here</strong>.</p>
32
+
33
+ <p>** and here**.</p>
34
+
35
+ <p>And <strong>compli*cated *</strong> here</p>
36
+
37
+ <p>Some<em>**what</em> more * <em>**he</em>re</p>
38
+
39
+ <p>Do it <em>*this*</em> way
40
+ Or this *<em>this</em>* way
41
+ Or that <em>*that</em>* way
42
+ Or that *<em>that*</em> way</p>
@@ -0,0 +1,42 @@
1
+ This *is* so **hard**.
2
+
3
+ This _is_ so __hard__ too.
4
+
5
+ *At* start.
6
+
7
+ At *end*
8
+
9
+ _At_ start.
10
+
11
+ At _end_
12
+
13
+ And *nest**ed***.
14
+
15
+ And *nest**ed*.
16
+
17
+ And *nest**ed* like** this.
18
+
19
+ And *not_nest_ed*.
20
+
21
+ And ***nested***.
22
+
23
+ And ___nested___.
24
+
25
+ And **nest*e***.
26
+
27
+ And lonely * here*.
28
+
29
+ And lonely ** here**.
30
+
31
+ And **lonely ** here**.
32
+
33
+ ** and here**.
34
+
35
+ And **compli*cated \*** here
36
+
37
+ Some***what* more * ***he*re
38
+
39
+ Do it *\*this\** way
40
+ Or this \**this*\* way
41
+ Or that *\*that*\* way
42
+ Or that \**that\** way
@@ -0,0 +1,5 @@
1
+ <p>This is `` empty.</p>
2
+
3
+ <p>This is ``empty.</p>
4
+
5
+ <p>This is ````empty.</p>