-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
sourcepos
is incorrect for <script>
tags
#448
Comments
Thanks for the report! This is definitely a Comrak thing. No guarantees on when I'll be able to look into this, but it shoooooould be fairly simple. 🤞 |
@kivikakk it looks like this is occurring for the tags Line 152 in 42f4594
1 , and then Lines 1928 to 1938 in feaf5cf
I'm not sure why these would get treated differently than any other HTML block tag, such as a |
Of course, I should've looked at the spec 🤦 |
I've encountered an odd issue. I'm using the Ruby wrapper (Commonmarker) and inspecting the AST shows some strange behavior around the
sourcepos
of<script>
tags. AFAICT this is only related to script tags, and only ones that appear all on one line at that.note the
end_line
andend_column
are both zero. In general I've observed thatend_line
isstart_line - 1
, andend_column
is always zero.Let me know if I should open an issue on Commonmarker instead, but I don't see how this could be caused by the wrapper. I just lack the rust expertise to test it directly in rust, sorry!
The text was updated successfully, but these errors were encountered: