| 1 |
1 |
| 2 |
//- - - - - - - - -// |
| 3 |
* A |
| 4 |
B |
| 5 |
//- - - - - - - - -// |
| 6 |
<ul> |
| 7 |
<li>A |
| 8 |
B</li> |
| 9 |
</ul> |
| 10 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
2 |
| 15 |
//- - - - - - - - -// |
| 16 |
**test**\ |
| 17 |
test**test**\ |
| 18 |
**test**test\ |
| 19 |
test**test** |
| 20 |
//- - - - - - - - -// |
| 21 |
<p><strong>test</strong><br /> |
| 22 |
test<strong>test</strong><br /> |
| 23 |
<strong>test</strong>test<br /> |
| 24 |
test<strong>test</strong></p> |
| 25 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
3 |
| 30 |
//- - - - - - - - -// |
| 31 |
>* > |
| 32 |
> 1 |
| 33 |
> 2 |
| 34 |
>3 |
| 35 |
//- - - - - - - - -// |
| 36 |
<blockquote> |
| 37 |
<ul> |
| 38 |
<li> |
| 39 |
<blockquote> |
| 40 |
</blockquote> |
| 41 |
</li> |
| 42 |
</ul> |
| 43 |
<p>1 |
| 44 |
2 |
| 45 |
3</p> |
| 46 |
</blockquote> |
| 47 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
4 |
| 52 |
//- - - - - - - - -// |
| 53 |
`test`a`test` |
| 54 |
//- - - - - - - - -// |
| 55 |
<p><code>test</code>a<code>test</code></p> |
| 56 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
5 |
| 61 |
//- - - - - - - - -// |
| 62 |
_**TL/DR** - [Go see summary.](#my-summary-area)_ |
| 63 |
//- - - - - - - - -// |
| 64 |
<p><em><strong>TL/DR</strong> - <a href="#my-summary-area">Go see summary.</a></em></p> |
| 65 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
6 |
| 70 |
//- - - - - - - - -// |
| 71 |
[This link won't be rendered |
| 72 |
correctly](https://geeksocket.in/some-long-link-here "This is the |
| 73 |
place where everything breaks") |
| 74 |
//- - - - - - - - -// |
| 75 |
<p><a href="https://geeksocket.in/some-long-link-here" title="This is the |
| 76 |
place where everything breaks">This link won't be rendered |
| 77 |
correctly</a></p> |
| 78 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
7 |
| 83 |
//- - - - - - - - -// |
| 84 |
[](./target.md) |
| 85 |
//- - - - - - - - -// |
| 86 |
<p><a href="./target.md"></a></p> |
| 87 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
8 |
| 92 |
//- - - - - - - - -// |
| 93 |
[]() |
| 94 |
//- - - - - - - - -// |
| 95 |
<p><a href=""></a></p> |
| 96 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
9 |
| 101 |
//- - - - - - - - -// |
| 102 |
[daß] is the old german spelling of [dass] |
| 103 |
|
| 104 |
[daß]: www.das-dass.de |
| 105 |
//- - - - - - - - -// |
| 106 |
<p><a href="www.das-dass.de">daß</a> is the old german spelling of <a href="www.das-dass.de">dass</a></p> |
| 107 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
10 |
| 112 |
//- - - - - - - - -// |
| 113 |
1. First step. |
| 114 |
|
| 115 |
~~~ |
| 116 |
aaa |
| 117 |
--- |
| 118 |
bbb |
| 119 |
~~~ |
| 120 |
|
| 121 |
2. few other steps. |
| 122 |
//- - - - - - - - -// |
| 123 |
<ol> |
| 124 |
<li> |
| 125 |
<p>First step.</p> |
| 126 |
<pre><code>aaa |
| 127 |
--- |
| 128 |
bbb |
| 129 |
</code></pre> |
| 130 |
</li> |
| 131 |
<li> |
| 132 |
<p>few other steps.</p> |
| 133 |
</li> |
| 134 |
</ol> |
| 135 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
11: delimiters between ascii punctuations should be parsed |
| 140 |
//- - - - - - - - -// |
| 141 |
`{%`_name_`%}` |
| 142 |
//- - - - - - - - -// |
| 143 |
<p><code>{%</code><em>name</em><code>%}</code></p> |
| 144 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
12: the alt attribute of img should be escaped |
| 149 |
//- - - - - - - - -// |
| 150 |
 |
| 151 |
 |
| 152 |
 |
| 153 |
 |
| 154 |
 |
| 155 |
//- - - - - - - - -// |
| 156 |
<p><img src="quot.jpg" alt=""" /> |
| 157 |
<img src="apos.jpg" alt="'" /> |
| 158 |
<img src="lt.jpg" alt="<" /> |
| 159 |
<img src="gt.jpg" alt=">" /> |
| 160 |
<img src="amp.jpg" alt="&" /></p> |
| 161 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 162 |
|
| 163 |
|
| 164 |
13: fenced code block starting with tab inside list |
| 165 |
//- - - - - - - - -// |
| 166 |
* foo |
| 167 |
```Makefile |
| 168 |
foo |
| 169 |
foo |
| 170 |
``` |
| 171 |
//- - - - - - - - -// |
| 172 |
<ul> |
| 173 |
<li>foo |
| 174 |
<pre><code class="language-Makefile">foo |
| 175 |
foo |
| 176 |
</code></pre> |
| 177 |
</li> |
| 178 |
</ul> |
| 179 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 180 |
|
| 181 |
14: fenced code block inside list, mismatched tab start |
| 182 |
//- - - - - - - - -// |
| 183 |
* foo |
| 184 |
```Makefile |
| 185 |
foo |
| 186 |
foo |
| 187 |
``` |
| 188 |
//- - - - - - - - -// |
| 189 |
<ul> |
| 190 |
<li>foo |
| 191 |
<pre><code class="language-Makefile">foo |
| 192 |
foo |
| 193 |
</code></pre> |
| 194 |
</li> |
| 195 |
</ul> |
| 196 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 197 |
|
| 198 |
|
| 199 |
15: fenced code block inside nested list |
| 200 |
//- - - - - - - - -// |
| 201 |
* foo |
| 202 |
- bar |
| 203 |
```Makefile |
| 204 |
foo |
| 205 |
foo |
| 206 |
``` |
| 207 |
//- - - - - - - - -// |
| 208 |
<ul> |
| 209 |
<li>foo |
| 210 |
<ul> |
| 211 |
<li>bar |
| 212 |
<pre><code class="language-Makefile">foo |
| 213 |
foo |
| 214 |
</code></pre> |
| 215 |
</li> |
| 216 |
</ul> |
| 217 |
</li> |
| 218 |
</ul> |
| 219 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 220 |
|
| 221 |
16: indented code block starting with a tab. |
| 222 |
//- - - - - - - - -// |
| 223 |
* foo |
| 224 |
|
| 225 |
foo |
| 226 |
foo |
| 227 |
|
| 228 |
//- - - - - - - - -// |
| 229 |
<ul> |
| 230 |
<li> |
| 231 |
<p>foo</p> |
| 232 |
<pre><code>foo |
| 233 |
foo |
| 234 |
</code></pre> |
| 235 |
</li> |
| 236 |
</ul> |
| 237 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 238 |
|
| 239 |
17: fenced code block in list, empty line, spaces on start |
| 240 |
//- - - - - - - - -// |
| 241 |
* foo |
| 242 |
```Makefile |
| 243 |
foo |
| 244 |
|
| 245 |
foo |
| 246 |
``` |
| 247 |
//- - - - - - - - -// |
| 248 |
<ul> |
| 249 |
<li>foo |
| 250 |
<pre><code class="language-Makefile">foo |
| 251 |
|
| 252 |
foo |
| 253 |
</code></pre> |
| 254 |
</li> |
| 255 |
</ul> |
| 256 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 257 |
|
| 258 |
18: fenced code block in list, empty line, no spaces on start |
| 259 |
//- - - - - - - - -// |
| 260 |
* foo |
| 261 |
```Makefile |
| 262 |
foo |
| 263 |
|
| 264 |
foo |
| 265 |
``` |
| 266 |
//- - - - - - - - -// |
| 267 |
<ul> |
| 268 |
<li>foo |
| 269 |
<pre><code class="language-Makefile">foo |
| 270 |
|
| 271 |
foo |
| 272 |
</code></pre> |
| 273 |
</li> |
| 274 |
</ul> |
| 275 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 276 |
|
| 277 |
|
| 278 |
19: fenced code block inside nested list, empty line, spaces on start |
| 279 |
//- - - - - - - - -// |
| 280 |
* foo |
| 281 |
- bar |
| 282 |
```Makefile |
| 283 |
foo |
| 284 |
|
| 285 |
foo |
| 286 |
``` |
| 287 |
//- - - - - - - - -// |
| 288 |
<ul> |
| 289 |
<li>foo |
| 290 |
<ul> |
| 291 |
<li>bar |
| 292 |
<pre><code class="language-Makefile">foo |
| 293 |
|
| 294 |
foo |
| 295 |
</code></pre> |
| 296 |
</li> |
| 297 |
</ul> |
| 298 |
</li> |
| 299 |
</ul> |
| 300 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 301 |
|
| 302 |
|
| 303 |
20: fenced code block inside nested list, empty line, no space on start |
| 304 |
//- - - - - - - - -// |
| 305 |
* foo |
| 306 |
- bar |
| 307 |
```Makefile |
| 308 |
foo |
| 309 |
|
| 310 |
foo |
| 311 |
``` |
| 312 |
//- - - - - - - - -// |
| 313 |
<ul> |
| 314 |
<li>foo |
| 315 |
<ul> |
| 316 |
<li>bar |
| 317 |
<pre><code class="language-Makefile">foo |
| 318 |
|
| 319 |
foo |
| 320 |
</code></pre> |
| 321 |
</li> |
| 322 |
</ul> |
| 323 |
</li> |
| 324 |
</ul> |
| 325 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 326 |
|
| 327 |
21: Fenced code block within list can start with tab |
| 328 |
//- - - - - - - - -// |
| 329 |
- List |
| 330 |
|
| 331 |
``` |
| 332 |
A |
| 333 |
B |
| 334 |
C |
| 335 |
``` |
| 336 |
//- - - - - - - - -// |
| 337 |
<ul> |
| 338 |
<li> |
| 339 |
<p>List</p> |
| 340 |
<pre><code>A |
| 341 |
B |
| 342 |
C |
| 343 |
</code></pre> |
| 344 |
</li> |
| 345 |
</ul> |
| 346 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 347 |
|
| 348 |
22: Indented code block within list can start with tab |
| 349 |
//- - - - - - - - -// |
| 350 |
- List |
| 351 |
|
| 352 |
A |
| 353 |
B |
| 354 |
C |
| 355 |
|
| 356 |
a |
| 357 |
//- - - - - - - - -// |
| 358 |
<ul> |
| 359 |
<li> |
| 360 |
<p>List</p> |
| 361 |
<pre><code>A |
| 362 |
B |
| 363 |
C |
| 364 |
</code></pre> |
| 365 |
</li> |
| 366 |
</ul> |
| 367 |
<p>a</p> |
| 368 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 369 |
|
| 370 |
23: Emphasis corner case(yuin/goldmark#245) |
| 371 |
//- - - - - - - - -// |
| 372 |
a* b c d *e* |
| 373 |
//- - - - - - - - -// |
| 374 |
<p>a* b c d <em>e</em></p> |
| 375 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 376 |
|
| 377 |
24: HTML block tags can contain trailing spaces |
| 378 |
//- - - - - - - - -// |
| 379 |
<aaa > |
| 380 |
//- - - - - - - - -// |
| 381 |
<aaa > |
| 382 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 383 |
|
| 384 |
25: Indented code blocks can start with tab |
| 385 |
//- - - - - - - - -// |
| 386 |
x |
| 387 |
//- - - - - - - - -// |
| 388 |
<pre><code> x |
| 389 |
</code></pre> |
| 390 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 391 |
|
| 392 |
26: NUL bytes must be replaced with U+FFFD |
| 393 |
OPTIONS: {"enableEscape": true} |
| 394 |
//- - - - - - - - -// |
| 395 |
hello\x00world |
| 396 |
|
| 397 |
<?\x00 |
| 398 |
//- - - - - - - - -// |
| 399 |
<p>hello\ufffdworld</p> |
| 400 |
<?\uFFFD |
| 401 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 402 |
|
| 403 |
27: Newlines in code spans must be preserved as a space |
| 404 |
OPTIONS: {"enableEscape": true} |
| 405 |
//- - - - - - - - -// |
| 406 |
`\n` |
| 407 |
|
| 408 |
`x\n` |
| 409 |
|
| 410 |
`\nx` |
| 411 |
//- - - - - - - - -// |
| 412 |
<p><code> </code></p> |
| 413 |
<p><code>x </code></p> |
| 414 |
<p><code> x</code></p> |
| 415 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 416 |
|
| 417 |
28: Single # is a heading level 1 |
| 418 |
//- - - - - - - - -// |
| 419 |
# |
| 420 |
//- - - - - - - - -// |
| 421 |
<h1></h1> |
| 422 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 423 |
|
| 424 |
29: An empty list item cannot interrupt a paragraph |
| 425 |
//- - - - - - - - -// |
| 426 |
x |
| 427 |
* |
| 428 |
//- - - - - - - - -// |
| 429 |
<p>x |
| 430 |
*</p> |
| 431 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 432 |
|
| 433 |
30: A link reference definition followed by a single quote without closer |
| 434 |
//- - - - - - - - -// |
| 435 |
[x] |
| 436 |
|
| 437 |
[x]: <> |
| 438 |
' |
| 439 |
//- - - - - - - - -// |
| 440 |
<p><a href="">x</a></p> |
| 441 |
<p>'</p> |
| 442 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 443 |
|
| 444 |
31: A link reference definition followed by a double quote without closer |
| 445 |
//- - - - - - - - -// |
| 446 |
[x] |
| 447 |
|
| 448 |
[x]: <> |
| 449 |
" |
| 450 |
//- - - - - - - - -// |
| 451 |
<p><a href="">x</a></p> |
| 452 |
<p>"</p> |
| 453 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 454 |
|
| 455 |
|
| 456 |
32: Hex character entities must be limited to 6 characters |
| 457 |
//- - - - - - - - -// |
| 458 |
A |
| 459 |
//- - - - - - - - -// |
| 460 |
<p>&#x0000041;</p> |
| 461 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 462 |
|
| 463 |
33: \x01 should be escaped all the time |
| 464 |
OPTIONS: {"enableEscape": true} |
| 465 |
//- - - - - - - - -// |
| 466 |
[x](\x01) |
| 467 |
//- - - - - - - - -// |
| 468 |
<p><a href="%01">x</a></p> |
| 469 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 470 |
|
| 471 |
34: A form feed should not be treated as a space |
| 472 |
OPTIONS: {"enableEscape": true} |
| 473 |
//- - - - - - - - -// |
| 474 |
x \f |
| 475 |
//- - - - - - - - -// |
| 476 |
<p>x \f</p> |
| 477 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 478 |
|
| 479 |
35: A link reference definition can contain a new line |
| 480 |
//- - - - - - - - -// |
| 481 |
This is a [test][foo |
| 482 |
bar] 1...2..3... |
| 483 |
|
| 484 |
[foo bar]: / |
| 485 |
//- - - - - - - - -// |
| 486 |
<p>This is a <a href="/">test</a> 1...2..3...</p> |
| 487 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 488 |
|
| 489 |
36: Emphasis and links |
| 490 |
//- - - - - - - - -// |
| 491 |
_a[b_c_](d) |
| 492 |
//- - - - - - - - -// |
| 493 |
<p>_a<a href="d">b_c_</a></p> |
| 494 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 495 |
|
| 496 |
37: Tabs and spaces |
| 497 |
OPTIONS: {"enableEscape": true} |
| 498 |
//- - - - - - - - -// |
| 499 |
\t\t x\n |
| 500 |
//- - - - - - - - -// |
| 501 |
<pre><code>\t x\n</code></pre> |
| 502 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 503 |
|
| 504 |
38: Decimal HTML entity literals should allow 7 digits |
| 505 |
//- - - - - - - - -// |
| 506 |
� |
| 507 |
//- - - - - - - - -// |
| 508 |
<p>\uFFFD</p> |
| 509 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 510 |
|
| 511 |
39: Decimal HTML entities should not be interpreted as octal when starting with a 0 |
| 512 |
//- - - - - - - - -// |
| 513 |
d |
| 514 |
//- - - - - - - - -// |
| 515 |
<p>d</p> |
| 516 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 517 |
|
| 518 |
40: Invalid HTML tag names |
| 519 |
//- - - - - - - - -// |
| 520 |
<1> |
| 521 |
|
| 522 |
<a:> |
| 523 |
|
| 524 |
<a\f> |
| 525 |
|
| 526 |
< p> |
| 527 |
//- - - - - - - - -// |
| 528 |
<p><1></p> |
| 529 |
<p><a:></p> |
| 530 |
<p><a\f></p> |
| 531 |
<p>< p></p> |
| 532 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 533 |
|
| 534 |
41: Link references can not contain spaces after link label |
| 535 |
//- - - - - - - - -// |
| 536 |
[x] |
| 537 |
:> |
| 538 |
|
| 539 |
[o] :x |
| 540 |
//- - - - - - - - -// |
| 541 |
<p>[x] |
| 542 |
:></p> |
| 543 |
<p>[o] :x</p> |
| 544 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 545 |
|
| 546 |
42: Unclosed link reference titles can interrupt link references |
| 547 |
//- - - - - - - - -// |
| 548 |
[r]: |
| 549 |
<> |
| 550 |
' |
| 551 |
|
| 552 |
[o]: |
| 553 |
x |
| 554 |
' |
| 555 |
//- - - - - - - - -// |
| 556 |
<p>'</p> |
| 557 |
<p>'</p> |
| 558 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 559 |
|
| 560 |
43: A link containing an image containing a link should disable the outer link |
| 561 |
//- - - - - - - - -// |
| 562 |
[  ](x) ](y) |
| 563 |
//- - - - - - - - -// |
| 564 |
<p>[ <img src="x" alt=" b " /> ](y)</p> |
| 565 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 566 |
|
| 567 |
44: An empty list item(with trailing spaces) cannot interrupt a paragraph |
| 568 |
//- - - - - - - - -// |
| 569 |
a |
| 570 |
* |
| 571 |
//- - - - - - - - -// |
| 572 |
<p>a |
| 573 |
*</p> |
| 574 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 575 |
|
| 576 |
45: Multiple empty list items |
| 577 |
//- - - - - - - - -// |
| 578 |
- |
| 579 |
|
| 580 |
- |
| 581 |
//- - - - - - - - -// |
| 582 |
<ul> |
| 583 |
<li></li> |
| 584 |
<li></li> |
| 585 |
</ul> |
| 586 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 587 |
|
| 588 |
46: Vertical tab should not be treated as spaces |
| 589 |
OPTIONS: {"enableEscape": true} |
| 590 |
//- - - - - - - - -// |
| 591 |
\v |
| 592 |
//- - - - - - - - -// |
| 593 |
<p>\v</p> |
| 594 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 595 |
|
| 596 |
47: Escape back slashes should not be treated as hard line breaks |
| 597 |
//- - - - - - - - -// |
| 598 |
\\\\ |
| 599 |
a |
| 600 |
//- - - - - - - - -// |
| 601 |
<p>\ |
| 602 |
a</p> |
| 603 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 604 |
|
| 605 |
48: Multiple paragraphs in tight list |
| 606 |
//- - - - - - - - -// |
| 607 |
- a |
| 608 |
> |
| 609 |
b |
| 610 |
//- - - - - - - - -// |
| 611 |
<ul> |
| 612 |
<li>a |
| 613 |
<blockquote> |
| 614 |
</blockquote> |
| 615 |
b</li> |
| 616 |
</ul> |
| 617 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 618 |
|
| 619 |
|
| 620 |
49: A list item that is indented up to 3 spaces after an empty list item |
| 621 |
//- - - - - - - - -// |
| 622 |
1. |
| 623 |
|
| 624 |
1. b |
| 625 |
|
| 626 |
- |
| 627 |
|
| 628 |
- b |
| 629 |
//- - - - - - - - -// |
| 630 |
<ol> |
| 631 |
<li></li> |
| 632 |
<li> |
| 633 |
<p>b</p> |
| 634 |
</li> |
| 635 |
</ol> |
| 636 |
<ul> |
| 637 |
<li></li> |
| 638 |
<li> |
| 639 |
<p>b</p> |
| 640 |
</li> |
| 641 |
</ul> |
| 642 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 643 |
|
| 644 |
|
| 645 |
50: Spaces before a visible hard linebreak should be preserved |
| 646 |
//- - - - - - - - -// |
| 647 |
a \ |
| 648 |
b |
| 649 |
//- - - - - - - - -// |
| 650 |
<p>a <br /> |
| 651 |
b</p> |
| 652 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 653 |
|
| 654 |
|
| 655 |
51: Empty line in a fenced code block under list items |
| 656 |
//- - - - - - - - -// |
| 657 |
* This is a list item |
| 658 |
``` |
| 659 |
This is a test |
| 660 |
|
| 661 |
This line will be dropped. |
| 662 |
This line will be displayed. |
| 663 |
``` |
| 664 |
//- - - - - - - - -// |
| 665 |
<ul> |
| 666 |
<li>This is a list item |
| 667 |
<pre><code>This is a test |
| 668 |
|
| 669 |
This line will be dropped. |
| 670 |
This line will be displayed. |
| 671 |
</code></pre> |
| 672 |
</li> |
| 673 |
</ul> |
| 674 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 675 |
|
| 676 |
|
| 677 |
52: windows-style newline and HTMLs |
| 678 |
OPTIONS: {"enableEscape": true} |
| 679 |
//- - - - - - - - -// |
| 680 |
<a \r\nhref='link'>link</a> |
| 681 |
|
| 682 |
<video autoplay muted loop>\r\n<source src=\"https://example.com/example.mp4\" type=\"video/mp4\">\r\nYour browser does not support the video tag.\r\n</video> |
| 683 |
//- - - - - - - - -// |
| 684 |
<p><a \r\nhref='link'>link</a></p> |
| 685 |
<video autoplay muted loop>\r\n<source src=\"https://example.com/example.mp4\" type=\"video/mp4\">\r\nYour browser does not support the video tag.\r\n</video> |
| 686 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 687 |
|
| 688 |
|
| 689 |
53: HTML comment without trailing new lines |
| 690 |
OPTIONS: {"trim": true} |
| 691 |
//- - - - - - - - -// |
| 692 |
<!-- |
| 693 |
--> |
| 694 |
//- - - - - - - - -// |
| 695 |
<!-- |
| 696 |
--> |
| 697 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 698 |
|
| 699 |
|
| 700 |
54: Escaped characters followed by a null character |
| 701 |
OPTIONS: {"enableEscape": true} |
| 702 |
//- - - - - - - - -// |
| 703 |
\\\x00\" |
| 704 |
//- - - - - - - - -// |
| 705 |
<p>\\\ufffd"</p> |
| 706 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 707 |
|
| 708 |
|
| 709 |
55: inline HTML comment |
| 710 |
//- - - - - - - - -// |
| 711 |
a <!-- b --> c |
| 712 |
|
| 713 |
a <!-- b --> |
| 714 |
//- - - - - - - - -// |
| 715 |
<p>a <!-- b --> c</p> |
| 716 |
<p>a <!-- b --></p> |
| 717 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 718 |
|
| 719 |
|
| 720 |
56: An empty list followed by blockquote |
| 721 |
//- - - - - - - - -// |
| 722 |
1. |
| 723 |
> This is a quote. |
| 724 |
//- - - - - - - - -// |
| 725 |
<ol> |
| 726 |
<li></li> |
| 727 |
</ol> |
| 728 |
<blockquote> |
| 729 |
<p>This is a quote.</p> |
| 730 |
</blockquote> |
| 731 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 732 |
|
| 733 |
57: Tabbed fenced code block within a list |
| 734 |
//- - - - - - - - -// |
| 735 |
1. |
| 736 |
``` |
| 737 |
``` |
| 738 |
//- - - - - - - - -// |
| 739 |
<ol> |
| 740 |
<li> |
| 741 |
<pre><code></code></pre> |
| 742 |
</li> |
| 743 |
</ol> |
| 744 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 745 |
|
| 746 |
|
| 747 |
58: HTML end tag without trailing new lines |
| 748 |
OPTIONS: {"trim": true} |
| 749 |
//- - - - - - - - -// |
| 750 |
<pre> |
| 751 |
</pre> |
| 752 |
//- - - - - - - - -// |
| 753 |
<pre> |
| 754 |
</pre> |
| 755 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 756 |
|
| 757 |
59: Raw HTML tag with one new line |
| 758 |
//- - - - - - - - -// |
| 759 |
<img src=./.assets/logo.svg |
| 760 |
/> |
| 761 |
//- - - - - - - - -// |
| 762 |
<p><img src=./.assets/logo.svg |
| 763 |
/></p> |
| 764 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 765 |
|
| 766 |
60: Raw HTML tag with multiple new lines |
| 767 |
//- - - - - - - - -// |
| 768 |
<img src=./.assets/logo.svg |
| 769 |
|
| 770 |
/> |
| 771 |
//- - - - - - - - -// |
| 772 |
<p><img src=./.assets/logo.svg</p> |
| 773 |
<p>/></p> |
| 774 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 775 |
|
| 776 |
61: Image alt with a new line |
| 777 |
//- - - - - - - - -// |
| 778 |
 |
| 780 |
//- - - - - - - - -// |
| 781 |
<p><img src="logo.png" alt="alt |
| 782 |
text" /></p> |
| 783 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 784 |
|
| 785 |
62: Image alt with an escaped character |
| 786 |
//- - - - - - - - -// |
| 787 |
 |
| 788 |
//- - - - - - - - -// |
| 789 |
<p><img src="https://example.com/img.png" alt="`alt" /></p> |
| 790 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 791 |
|
| 792 |
63: Emphasis in link label |
| 793 |
//- - - - - - - - -// |
| 794 |
[*[a]*](b) |
| 795 |
//- - - - - - - - -// |
| 796 |
<p><a href="b"><em>[a]</em></a></p> |
| 797 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 798 |
|
| 799 |
64: Nested list under an empty list item |
| 800 |
//- - - - - - - - -// |
| 801 |
- |
| 802 |
- foo |
| 803 |
//- - - - - - - - -// |
| 804 |
<ul> |
| 805 |
<li> |
| 806 |
<ul> |
| 807 |
<li>foo</li> |
| 808 |
</ul> |
| 809 |
</li> |
| 810 |
</ul> |
| 811 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 812 |
|
| 813 |
65: Nested fenced code block with tab |
| 814 |
//- - - - - - - - -// |
| 815 |
> ``` |
| 816 |
> 0 |
| 817 |
> ``` |
| 818 |
//- - - - - - - - -// |
| 819 |
<blockquote> |
| 820 |
<pre><code> 0 |
| 821 |
</code></pre> |
| 822 |
</blockquote> |
| 823 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 824 |
|
| 825 |
66: EOF should be rendered as a newline with an unclosed block(w/ TAB) |
| 826 |
//- - - - - - - - -// |
| 827 |
> ``` |
| 828 |
> 0 |
| 829 |
//- - - - - - - - -// |
| 830 |
<blockquote> |
| 831 |
<pre><code> 0 |
| 832 |
</code></pre> |
| 833 |
</blockquote> |
| 834 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 835 |
|
| 836 |
67: EOF should be rendered as a newline with an unclosed block |
| 837 |
//- - - - - - - - -// |
| 838 |
> ``` |
| 839 |
> 0 |
| 840 |
//- - - - - - - - -// |
| 841 |
<blockquote> |
| 842 |
<pre><code> 0 |
| 843 |
</code></pre> |
| 844 |
</blockquote> |
| 845 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 846 |
|
| 847 |
68: HTML comments in list items |
| 848 |
//- - - - - - - - -// |
| 849 |
- test |
| 850 |
<!-- |
| 851 |
Test |
| 852 |
--> |
| 853 |
- test2 |
| 854 |
//- - - - - - - - -// |
| 855 |
<ul> |
| 856 |
<li>test |
| 857 |
<!-- |
| 858 |
Test |
| 859 |
--> |
| 860 |
</li> |
| 861 |
<li>test2</li> |
| 862 |
</ul> |
| 863 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 864 |
|
| 865 |
69: Negative indentation with tabs in fenced code block |
| 866 |
OPTIONS: {"enableEscape": true} |
| 867 |
//- - - - - - - - -// |
| 868 |
* |
| 869 |
\t ~~~ |
| 870 |
\t0 |
| 871 |
//- - - - - - - - -// |
| 872 |
<ul> |
| 873 |
<li> |
| 874 |
<pre><code>0 |
| 875 |
</code></pre> |
| 876 |
</li> |
| 877 |
</ul> |
| 878 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |
| 879 |
|
| 880 |
70: Single letter ATX heading |
| 881 |
//- - - - - - - - -// |
| 882 |
# A |
| 883 |
//- - - - - - - - -// |
| 884 |
<h1>A</h1> |
| 885 |
//= = = = = = = = = = = = = = = = = = = = = = = =// |