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 #353 from Witiko/fix/commonmark-unit-tests
Restore CommonMark testfiles with trailing tabs and spaces
- Loading branch information
Showing
15 changed files
with
172 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
if: template == 'input' | ||
--- | ||
|
||
% ---RESULT--- "example": 335, | ||
% | ||
% <p><code>foo bar baz</code></p> | ||
% <p><code>foo bar baz</code></p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
`` | ||
foo | ||
bar | ||
bar | ||
baz | ||
`` | ||
>>> | ||
documentBegin | ||
codeSpan: foo bar baz | ||
codeSpan: foo bar baz | ||
documentEnd |
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,17 @@ | ||
if: template == 'input' | ||
--- | ||
|
||
% ---RESULT--- "example": 336, | ||
% | ||
% <p><code>foo </code></p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
`` | ||
foo | ||
`` | ||
>>> | ||
documentBegin | ||
codeSpan: foo | ||
documentEnd |
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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
if: template == 'input' | ||
--- | ||
|
||
% ---RESULT--- "example": 337, | ||
% | ||
% <p><code>foo bar baz</code></p> | ||
% <p><code>foo bar baz</code></p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
`foo bar | ||
`foo bar | ||
baz` | ||
>>> | ||
documentBegin | ||
codeSpan: foo bar baz | ||
codeSpan: foo bar baz | ||
documentEnd |
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 |
---|---|---|
@@ -1,20 +1,23 @@ | ||
if: template == 'input' | ||
--- | ||
|
||
% ---RESULT--- "example": 129, | ||
% | ||
% <pre><code> | ||
% | ||
% | ||
% </code></pre> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
``` | ||
|
||
|
||
``` | ||
>>> | ||
documentBegin | ||
BEGIN fencedCode | ||
- src: ./_markdown_test/68b329da9893e34099c7d8ad5cb9c940.verbatim | ||
- src: ./_markdown_test/f67be96ce768fb5b40aecf0438f97886.verbatim | ||
- infostring: | ||
END fencedCode | ||
documentEnd |
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,17 @@ | ||
if: format == 'context-mkiv' or template == 'input' | ||
--- | ||
|
||
% ---RESULT--- "example": 633, | ||
% | ||
% <p>foo<br /> | ||
% baz</p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
foo | ||
baz | ||
>>> | ||
documentBegin | ||
hardLineBreak | ||
documentEnd |
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,17 @@ | ||
if: format == 'context-mkiv' or template == 'input' | ||
--- | ||
|
||
% ---RESULT--- "example": 635, | ||
% | ||
% <p>foo<br /> | ||
% baz</p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
foo | ||
baz | ||
>>> | ||
documentBegin | ||
hardLineBreak | ||
documentEnd |
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,17 @@ | ||
if: format == 'context-mkiv' or template == 'input' | ||
--- | ||
|
||
% ---RESULT--- "example": 636, | ||
% | ||
% <p>foo<br /> | ||
% bar</p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
foo | ||
bar | ||
>>> | ||
documentBegin | ||
hardLineBreak | ||
documentEnd |
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,17 @@ | ||
if: format == 'context-mkiv' or template == 'input' | ||
--- | ||
|
||
% ---RESULT--- "example": 638, | ||
% | ||
% <p><em>foo<br /> | ||
% bar</em></p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
*foo | ||
bar* | ||
>>> | ||
documentBegin | ||
emphasis: foo(hardLineBreak)bar | ||
documentEnd |
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 @@ | ||
if: template == 'input' | ||
--- | ||
|
||
% ---RESULT--- "example": 640, | ||
% | ||
% <p><code>code span</code></p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
`code | ||
span` | ||
>>> | ||
documentBegin | ||
codeSpan: code span | ||
documentEnd |
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,17 @@ | ||
if: template == 'input' | ||
--- | ||
|
||
% ---RESULT--- "example": 642, | ||
% | ||
% <p><a href="foo | ||
% bar"></p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
<a href="foo | ||
bar"> | ||
>>> | ||
documentBegin | ||
inlineHtmlTag: <a href="foo bar"> | ||
documentEnd |
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
8 changes: 4 additions & 4 deletions
8
tests/testfiles/CommonMark_0.30/indented_code_blocks/006.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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
if: not (format == 'context-mkiv' and template == 'verbatim') | ||
if: template == 'input' | ||
--- | ||
|
||
% ---RESULT--- "example": 112, | ||
% | ||
% <pre><code>chunk1 | ||
% | ||
% | ||
% chunk2 | ||
% </code></pre> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
chunk1 | ||
|
||
chunk2 | ||
>>> | ||
documentBegin | ||
inputVerbatim: ./_markdown_test/baeeb37d6c9237faa1bcd55e3102e279.verbatim | ||
inputVerbatim: ./_markdown_test/d6bc1998e8030f4c5bc9338f5ed4bbf4.verbatim | ||
documentEnd |
9 changes: 6 additions & 3 deletions
9
tests/testfiles/CommonMark_0.30/indented_code_blocks/012.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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
if: template == 'input' | ||
--- | ||
|
||
% ---RESULT--- "example": 118, | ||
% | ||
% <pre><code>foo | ||
% <pre><code>foo | ||
% </code></pre> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
foo | ||
foo | ||
>>> | ||
documentBegin | ||
inputVerbatim: ./_markdown_test/acbd18db4cc2f85cedef654fccc4a4d8.verbatim | ||
inputVerbatim: ./_markdown_test/e8d2133b16be538460e59776bb34676a.verbatim | ||
documentEnd |
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,19 @@ | ||
if: format == 'context-mkiv' or template == 'input' | ||
--- | ||
|
||
% ---RESULT--- "example": 226, | ||
% | ||
% <p><em>aaa</em><br /> | ||
% <em>bbb</em></p> | ||
% | ||
% ---\RESULT--- | ||
|
||
<<< | ||
*aaa* | ||
*bbb* | ||
>>> | ||
documentBegin | ||
emphasis: aaa | ||
hardLineBreak | ||
emphasis: bbb | ||
documentEnd |