selase
(Selase Krakani)
5
This seems to happen during cooking, specifically markdown parsing.
Passing a header with linebreaks to PrettyText.markdown returns with the content of header wrapped in a p tag.
And then during scrubbing, the paragraph get’s extracted out out of the header tag resulting in the following:
I suppose this happens since a paragraph in a header tag isn’t spec compliant?
I’m still reviewing the markdown parser code to figure out why the content is being wrapped in p tag in the first place.
2 Likes