forked from jgm/lunamark
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #416 from lostenderman/update-commonmark
- Loading branch information
Showing
18 changed files
with
342 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
% ---RESULT--- "example": 594, | ||
% | ||
% <p><a href="https://foo.bar.baz/test?q=hello&id=22&boolean">https://foo.bar.baz/test?q=hello&id=22&boolean</a></p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
<https://foo.bar.baz/test?q=hello&id=22&boolean> | ||
>>> | ||
BEGIN document | ||
BEGIN link | ||
- label: https://foo.bar.baz/test?q=hello(ampersand)id=22(ampersand)boolean | ||
- URI: https://foo.bar.baz/test?q=hello&id=22&boolean | ||
- title: | ||
END link | ||
END document |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
% ---RESULT--- "example": 601, | ||
% | ||
% <p><https://foo.bar/baz bim></p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
<https://foo.bar/baz bim> | ||
>>> | ||
BEGIN document | ||
END document |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
% ---RESULT--- "example": 602, | ||
% | ||
% <p><a href="https://example.com/%5C%5B%5C">https://example.com/\[\</a></p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
<https://example.com/\[\> | ||
>>> | ||
BEGIN document | ||
BEGIN link | ||
- label: https://example.com/(backslash)[(backslash) | ||
- URI: https://example.com/(backslash)[(backslash) | ||
- title: | ||
END link | ||
END document |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
% ---RESULT--- "example": 607, | ||
% | ||
% <p>< https://foo.bar ></p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
< https://foo.bar > | ||
>>> | ||
BEGIN document | ||
END document |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
% ---RESULT--- "example": 610, | ||
% | ||
% <p>https://example.com</p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
https://example.com | ||
>>> | ||
BEGIN document | ||
END document |
16 changes: 16 additions & 0 deletions
16
tests/testfiles/CommonMark_0.31.2/backslash_escapes/009.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
% ---RESULT--- "example": 20, | ||
% | ||
% <p><a href="https://example.com?find=%5C*">https://example.com?find=\*</a></p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
<https://example.com?find=\*> | ||
>>> | ||
BEGIN document | ||
BEGIN link | ||
- label: https://example.com?find=(backslash)* | ||
- URI: https://example.com?find=(backslash)* | ||
- title: | ||
END link | ||
END document |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
% ---RESULT--- "example": 345, | ||
% | ||
% <p><code><https://foo.bar.</code>baz>`</p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
`<https://foo.bar.`baz>` | ||
>>> | ||
BEGIN document | ||
codeSpan: <https://foo.bar. | ||
END document |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
% ---RESULT--- "example": 346, | ||
% | ||
% <p><a href="https://foo.bar.%60baz">https://foo.bar.`baz</a>`</p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
<https://foo.bar.`baz>` | ||
>>> | ||
BEGIN document | ||
BEGIN link | ||
- label: https://foo.bar.`baz | ||
- URI: https://foo.bar.`baz | ||
- title: | ||
END link | ||
END document |
16 changes: 16 additions & 0 deletions
16
tests/testfiles/CommonMark_0.31.2/emphasis_and_strong_emphasis/130.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
% ---RESULT--- "example": 479, | ||
% | ||
% <p>**a<a href="https://foo.bar/?q=**">https://foo.bar/?q=**</a></p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
**a<https://foo.bar/?q=**> | ||
>>> | ||
BEGIN document | ||
BEGIN link | ||
- label: https://foo.bar/?q=** | ||
- URI: https://foo.bar/?q=** | ||
- title: | ||
END link | ||
END document |
18 changes: 18 additions & 0 deletions
18
tests/testfiles/CommonMark_0.31.2/emphasis_and_strong_emphasis/131.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
% ---RESULT--- "example": 480, | ||
% | ||
% <p>__a<a href="https://foo.bar/?q=__">https://foo.bar/?q=__</a></p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
__a<https://foo.bar/?q=__> | ||
>>> | ||
BEGIN document | ||
underscore | ||
underscore | ||
BEGIN link | ||
- label: https://foo.bar/?q=(underscore)(underscore) | ||
- URI: https://foo.bar/?q=__ | ||
- title: | ||
END link | ||
END document |
20 changes: 20 additions & 0 deletions
20
tests/testfiles/CommonMark_0.31.2/emphasis_and_strong_emphasis/132.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
% ---RESULT--- "example": 354, (new) | ||
% | ||
% <p>*$*alpha.</p> | ||
% <p>*£*bravo.</p> | ||
% <p>*€*charlie.</p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
*$*alpha. | ||
|
||
*£*bravo. | ||
|
||
*€*charlie. | ||
>>> | ||
BEGIN document | ||
dollarSign | ||
paragraphSeparator | ||
paragraphSeparator | ||
END document |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
% ---RESULT--- "example": 500, | ||
% | ||
% <p><a href="#fragment">link</a></p> | ||
% <p><a href="https://example.com#fragment">link</a></p> | ||
% <p><a href="https://example.com?foo=3#frag">link</a></p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
[link](#fragment) | ||
|
||
[link](https://example.com#fragment) | ||
|
||
[link](https://example.com?foo=3#frag) | ||
>>> | ||
BEGIN document | ||
BEGIN link | ||
- label: link | ||
- URI: #fragment | ||
- title: | ||
END link | ||
paragraphSeparator | ||
BEGIN link | ||
- label: link | ||
- URI: https://example.com#fragment | ||
- title: | ||
END link | ||
paragraphSeparator | ||
BEGIN link | ||
- label: link | ||
- URI: https://example.com?foo=3#frag | ||
- title: | ||
END link | ||
END document |
Oops, something went wrong.