Skip to content

Commit

Permalink
Test that nested numbers are correctly parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Feb 10, 2025
1 parent 626df6a commit dfb6613
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions tests/testfiles/regression/github/issue-218.test
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

0 comments on commit dfb6613

Please sign in to comment.