| 1 |
### Regression tests |
| 2 |
|
| 3 |
Issue #113: EOL character weirdness on Windows |
| 4 |
(Important: first line ends with CR + CR + LF) |
| 5 |
|
| 6 |
```````````````````````````````` example |
| 7 |
line1
|
| 8 |
line2 |
| 9 |
. |
| 10 |
<p>line1</p> |
| 11 |
<p>line2</p> |
| 12 |
```````````````````````````````` |
| 13 |
|
| 14 |
Issue #114: cmark skipping first character in line |
| 15 |
(Important: the blank lines around "Repeatedly" contain a tab.) |
| 16 |
|
| 17 |
```````````````````````````````` example |
| 18 |
By taking it apart |
| 19 |
|
| 20 |
- alternative solutions |
| 21 |
→ |
| 22 |
Repeatedly solving |
| 23 |
→ |
| 24 |
- how techniques |
| 25 |
. |
| 26 |
<p>By taking it apart</p> |
| 27 |
<ul> |
| 28 |
<li>alternative solutions</li> |
| 29 |
</ul> |
| 30 |
<p>Repeatedly solving</p> |
| 31 |
<ul> |
| 32 |
<li>how techniques</li> |
| 33 |
</ul> |
| 34 |
```````````````````````````````` |
| 35 |
|
| 36 |
Issue jgm/CommonMark#430: h2..h6 not recognized as block tags. |
| 37 |
|
| 38 |
```````````````````````````````` example |
| 39 |
<h1>lorem</h1> |
| 40 |
|
| 41 |
<h2>lorem</h2> |
| 42 |
|
| 43 |
<h3>lorem</h3> |
| 44 |
|
| 45 |
<h4>lorem</h4> |
| 46 |
|
| 47 |
<h5>lorem</h5> |
| 48 |
|
| 49 |
<h6>lorem</h6> |
| 50 |
. |
| 51 |
<h1>lorem</h1> |
| 52 |
<h2>lorem</h2> |
| 53 |
<h3>lorem</h3> |
| 54 |
<h4>lorem</h4> |
| 55 |
<h5>lorem</h5> |
| 56 |
<h6>lorem</h6> |
| 57 |
```````````````````````````````` |
| 58 |
|
| 59 |
Issue jgm/commonmark.js#109 - tabs after setext header line |
| 60 |
|
| 61 |
|
| 62 |
```````````````````````````````` example |
| 63 |
hi |
| 64 |
--→ |
| 65 |
. |
| 66 |
<h2>hi</h2> |
| 67 |
```````````````````````````````` |
| 68 |
|
| 69 |
Issue #177 - incorrect emphasis parsing |
| 70 |
|
| 71 |
```````````````````````````````` example |
| 72 |
a***b* c* |
| 73 |
. |
| 74 |
<p>a*<em><em>b</em> c</em></p> |
| 75 |
```````````````````````````````` |
| 76 |
|
| 77 |
Issue #193 - unescaped left angle brackets in link destination |
| 78 |
|
| 79 |
```````````````````````````````` example |
| 80 |
[a] |
| 81 |
|
| 82 |
[a]: <te<st> |
| 83 |
. |
| 84 |
<p>[a]</p> |
| 85 |
<p>[a]: <te<st></p> |
| 86 |
```````````````````````````````` |
| 87 |
|
| 88 |
Issue #192 - escaped spaces in link destination |
| 89 |
|
| 90 |
|
| 91 |
```````````````````````````````` example |
| 92 |
[a](te\ st) |
| 93 |
. |
| 94 |
<p>[a](te\ st)</p> |
| 95 |
```````````````````````````````` |
| 96 |
|
| 97 |
Issue #527 - meta tags in inline contexts |
| 98 |
|
| 99 |
```````````````````````````````` example |
| 100 |
City: |
| 101 |
<span itemprop="contentLocation" itemscope itemtype="https://schema.org/City"> |
| 102 |
<meta itemprop="name" content="Springfield"> |
| 103 |
</span> |
| 104 |
. |
| 105 |
<p>City: |
| 106 |
<span itemprop="contentLocation" itemscope itemtype="https://schema.org/City"> |
| 107 |
<meta itemprop="name" content="Springfield"> |
| 108 |
</span></p> |
| 109 |
```````````````````````````````` |
| 110 |
|
| 111 |
Issue #530 - link parsing corner cases |
| 112 |
|
| 113 |
```````````````````````````````` example |
| 114 |
[a](\ b) |
| 115 |
|
| 116 |
[a](<<b) |
| 117 |
|
| 118 |
[a](<b |
| 119 |
) |
| 120 |
. |
| 121 |
<p>[a](\ b)</p> |
| 122 |
<p>[a](<<b)</p> |
| 123 |
<p>[a](<b |
| 124 |
)</p> |
| 125 |
```````````````````````````````` |
| 126 |
|
| 127 |
Issue commonmark#526 - unescaped ( in link title |
| 128 |
|
| 129 |
```````````````````````````````` example |
| 130 |
[link](url ((title)) |
| 131 |
. |
| 132 |
<p>[link](url ((title))</p> |
| 133 |
```````````````````````````````` |
| 134 |
|
| 135 |
Issue commonamrk#517 - script, pre, style close tag without |
| 136 |
opener. |
| 137 |
|
| 138 |
```````````````````````````````` example |
| 139 |
</script> |
| 140 |
|
| 141 |
</pre> |
| 142 |
|
| 143 |
</style> |
| 144 |
. |
| 145 |
</script> |
| 146 |
</pre> |
| 147 |
</style> |
| 148 |
```````````````````````````````` |
| 149 |
|
| 150 |
Issue #289. |
| 151 |
|
| 152 |
```````````````````````````````` example |
| 153 |
[a](<b) c> |
| 154 |
. |
| 155 |
<p>[a](<b) c></p> |
| 156 |
```````````````````````````````` |
| 157 |
|
| 158 |
Issue #334 - UTF-8 BOM |
| 159 |
|
| 160 |
```````````````````````````````` example |
| 161 |
# Hi |
| 162 |
. |
| 163 |
<h1>Hi</h1> |
| 164 |
```````````````````````````````` |
| 165 |
|
| 166 |
Issue commonmark.js#213 - type 7 blocks can't interrupt |
| 167 |
paragraph |
| 168 |
|
| 169 |
```````````````````````````````` example |
| 170 |
- <script> |
| 171 |
- some text |
| 172 |
some other text |
| 173 |
</script> |
| 174 |
. |
| 175 |
<ul> |
| 176 |
<li> |
| 177 |
<script> |
| 178 |
</li> |
| 179 |
<li>some text |
| 180 |
some other text |
| 181 |
</script></li> |
| 182 |
</ul> |
| 183 |
```````````````````````````````` |
| 184 |
|
| 185 |
Issue #383 - emphasis parsing. |
| 186 |
|
| 187 |
```````````````````````````````` example |
| 188 |
*****Hello*world**** |
| 189 |
. |
| 190 |
<p>**<em><strong>Hello<em>world</em></strong></em></p> |
| 191 |
```````````````````````````````` |
| 192 |
|
| 193 |
Issue #424 - emphasis before links |
| 194 |
|
| 195 |
```````````````````````````````` example |
| 196 |
*text* [link](#section) |
| 197 |
. |
| 198 |
<p><em>text</em> <a href="#section">link</a></p> |
| 199 |
```````````````````````````````` |
| 200 |
|