Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix math source span #779

Merged
merged 1 commit into from
Mar 14, 2024
Merged

Fix math source span #779

merged 1 commit into from
Mar 14, 2024

Conversation

toothache
Copy link

Fix math source span calculation.

The span is wrong if a math is followed with more texts:

Check("0\n012 \$abcd\$ 321", @"
paragraph ( 0, 0) 0-15
literal ( 0, 0) 0-0
linebreak ( 0, 1) 1-1
literal ( 1, 0) 2-5
math ( 1, 4) 6-15 (incorrect)
attributes ( 0, 0) 0--1
literal ( 1,10) 12-15
", "mathematics");

@xoofx xoofx merged commit d434f00 into xoofx:master Mar 14, 2024
1 check passed
@xoofx xoofx added the bug label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants