subrepo: subdir: "deps/cmark" merged: "5ba25ff" upstream: origin: "https://github.com/commonmark/cmark.git" branch: "0.30.3" commit: "5ba25ff" git-subrepo: version: "0.4.6" commit: "d4444b563"
216 lines
3.7 KiB
Plaintext
216 lines
3.7 KiB
Plaintext
### Regression tests
|
|
|
|
Issue #113: EOL character weirdness on Windows
|
|
(Important: first line ends with CR + CR + LF)
|
|
|
|
```````````````````````````````` example
|
|
line1
|
|
|
|
line2
|
|
.
|
|
<p>line1</p>
|
|
<p>line2</p>
|
|
````````````````````````````````
|
|
|
|
Issue #114: cmark skipping first character in line
|
|
(Important: the blank lines around "Repeatedly" contain a tab.)
|
|
|
|
```````````````````````````````` example
|
|
By taking it apart
|
|
|
|
- alternative solutions
|
|
→
|
|
Repeatedly solving
|
|
→
|
|
- how techniques
|
|
.
|
|
<p>By taking it apart</p>
|
|
<ul>
|
|
<li>alternative solutions</li>
|
|
</ul>
|
|
<p>Repeatedly solving</p>
|
|
<ul>
|
|
<li>how techniques</li>
|
|
</ul>
|
|
````````````````````````````````
|
|
|
|
Issue jgm/CommonMark#430: h2..h6 not recognized as block tags.
|
|
|
|
```````````````````````````````` example
|
|
<h1>lorem</h1>
|
|
|
|
<h2>lorem</h2>
|
|
|
|
<h3>lorem</h3>
|
|
|
|
<h4>lorem</h4>
|
|
|
|
<h5>lorem</h5>
|
|
|
|
<h6>lorem</h6>
|
|
.
|
|
<h1>lorem</h1>
|
|
<h2>lorem</h2>
|
|
<h3>lorem</h3>
|
|
<h4>lorem</h4>
|
|
<h5>lorem</h5>
|
|
<h6>lorem</h6>
|
|
````````````````````````````````
|
|
|
|
Issue jgm/commonmark.js#109 - tabs after setext header line
|
|
|
|
|
|
```````````````````````````````` example
|
|
hi
|
|
--→
|
|
.
|
|
<h2>hi</h2>
|
|
````````````````````````````````
|
|
|
|
Issue #177 - incorrect emphasis parsing
|
|
|
|
```````````````````````````````` example
|
|
a***b* c*
|
|
.
|
|
<p>a*<em><em>b</em> c</em></p>
|
|
````````````````````````````````
|
|
|
|
Issue #193 - unescaped left angle brackets in link destination
|
|
|
|
```````````````````````````````` example
|
|
[a]
|
|
|
|
[a]: <te<st>
|
|
.
|
|
<p>[a]</p>
|
|
<p>[a]: <te<st></p>
|
|
````````````````````````````````
|
|
|
|
Issue #192 - escaped spaces in link destination
|
|
|
|
|
|
```````````````````````````````` example
|
|
[a](te\ st)
|
|
.
|
|
<p>[a](te\ st)</p>
|
|
````````````````````````````````
|
|
|
|
Issue #527 - meta tags in inline contexts
|
|
|
|
```````````````````````````````` example
|
|
City:
|
|
<span itemprop="contentLocation" itemscope itemtype="https://schema.org/City">
|
|
<meta itemprop="name" content="Springfield">
|
|
</span>
|
|
.
|
|
<p>City:
|
|
<span itemprop="contentLocation" itemscope itemtype="https://schema.org/City">
|
|
<meta itemprop="name" content="Springfield">
|
|
</span></p>
|
|
````````````````````````````````
|
|
|
|
Issue #530 - link parsing corner cases
|
|
|
|
```````````````````````````````` example
|
|
[a](\ b)
|
|
|
|
[a](<<b)
|
|
|
|
[a](<b
|
|
)
|
|
.
|
|
<p>[a](\ b)</p>
|
|
<p>[a](<<b)</p>
|
|
<p>[a](<b
|
|
)</p>
|
|
````````````````````````````````
|
|
|
|
Issue commonmark#526 - unescaped ( in link title
|
|
|
|
```````````````````````````````` example
|
|
[link](url ((title))
|
|
.
|
|
<p>[link](url ((title))</p>
|
|
````````````````````````````````
|
|
|
|
Issue commonamrk#517 - script, pre, style close tag without
|
|
opener.
|
|
|
|
```````````````````````````````` example
|
|
</script>
|
|
|
|
</pre>
|
|
|
|
</style>
|
|
.
|
|
</script>
|
|
</pre>
|
|
</style>
|
|
````````````````````````````````
|
|
|
|
Issue #289.
|
|
|
|
```````````````````````````````` example
|
|
[a](<b) c>
|
|
.
|
|
<p>[a](<b) c></p>
|
|
````````````````````````````````
|
|
|
|
Issue #334 - UTF-8 BOM
|
|
|
|
```````````````````````````````` example
|
|
# Hi
|
|
.
|
|
<h1>Hi</h1>
|
|
````````````````````````````````
|
|
|
|
Issue commonmark.js#213 - type 7 blocks can't interrupt
|
|
paragraph
|
|
|
|
```````````````````````````````` example
|
|
- <script>
|
|
- some text
|
|
some other text
|
|
</script>
|
|
.
|
|
<ul>
|
|
<li>
|
|
<script>
|
|
</li>
|
|
<li>some text
|
|
some other text
|
|
</script></li>
|
|
</ul>
|
|
````````````````````````````````
|
|
|
|
Issue #383 - emphasis parsing.
|
|
|
|
```````````````````````````````` example
|
|
*****Hello*world****
|
|
.
|
|
<p>**<em><strong>Hello<em>world</em></strong></em></p>
|
|
````````````````````````````````
|
|
|
|
Issue #424 - emphasis before links
|
|
|
|
```````````````````````````````` example
|
|
*text* [link](#section)
|
|
.
|
|
<p><em>text</em> <a href="#section">link</a></p>
|
|
````````````````````````````````
|
|
|
|
`<!doctype` is case-insensitive
|
|
```````````````````````````````` example
|
|
<!docType html>
|
|
.
|
|
<!docType html>
|
|
````````````````````````````````
|
|
|
|
Declarations don't need spaces, according to the spec
|
|
```````````````````````````````` example
|
|
x <!A>
|
|
.
|
|
<p>x <!A></p>
|
|
````````````````````````````````
|
|
|
|
|