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.
Allow a backslash before a newline with the stripComments Lua option
- Loading branch information
Showing
3 changed files
with
20 additions
and
4 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,9 +1,16 @@ | ||
<<< | ||
This test ensures that the Lua `stripComments` option is disabled by default. | ||
The following *emphasi% this is a comment | ||
zed text* should be interrupted and this *emphasi\% another one | ||
|
||
The following *emphasi% this is a comment | ||
zed text* should be interrupted and this *emphasi\% another one | ||
zed text* should also be interrupted. | ||
|
||
A single backslash at the *end of \ | ||
a line* should be allowed by the preprocessor. | ||
>>> | ||
codeSpan: stripComments | ||
interblockSeparator | ||
emphasis: emphasi(percentSign) this is a comment zed text | ||
emphasis: emphasi(backslash)(percentSign) another one zed text | ||
interblockSeparator | ||
emphasis: end of (backslash) a line |
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,24 @@ | ||
\def\markdownOptionStripComments{true} | ||
<<< | ||
This test ensures that the Lua `stripComments` option correctly propagates | ||
through the plain TeX interface. The following *emphasi% this is a comment | ||
zed text* should be uninterrupted, whereas this *emphasi\% another one | ||
through the plain TeX interface. | ||
|
||
The following *emphasi% this is a comment | ||
zed text* should be uninterrupted, whereas this *emphasi\% another one | ||
zed text* should be interrupted. | ||
|
||
The following *emphasi% this is a comment | ||
|
||
zed text* should be broken into two paragraphs. | ||
|
||
A single backslash at the *end of \ | ||
a line* should be allowed by the preprocessor. | ||
>>> | ||
codeSpan: stripComments | ||
interblockSeparator | ||
emphasis: emphasized text | ||
emphasis: emphasi(percentSign) another one zed text | ||
interblockSeparator | ||
interblockSeparator | ||
interblockSeparator | ||
emphasis: end of (backslash) a line |