You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inline elements getting parsed as text when doubly nested #1045
Seems like md_in_html subclasses from the new HTML parser, but overrides start tag handling. What it forgets to do is flag whether the content is "raw HTML" as that logic is in the overridden base element's start tag logic.
Doing a quick and dirty patch to add this flagging of "raw HTML" logic to md_in_html, we get the expected results:
Activity
facelessuser commentedon Oct 15, 2020
Hmm, it seems the new HTML parser is escaping inline tags for some reason.
facelessuser commentedon Oct 15, 2020
Seems like
md_in_htmlsubclasses from the new HTML parser, but overrides start tag handling. What it forgets to do is flag whether the content is "raw HTML" as that logic is in the overridden base element's start tag logic.Doing a quick and dirty patch to add this flagging of "raw HTML" logic to
md_in_html, we get the expected results:Now, I haven't done much testing on this, but I think I should be able to get this fix in with a couple of other HTML related parse issues.
facelessuser commentedon Oct 15, 2020
The cause isn't quite right, but there is some inline handling logic missing. I'll spend some time narrowing it down.
Solution for Python-Markdown#1045 case and add additional test for mo…
facelessuser commentedon Oct 15, 2020
This case has a solution in #1044.
Properly parse inline HTML in md_in_html