decode-elements with decode-paragraphs inserts spurious <p> when nesting lists?
#115
Open
opened 3 years ago by bluebear94
·
2 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
As in this example:
The
<p>
tag wrapped aroundFood
doesn't need to be here. Fixing this behavior doesn't sound trivial, though.The result is a little surprising, but it’s consistent with the documented behavior.
"Food"
is adjacent to ablock-txexpr
, namelyul
, so it gets ap
tag. There are different ways you could solve this. Adding#:force? #t
todecode-paragraphs
will make it consistent.One quick and dirty option to circumvent your problem is removing
ul
andol
from theblock-tags
list. Of course that will then turn the behavior off everywhere, but I have found that it doesn't really casue issues for me (yet).