@honkit/markup-it 6.0.4 → 6.1.4

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 (129) hide show
  1. package/lib/__tests__/syntax.d.ts +2 -0
  2. package/lib/__tests__/syntax.d.ts.map +1 -0
  3. package/lib/__tests__/syntax.js +92 -0
  4. package/lib/json/__tests__/decode.d.ts +2 -0
  5. package/lib/json/__tests__/decode.d.ts.map +1 -0
  6. package/lib/json/__tests__/decode.js +38 -0
  7. package/lib/json/__tests__/encode.d.ts +2 -0
  8. package/lib/json/__tests__/encode.d.ts.map +1 -0
  9. package/lib/json/__tests__/encode.js +26 -0
  10. package/lib/models/__tests__/token.d.ts +2 -0
  11. package/lib/models/__tests__/token.d.ts.map +1 -0
  12. package/lib/models/__tests__/token.js +18 -0
  13. package/lib/parse/__tests__/mergeTokens.d.ts +2 -0
  14. package/lib/parse/__tests__/mergeTokens.d.ts.map +1 -0
  15. package/lib/parse/__tests__/mergeTokens.js +51 -0
  16. package/lib/parse/textToUnstyledTokens.d.ts.map +1 -1
  17. package/package.json +14 -15
  18. package/syntaxes/markdown/__tests__/normalizeTeX.spec.js +34 -0
  19. package/syntaxes/markdown/__tests__/specs/amps_and_angles_encoding.html +17 -0
  20. package/syntaxes/markdown/__tests__/specs/amps_and_angles_encoding.md +21 -0
  21. package/syntaxes/markdown/__tests__/specs/auto_links.html +18 -0
  22. package/syntaxes/markdown/__tests__/specs/auto_links.md +13 -0
  23. package/syntaxes/markdown/__tests__/specs/autolink_lines.html +3 -0
  24. package/syntaxes/markdown/__tests__/specs/autolink_lines.md +2 -0
  25. package/syntaxes/markdown/__tests__/specs/backslash_escapes.html +118 -0
  26. package/syntaxes/markdown/__tests__/specs/backslash_escapes.md +120 -0
  27. package/syntaxes/markdown/__tests__/specs/blockquote_list_item.html +3 -0
  28. package/syntaxes/markdown/__tests__/specs/blockquote_list_item.md +4 -0
  29. package/syntaxes/markdown/__tests__/specs/blockquotes_with_code_blocks.html +15 -0
  30. package/syntaxes/markdown/__tests__/specs/blockquotes_with_code_blocks.md +11 -0
  31. package/syntaxes/markdown/__tests__/specs/case_insensitive_refs.html +1 -0
  32. package/syntaxes/markdown/__tests__/specs/case_insensitive_refs.md +3 -0
  33. package/syntaxes/markdown/__tests__/specs/code_blocks.html +18 -0
  34. package/syntaxes/markdown/__tests__/specs/code_blocks.md +14 -0
  35. package/syntaxes/markdown/__tests__/specs/code_blocks_indent.html +13 -0
  36. package/syntaxes/markdown/__tests__/specs/code_blocks_indent.md +14 -0
  37. package/syntaxes/markdown/__tests__/specs/code_spans.html +6 -0
  38. package/syntaxes/markdown/__tests__/specs/code_spans.md +6 -0
  39. package/syntaxes/markdown/__tests__/specs/def_blocks.html +30 -0
  40. package/syntaxes/markdown/__tests__/specs/def_blocks.md +21 -0
  41. package/syntaxes/markdown/__tests__/specs/double_link.html +5 -0
  42. package/syntaxes/markdown/__tests__/specs/double_link.md +5 -0
  43. package/syntaxes/markdown/__tests__/specs/escaped_angles.html +1 -0
  44. package/syntaxes/markdown/__tests__/specs/escaped_angles.md +1 -0
  45. package/syntaxes/markdown/__tests__/specs/footnotes.html +4 -0
  46. package/syntaxes/markdown/__tests__/specs/footnotes.md +3 -0
  47. package/syntaxes/markdown/__tests__/specs/gfm_break.breaks.html +3 -0
  48. package/syntaxes/markdown/__tests__/specs/gfm_break.breaks.md +3 -0
  49. package/syntaxes/markdown/__tests__/specs/gfm_code.html +5 -0
  50. package/syntaxes/markdown/__tests__/specs/gfm_code.md +16 -0
  51. package/syntaxes/markdown/__tests__/specs/gfm_code_hr_list.html +52 -0
  52. package/syntaxes/markdown/__tests__/specs/gfm_code_hr_list.md +53 -0
  53. package/syntaxes/markdown/__tests__/specs/gfm_del.html +1 -0
  54. package/syntaxes/markdown/__tests__/specs/gfm_del.md +1 -0
  55. package/syntaxes/markdown/__tests__/specs/gfm_em.html +1 -0
  56. package/syntaxes/markdown/__tests__/specs/gfm_em.md +1 -0
  57. package/syntaxes/markdown/__tests__/specs/gfm_links.html +2 -0
  58. package/syntaxes/markdown/__tests__/specs/gfm_links.md +1 -0
  59. package/syntaxes/markdown/__tests__/specs/gfm_tables.html +37 -0
  60. package/syntaxes/markdown/__tests__/specs/gfm_tables.md +21 -0
  61. package/syntaxes/markdown/__tests__/specs/hard_wrapped_paragraphs_with_list_like_lines.nogfm.html +10 -0
  62. package/syntaxes/markdown/__tests__/specs/hard_wrapped_paragraphs_with_list_like_lines.nogfm.md +8 -0
  63. package/syntaxes/markdown/__tests__/specs/horizontal_rules.html +71 -0
  64. package/syntaxes/markdown/__tests__/specs/horizontal_rules.md +67 -0
  65. package/syntaxes/markdown/__tests__/specs/hr_list_break.html +10 -0
  66. package/syntaxes/markdown/__tests__/specs/hr_list_break.md +6 -0
  67. package/syntaxes/markdown/__tests__/specs/image.html +5 -0
  68. package/syntaxes/markdown/__tests__/specs/image.md +3 -0
  69. package/syntaxes/markdown/__tests__/specs/inline_html.html +6 -0
  70. package/syntaxes/markdown/__tests__/specs/inline_html.md +6 -0
  71. package/syntaxes/markdown/__tests__/specs/inline_html_advanced.html +15 -0
  72. package/syntaxes/markdown/__tests__/specs/inline_html_advanced.md +15 -0
  73. package/syntaxes/markdown/__tests__/specs/inline_html_comments.html +13 -0
  74. package/syntaxes/markdown/__tests__/specs/inline_html_comments.md +13 -0
  75. package/syntaxes/markdown/__tests__/specs/inline_html_script.html +3 -0
  76. package/syntaxes/markdown/__tests__/specs/inline_html_script.md +3 -0
  77. package/syntaxes/markdown/__tests__/specs/inline_html_simple.html +72 -0
  78. package/syntaxes/markdown/__tests__/specs/inline_html_simple.md +69 -0
  79. package/syntaxes/markdown/__tests__/specs/lazy_blockquotes.html +4 -0
  80. package/syntaxes/markdown/__tests__/specs/lazy_blockquotes.md +2 -0
  81. package/syntaxes/markdown/__tests__/specs/links_inline_style.html +15 -0
  82. package/syntaxes/markdown/__tests__/specs/links_inline_style.md +15 -0
  83. package/syntaxes/markdown/__tests__/specs/links_reference_style.html +52 -0
  84. package/syntaxes/markdown/__tests__/specs/links_reference_style.md +71 -0
  85. package/syntaxes/markdown/__tests__/specs/links_shortcut_references.html +9 -0
  86. package/syntaxes/markdown/__tests__/specs/links_shortcut_references.md +20 -0
  87. package/syntaxes/markdown/__tests__/specs/list_item_text.html +1 -0
  88. package/syntaxes/markdown/__tests__/specs/list_item_text.md +5 -0
  89. package/syntaxes/markdown/__tests__/specs/literal_quotes_in_titles.html +3 -0
  90. package/syntaxes/markdown/__tests__/specs/literal_quotes_in_titles.md +7 -0
  91. package/syntaxes/markdown/__tests__/specs/loose_lists.html +62 -0
  92. package/syntaxes/markdown/__tests__/specs/loose_lists.md +59 -0
  93. package/syntaxes/markdown/__tests__/specs/main.html +71 -0
  94. package/syntaxes/markdown/__tests__/specs/main.md +58 -0
  95. package/syntaxes/markdown/__tests__/specs/markdown_documentation_basics.html +314 -0
  96. package/syntaxes/markdown/__tests__/specs/markdown_documentation_basics.md +306 -0
  97. package/syntaxes/markdown/__tests__/specs/markdown_documentation_syntax.html +942 -0
  98. package/syntaxes/markdown/__tests__/specs/markdown_documentation_syntax.md +888 -0
  99. package/syntaxes/markdown/__tests__/specs/nested_blockquotes.html +9 -0
  100. package/syntaxes/markdown/__tests__/specs/nested_blockquotes.md +5 -0
  101. package/syntaxes/markdown/__tests__/specs/nested_code.html +1 -0
  102. package/syntaxes/markdown/__tests__/specs/nested_code.md +1 -0
  103. package/syntaxes/markdown/__tests__/specs/nested_em.html +3 -0
  104. package/syntaxes/markdown/__tests__/specs/nested_em.md +3 -0
  105. package/syntaxes/markdown/__tests__/specs/nested_square_link.html +1 -0
  106. package/syntaxes/markdown/__tests__/specs/nested_square_link.md +1 -0
  107. package/syntaxes/markdown/__tests__/specs/not_a_link.html +1 -0
  108. package/syntaxes/markdown/__tests__/specs/not_a_link.md +1 -0
  109. package/syntaxes/markdown/__tests__/specs/ordered_and_unordered_lists.html +148 -0
  110. package/syntaxes/markdown/__tests__/specs/ordered_and_unordered_lists.md +131 -0
  111. package/syntaxes/markdown/__tests__/specs/ref_paren.html +1 -0
  112. package/syntaxes/markdown/__tests__/specs/ref_paren.md +3 -0
  113. package/syntaxes/markdown/__tests__/specs/same_bullet.html +5 -0
  114. package/syntaxes/markdown/__tests__/specs/same_bullet.md +3 -0
  115. package/syntaxes/markdown/__tests__/specs/simple_paragraph.html +1 -0
  116. package/syntaxes/markdown/__tests__/specs/simple_paragraph.md +1 -0
  117. package/syntaxes/markdown/__tests__/specs/strong_and_em_together.html +7 -0
  118. package/syntaxes/markdown/__tests__/specs/strong_and_em_together.md +7 -0
  119. package/syntaxes/markdown/__tests__/specs/table_pipe.html +5 -0
  120. package/syntaxes/markdown/__tests__/specs/table_pipe.md +4 -0
  121. package/syntaxes/markdown/__tests__/specs/tabs.html +25 -0
  122. package/syntaxes/markdown/__tests__/specs/tabs.md +21 -0
  123. package/syntaxes/markdown/__tests__/specs/tidyness.html +8 -0
  124. package/syntaxes/markdown/__tests__/specs/tidyness.md +5 -0
  125. package/syntaxes/markdown/__tests__/specs/toplevel_paragraphs.gfm.html +34 -0
  126. package/syntaxes/markdown/__tests__/specs/toplevel_paragraphs.gfm.md +37 -0
  127. package/syntaxes/markdown/__tests__/specs/tricky_list.html +23 -0
  128. package/syntaxes/markdown/__tests__/specs/tricky_list.md +15 -0
  129. package/syntaxes/markdown/__tests__/specs.js +74 -0
@@ -0,0 +1,67 @@
1
+ Dashes:
2
+
3
+ ---
4
+
5
+ ---
6
+
7
+ ---
8
+
9
+ ---
10
+
11
+ ---
12
+
13
+ - - -
14
+
15
+ - - -
16
+
17
+ - - -
18
+
19
+ - - -
20
+
21
+ - - -
22
+
23
+
24
+ Asterisks:
25
+
26
+ ***
27
+
28
+ ***
29
+
30
+ ***
31
+
32
+ ***
33
+
34
+ ***
35
+
36
+ * * *
37
+
38
+ * * *
39
+
40
+ * * *
41
+
42
+ * * *
43
+
44
+ * * *
45
+
46
+
47
+ Underscores:
48
+
49
+ ___
50
+
51
+ ___
52
+
53
+ ___
54
+
55
+ ___
56
+
57
+ ___
58
+
59
+ _ _ _
60
+
61
+ _ _ _
62
+
63
+ _ _ _
64
+
65
+ _ _ _
66
+
67
+ _ _ _
@@ -0,0 +1,10 @@
1
+ <ul>
2
+ <li>hello
3
+ world</li>
4
+ <li>how
5
+ are</li>
6
+ </ul>
7
+
8
+ <hr>
9
+
10
+ <p>you today?</p>
@@ -0,0 +1,6 @@
1
+ * hello
2
+ world
3
+ * how
4
+ are
5
+ * * *
6
+ you today?
@@ -0,0 +1,5 @@
1
+ <p>
2
+ <img alt="first alt" src="/first.jpg" title="first title">
3
+ <img alt="second alt" src="/second.jpg">
4
+ <img alt="third alt" src="/third.jpg">
5
+ </p>
@@ -0,0 +1,3 @@
1
+ ![first alt](/first.jpg "first title")
2
+ ![second alt](/second.jpg "")
3
+ ![third alt](/third.jpg)
@@ -0,0 +1,6 @@
1
+ <p>In 2006, podcasting continued to ride the coattails of this hype. The Ricky Gervais Show became the most downloaded podcast in history, and the world’s first live podcast tour took to the road.<sup><a href=../citations/index.html>6</a></sup> <em>This American Life</em>, a weekly public radio program founded by Ira Glass in 1996, jumped on the bandwagon, making the show freely available as a podcast for the first time. Edison Research reported that at the time <a href="http://www.edisonresearch.com/the-podcast-consumer-2015/">22 percent of Americans were aware of the term podcasting and 11 percent of the population had listened to a podcast at least once</a>.<sup><a href=../citations/index.html>7</a></sup></p>
2
+
3
+ <p><div>[a](b)</div>
4
+ <span><a href="b">a</a></span></p>
5
+
6
+ <p><br></p>
@@ -0,0 +1,6 @@
1
+ In 2006, podcasting continued to ride the coattails of this hype. The Ricky Gervais Show became the most downloaded podcast in history, and the world’s first live podcast tour took to the road.<sup><a href=../citations/index.html>6</a></sup> *This American Life*, a weekly public radio program founded by Ira Glass in 1996, jumped on the bandwagon, making the show freely available as a podcast for the first time. Edison Research reported that at the time [22 percent of Americans were aware of the term podcasting and 11 percent of the population had listened to a podcast at least once](http://www.edisonresearch.com/the-podcast-consumer-2015/).<sup><a href=../citations/index.html>7</a></sup>
2
+
3
+ <div>[a](b)</div>
4
+ <span>[a](b)</span>
5
+
6
+ <br>
@@ -0,0 +1,15 @@
1
+ <p>Simple block on one line:</p>
2
+
3
+ <div>foo</div>
4
+
5
+ <p>And nested without indentation:</p>
6
+
7
+ <div>
8
+ <div>
9
+ <div>
10
+ foo
11
+ </div>
12
+ <div style=">"/>
13
+ </div>
14
+ <div>bar</div>
15
+ </div>
@@ -0,0 +1,15 @@
1
+ Simple block on one line:
2
+
3
+ <div>foo</div>
4
+
5
+ And nested without indentation:
6
+
7
+ <div>
8
+ <div>
9
+ <div>
10
+ foo
11
+ </div>
12
+ <div style=">"/>
13
+ </div>
14
+ <div>bar</div>
15
+ </div>
@@ -0,0 +1,13 @@
1
+ <p>Paragraph one.</p>
2
+
3
+ <!-- This is a simple comment -->
4
+
5
+ <!--
6
+ This is another comment.
7
+ -->
8
+
9
+ <p>Paragraph two.</p>
10
+
11
+ <!-- one comment block -- -- with two comments -->
12
+
13
+ <p>The end.</p>
@@ -0,0 +1,13 @@
1
+ Paragraph one.
2
+
3
+ <!-- This is a simple comment -->
4
+
5
+ <!--
6
+ This is another comment.
7
+ -->
8
+
9
+ Paragraph two.
10
+
11
+ <!-- one comment block -- -- with two comments -->
12
+
13
+ The end.
@@ -0,0 +1,3 @@
1
+ <p><strong>Proof:</strong> If <script type="math/tex; ">g</script> is concave, then <script type="math/tex; ">g(x)\\leq g(\\mu)+(x-\\mu)\'\\eta(\\mu),</script>
2
+ where <script type="math/tex; ">\\eta(\\mu)</script> is an arbitrary element of the
3
+ subgradient of ..</p>
@@ -0,0 +1,3 @@
1
+ **Proof:** If <script type="math/tex; ">g</script> is concave, then <script type="math/tex; ">g(x)\\leq g(\\mu)+(x-\\mu)\'\\eta(\\mu),</script>
2
+ where <script type="math/tex; ">\\eta(\\mu)</script> is an arbitrary element of the
3
+ subgradient of ..
@@ -0,0 +1,72 @@
1
+ <p>Here&apos;s a simple block:</p>
2
+
3
+ <div>
4
+ foo
5
+ </div>
6
+
7
+ <p>This should be a code block, though:</p>
8
+
9
+ <pre><code>&lt;div&gt;
10
+ foo
11
+ &lt;/div&gt;
12
+ </code></pre>
13
+
14
+ <p>As should this:</p>
15
+
16
+ <pre><code>&lt;div&gt;foo&lt;/div&gt;
17
+ </code></pre>
18
+
19
+ <p>Now, nested:</p>
20
+
21
+ <div>
22
+ <div>
23
+ <div>
24
+ foo
25
+ </div>
26
+ </div>
27
+ </div>
28
+
29
+ <p>This should just be an HTML comment:</p>
30
+
31
+ <!-- Comment -->
32
+
33
+ <p>Multiline:</p>
34
+
35
+ <!--
36
+ Blah
37
+ Blah
38
+ -->
39
+
40
+ <p>Code block:</p>
41
+
42
+ <pre><code>&lt;!-- Comment --&gt;
43
+ </code></pre>
44
+
45
+ <p>Just plain comment, with trailing spaces on the line:</p>
46
+
47
+ <!-- foo -->
48
+
49
+ <p>Code:</p>
50
+
51
+ <pre><code>&lt;hr&gt;
52
+ </code></pre>
53
+
54
+ <p>Hr&apos;s:</p>
55
+
56
+ <hr>
57
+
58
+ <hr>
59
+
60
+ <hr>
61
+
62
+ <hr>
63
+
64
+ <hr>
65
+
66
+ <hr>
67
+
68
+ <hr class="foo" id="bar" />
69
+
70
+ <hr class="foo" id="bar"/>
71
+
72
+ <hr class="foo" id="bar" >
@@ -0,0 +1,69 @@
1
+ Here's a simple block:
2
+
3
+ <div>
4
+ foo
5
+ </div>
6
+
7
+ This should be a code block, though:
8
+
9
+ <div>
10
+ foo
11
+ </div>
12
+
13
+ As should this:
14
+
15
+ <div>foo</div>
16
+
17
+ Now, nested:
18
+
19
+ <div>
20
+ <div>
21
+ <div>
22
+ foo
23
+ </div>
24
+ </div>
25
+ </div>
26
+
27
+ This should just be an HTML comment:
28
+
29
+ <!-- Comment -->
30
+
31
+ Multiline:
32
+
33
+ <!--
34
+ Blah
35
+ Blah
36
+ -->
37
+
38
+ Code block:
39
+
40
+ <!-- Comment -->
41
+
42
+ Just plain comment, with trailing spaces on the line:
43
+
44
+ <!-- foo -->
45
+
46
+ Code:
47
+
48
+ <hr>
49
+
50
+ Hr's:
51
+
52
+ <hr>
53
+
54
+ <hr>
55
+
56
+ <hr>
57
+
58
+ <hr>
59
+
60
+ <hr>
61
+
62
+ <hr>
63
+
64
+ <hr class="foo" id="bar" />
65
+
66
+ <hr class="foo" id="bar"/>
67
+
68
+ <hr class="foo" id="bar" >
69
+
@@ -0,0 +1,4 @@
1
+ <blockquote>
2
+ <p>hi there
3
+ bud</p>
4
+ </blockquote>
@@ -0,0 +1,2 @@
1
+ > hi there
2
+ bud
@@ -0,0 +1,15 @@
1
+ <p>Just a <a href="/url/">URL</a>.</p>
2
+
3
+ <p><a href="/url/" title="title">URL and title</a>.</p>
4
+
5
+ <p><a href="/url/" title="title preceded by two spaces">URL and title</a>.</p>
6
+
7
+ <p><a href="/url/" title="title preceded by a tab">URL and title</a>.</p>
8
+
9
+ <p><a href="/url/" title="title has spaces afterward">URL and title</a>.</p>
10
+
11
+ <p><a href="/url/has space">URL and title</a>.</p>
12
+
13
+ <p><a href="/url/has space/" title="url has space and title">URL and title</a>.</p>
14
+
15
+ <p><a href>Empty</a>.</p>
@@ -0,0 +1,15 @@
1
+ Just a [URL](/url/).
2
+
3
+ [URL and title](/url/ "title").
4
+
5
+ [URL and title](/url/ "title preceded by two spaces").
6
+
7
+ [URL and title](/url/ "title preceded by a tab").
8
+
9
+ [URL and title](/url/ "title has spaces afterward" ).
10
+
11
+ [URL and title]( /url/has space ).
12
+
13
+ [URL and title]( /url/has space/ "url has space and title").
14
+
15
+ [Empty]().
@@ -0,0 +1,52 @@
1
+ <p>Foo <a href="/url/" title="Title">bar</a>.</p>
2
+
3
+ <p>Foo <a href="/url/" title="Title">bar</a>.</p>
4
+
5
+ <p>Foo <a href="/url/" title="Title">bar</a>.</p>
6
+
7
+ <p>With <a href="/url/">embedded [brackets]</a>.</p>
8
+
9
+ <p>Indented <a href="/url">once</a>.</p>
10
+
11
+ <p>Indented <a href="/url">twice</a>.</p>
12
+
13
+ <p>Indented <a href="/url">thrice</a>.</p>
14
+
15
+ <p>Indented [four][] times.</p>
16
+
17
+ <pre><code>[four]: /url
18
+ </code></pre>
19
+
20
+ <hr>
21
+
22
+ <p><a href="foo">this</a> should work</p>
23
+
24
+ <p>So should <a href="foo">this</a>.</p>
25
+
26
+ <p>And <a href="foo">this</a>.</p>
27
+
28
+ <p>And <a href="foo">this</a>.</p>
29
+
30
+ <p>And <a href="foo">this</a>.</p>
31
+
32
+ <p>But not [that] [].</p>
33
+
34
+ <p>Nor [that][].</p>
35
+
36
+ <p>Nor [that].</p>
37
+
38
+ <p>[Something in brackets like <a href="foo">this</a> should work]</p>
39
+
40
+ <p>[Same with <a href="foo">this</a>.]</p>
41
+
42
+ <p>In this case, <a href="/somethingelse/">this</a> points to something else.</p>
43
+
44
+ <p>Backslashing should suppress [this] and [this].</p>
45
+
46
+ <hr>
47
+
48
+ <p>Here&apos;s one where the <a href="/url/">link
49
+ breaks</a> across lines.</p>
50
+
51
+ <p>Here&apos;s another where the <a href="/url/">link
52
+ breaks</a> across lines, but with a line-ending space.</p>
@@ -0,0 +1,71 @@
1
+ Foo [bar] [1].
2
+
3
+ Foo [bar][1].
4
+
5
+ Foo [bar]
6
+ [1].
7
+
8
+ [1]: /url/ "Title"
9
+
10
+
11
+ With [embedded [brackets]] [b].
12
+
13
+
14
+ Indented [once][].
15
+
16
+ Indented [twice][].
17
+
18
+ Indented [thrice][].
19
+
20
+ Indented [four][] times.
21
+
22
+ [once]: /url
23
+
24
+ [twice]: /url
25
+
26
+ [thrice]: /url
27
+
28
+ [four]: /url
29
+
30
+
31
+ [b]: /url/
32
+
33
+ * * *
34
+
35
+ [this] [this] should work
36
+
37
+ So should [this][this].
38
+
39
+ And [this] [].
40
+
41
+ And [this][].
42
+
43
+ And [this].
44
+
45
+ But not [that] [].
46
+
47
+ Nor [that][].
48
+
49
+ Nor [that].
50
+
51
+ [Something in brackets like [this][] should work]
52
+
53
+ [Same with [this].]
54
+
55
+ In this case, [this](/somethingelse/) points to something else.
56
+
57
+ Backslashing should suppress \[this] and [this\].
58
+
59
+ [this]: foo
60
+
61
+
62
+ * * *
63
+
64
+ Here's one where the [link
65
+ breaks] across lines.
66
+
67
+ Here's another where the [link
68
+ breaks] across lines, but with a line-ending space.
69
+
70
+
71
+ [link breaks]: /url/
@@ -0,0 +1,9 @@
1
+ <p>This is the <a href="/simple">simple case</a>.</p>
2
+
3
+ <p>This one has a <a href="/foo">line
4
+ break</a>.</p>
5
+
6
+ <p>This one has a <a href="/foo">line
7
+ break</a> with a line-ending space.</p>
8
+
9
+ <p><a href="/that">this</a> and the <a href="/other">other</a></p>
@@ -0,0 +1,20 @@
1
+ This is the [simple case].
2
+
3
+ [simple case]: /simple
4
+
5
+
6
+
7
+ This one has a [line
8
+ break].
9
+
10
+ This one has a [line
11
+ break] with a line-ending space.
12
+
13
+ [line break]: /foo
14
+
15
+
16
+ [this] [that] and the [other]
17
+
18
+ [this]: /this
19
+ [that]: /that
20
+ [other]: /other
@@ -0,0 +1 @@
1
+ <ul><li><p>item1</p> <ul><li>item2 </li></ul> <p>text</p> </li></ul>
@@ -0,0 +1,5 @@
1
+ * item1
2
+
3
+ * item2
4
+
5
+ text
@@ -0,0 +1,3 @@
1
+ <p>Foo <a href="/url/" title="Title with &quot;quotes&quot; inside">bar</a>.</p>
2
+
3
+ <p>Foo <a href="/url/" title="Title with &quot;quotes&quot; inside">bar</a>.</p>
@@ -0,0 +1,7 @@
1
+ Foo [bar][].
2
+
3
+ Foo [bar](/url/ "Title with "quotes" inside").
4
+
5
+
6
+ [bar]: /url/ "Title with "quotes" inside"
7
+
@@ -0,0 +1,62 @@
1
+ <ul>
2
+ <li><p>hello
3
+ world </p>
4
+
5
+ <p>how
6
+ are</p></li>
7
+ <li>you </li>
8
+ </ul>
9
+
10
+
11
+
12
+ <p>better behavior:</p>
13
+
14
+ <ul><li><p>hello</p> <ul><li><p>world
15
+ how</p> <p>are
16
+ you</p></li><li><p>today</p></li></ul></li><li>hi</li></ul>
17
+
18
+
19
+
20
+ <ul>
21
+ <li><p>hello</p></li>
22
+ <li><p>world</p></li>
23
+ <li>hi</li>
24
+ </ul>
25
+
26
+
27
+
28
+ <ul>
29
+ <li>hello</li>
30
+ <li><p>world</p></li>
31
+ <li><p>hi</p></li>
32
+ </ul>
33
+
34
+
35
+
36
+ <ul>
37
+ <li>hello</li>
38
+ <li><p>world</p>
39
+
40
+ <p>how</p></li>
41
+ <li>hi</li>
42
+ </ul>
43
+
44
+
45
+
46
+ <ul>
47
+ <li>hello</li>
48
+ <li>world</li>
49
+ <li><p>how</p>
50
+
51
+ <p>are</p></li>
52
+ </ul>
53
+
54
+
55
+
56
+ <ul>
57
+ <li>hello</li>
58
+ <li><p>world</p></li>
59
+ <li><p>how</p>
60
+
61
+ <p>are</p></li>
62
+ </ul>
@@ -0,0 +1,59 @@
1
+ * hello
2
+ world
3
+
4
+ how
5
+ are
6
+ * you
7
+
8
+
9
+
10
+ better behavior:
11
+
12
+ * hello
13
+ * world
14
+ how
15
+
16
+ are
17
+ you
18
+
19
+ * today
20
+ * hi
21
+
22
+
23
+
24
+ * hello
25
+
26
+ * world
27
+ * hi
28
+
29
+
30
+
31
+ * hello
32
+ * world
33
+
34
+ * hi
35
+
36
+
37
+
38
+ * hello
39
+ * world
40
+
41
+ how
42
+ * hi
43
+
44
+
45
+
46
+ * hello
47
+ * world
48
+ * how
49
+
50
+ are
51
+
52
+
53
+
54
+ * hello
55
+ * world
56
+
57
+ * how
58
+
59
+ are