TokenizeContext.sliceSerialize
for Token.type
of setextHeading
includes non-heading content from outside the range of [startLine
, endLine
]
#152
Labels
🤞 phase/open
Post is being triaged manually
Initial checklist
Affected packages and versions
4.0.0
Link to runnable example
No response
Steps to reproduce
Expected behavior
Note specifically this part of the output:
'setextHeading (4-5): Text\n\nSetext\n======'
While the start and end lines are correct, the output of
sliceSerialize
includes "Text\n\n" from lines 2 and 3 which is not part of the heading (confirmed by the associatedsetextHeadingText
token which contains only "Setext").Actual behavior
See above.
Runtime
Node v16
Package manager
npm v7
OS
macOS
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: