TextFormatter: phpBB: excessive
in content block
I’m not exactly sure that my issue belongs to TextFormatter, or to it’s phpBB integration part.
Anyway, when I use Markdown extension, I see that content block of forum post is whole wrapped into additional <p> tag.
And in my setup it causes problem (conflict with bbcode).
So I want to ask: is it feature of Litedown plugin? Or something wrong in phpBB?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 30 (13 by maintainers)
The
createParagraphsrule works as intended and no paragraph is created inside of the spoiler. You can verify that by looking at the page’s source: (not “Inspect element”)The reason you see a different DOM tree when inspecting the element is because the markup is invalid and this is the way browsers must handle invalid markup as per HTML 5.
spandoes not allowdivso thedivis moved to the parent, butpdoesn’t allow it either and it is moved up further. I don’t know off the top of my head why an empty paragraph is created but since Chrome and Firefox behave the same way I assume it’s as per the HTML 5 specs.If you replace the
spanwith adivit should fix your markup.