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 #347 from Witiko/fix/paragraphs-with-trailing-spaces
Correctly parse paragraphs with trailing spaces
- Loading branch information
Showing
14 changed files
with
150 additions
and
67 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
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,3 +1,4 @@ | ||
click~=8.1.6 | ||
more-itertools~=10.0.0 | ||
PyYAML~=6.0.1 | ||
tqdm~=4.65.0 |
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
3 changes: 3 additions & 0 deletions
3
tests/testfiles/CommonMark_0.30/indented_code_blocks/005.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
3 changes: 3 additions & 0 deletions
3
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
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,34 @@ | ||
if: format == 'context-mkiv' or template == 'input' | ||
--- | ||
<<< | ||
This test ensures that two and more trailing spaces or one or more trailing | ||
tabs produce a hard line break for all templates of the ConTeXt MkIV format | ||
and for the `input` templates of all other formats. | ||
|
||
Here is a line with no trailing spaces, producing a soft line break. | ||
Here is a line with a single trailing space, producing a soft line break. | ||
Here is a line with two trailing spaces, producing a hard line break. | ||
Here is a line with three trailing spaces, producing a hard line break. | ||
Here is a line with four trailing spaces at the end of a paragraph. | ||
|
||
Here is a line with no trailing tabs, producing a soft line break. | ||
Here is a line with a single trailing tab, producing a soft line break. | ||
Here is a line with two trailing tabs, producing a hard line break. | ||
Here is a line with three trailing tabs, producing a hard line break. | ||
Here is a line with four trailing tabs at the end of the document. | ||
>>> | ||
documentBegin | ||
softLineBreak | ||
softLineBreak | ||
codeSpan: input | ||
paragraphSeparator | ||
softLineBreak | ||
softLineBreak | ||
hardLineBreak | ||
hardLineBreak | ||
paragraphSeparator | ||
softLineBreak | ||
softLineBreak | ||
hardLineBreak | ||
hardLineBreak | ||
documentEnd |
Oops, something went wrong.