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.
Test that nested numbers are correctly parsed
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
\markdownSetup{jekyllData=true} | ||
<<< | ||
This test ensures that the Lua `jekyllData` option correctly propagates | ||
through the plain TeX interface and that nested numbers are correctly parsed. | ||
|
||
--- | ||
foo: [1, 2, 3] | ||
--- | ||
>>> | ||
BEGIN document | ||
codeSpan: jekyllData | ||
softLineBreak | ||
interblockSeparator | ||
jekyllDataBegin | ||
BEGIN jekyllDataMappingBegin | ||
- key: null | ||
- length: 1 | ||
END jekyllDataMappingBegin | ||
BEGIN jekyllDataSequenceBegin | ||
- key: null | ||
- length: 3 | ||
END jekyllDatSequenceBegin | ||
BEGIN jekyllDataNumber | ||
- key: 1 | ||
- value: 1 | ||
END jekyllDataNumber | ||
BEGIN jekyllDataNumber | ||
- key: 2 | ||
- value: 2 | ||
END jekyllDataNumber | ||
BEGIN jekyllDataNumber | ||
- key: 3 | ||
- value: 3 | ||
END jekyllDataNumber | ||
jekyllDataSequenceEnd | ||
jekyllDataMappingEnd | ||
jekyllDataEnd | ||
END document |