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
Browsers will handle this, but shouldn't we be somehow fixing this? -- maybe not oneboxing if it's a phrasing element? or dropping the phrasing? Sounds complicated either way.
Looking at #940 , I realised that while the markdown content:
will generate something anodyne like:
which is fully valid.
But with onebox enabled , then the following markdown:
will result in a complex structure like:
This is invalid html5 because flow elements can't be contained inside a phrasing element like
<strong>
(https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-strong-element). A oneboxed result will I think always generate flow elements not purely phrasing elements.Browsers will handle this, but shouldn't we be somehow fixing this? -- maybe not oneboxing if it's a phrasing element? or dropping the phrasing? Sounds complicated either way.
Thoughts @glebm ?
The text was updated successfully, but these errors were encountered: