Open Parth opened 2 years ago
The text: - \na
- \na
Creates the following hierarchy:
Document
List
Paragraph
Text
This AST has the following {start_line, end_line, start_column, end_column}
{start_line, end_line, start_column, end_column}
Document: {1, 2, 1, 1}
List: {1, 2, 1, 1}
Paragraph: {1, 2, 3, 1}
Text: {2, 2, 3, 3}
{2, 2, 3, 3} (the Text bounds) exceed the bounds for the document, and violates some assumptions which cause my application to panic.
{2, 2, 3, 3}
I couldn't find any documentation which makes it clear whether this is a bug or not, but my intuition says that this is a bug.
I agree, looks like a bug. I didn't write the code for inline source positions, but you should probably look at make_literal in inlines.c.
The text:
- \na
Creates the following hierarchy:
Document
List
Paragraph
Text
This AST has the following
{start_line, end_line, start_column, end_column}
Document: {1, 2, 1, 1}
List: {1, 2, 1, 1}
Paragraph: {1, 2, 3, 1}
Text: {2, 2, 3, 3}
{2, 2, 3, 3}
(theText
bounds) exceed the bounds for the document, and violates some assumptions which cause my application to panic.I couldn't find any documentation which makes it clear whether this is a bug or not, but my intuition says that this is a bug.