-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
Inline sourcepos fixes. #439
Conversation
Actually it looks like all the link stuff is just +2, probably because of the indent-but-not-really-indent.
Run on Fri Jul 12 08:31:50 UTC 2024 |
How awkward. In all these cases: - A
B - A
B - A
B the inline parser is initialised with the subject This will require something of a rearchitecting — sourcepos info needs to be associated and carried through from much earlier in the block processing stage, with the possibility of multiple spans per content block[1] — and I have no real inclination to do such work at present. In light of all this, for now I'm going to adjust to match upstream (#301 (comment)) and not output inline-level sourcepos in HTML in the same cases as cmark. Block-level sourcepos will be unaffected, as it's not known to have issues. [1] In the examples above, we still need to be passing through the same inline This changes a lot of the bookkeeping on the block parser side, and a complete rework of sourcepos handling on the inline parser side, so I can't even say for sure that I won't hit an even bigger roadblock. Also worth noting in conjunction is this comment about autolink sourcepos unsoundness. |
The information is still there in the AST, and e.g. XML output will still include it.
Fixes #301.