-
Notifications
You must be signed in to change notification settings - Fork 72
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 HTML tags are parsed separately and produce semantically incorrect AST node #418
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Thanks @GYHHAHA I have spent some time thinking about this over the weekend. I am not quite sure what the best path is. Some of my notes are below, not overly sure where to go next and would appreciate input from you or @fwkoch! This is also a high-priority feature request in Right now our parser is I have some other questions about what we want to render inside of the html tags as well. For example, the value for this: I am somewhat concerned that this is going to be a bit of a mess and lead to all sorts of edge cases. Testing out github, they also aren't consistent and again it isn't consistent with Jupyter either. There is also convertHtmlToMdast which actually converts to mdast, which is better if we know the html tag (like There are probably some small improvements that we could put in, but I don't think they aren't going to address it in a standardized way. |
Thanks for your response. Totally agree. This is not an easy one to address with a systematic way for now. |
There has been some improvements that @fwkoch made here: |
@rowanc1 Thanks for the update! |
I have taken a pass at this in #680, it actually will be correct between the two transforms now, and should satisfy this issue. We will likely still iterate a bit on this, but hopefully the PR will close this one! |
Describe the bug
abc <sup>[1]</sup>
now produces 4 separate AST nodes:[{"type":"text","value":"abc "},{"type":"html","value":"<sup>"},{"type":"text","value":"[1]"},{"type":"html","value":"</sup>"}]
which breaks thesup
semantics. It should be aligned to the markdown behavior. Contrast current and desired:Reproduce the bug
/
List your environment
No response
The text was updated successfully, but these errors were encountered: