Open bluebear94 opened 2 years ago
The result is a little surprising, but it’s consistent with the documented behavior. "Food"
is adjacent to a block-txexpr
, namely ul
, so it gets a p
tag. There are different ways you could solve this. Adding #:force? #t
to decode-paragraphs
will make it consistent.
One quick and dirty option to circumvent your problem is removing ul
and ol
from the block-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).
(module setup racket/base
(provide (all-defined-out))
(require pollen/setup)
;; treat lists as run-in text
(define block-tags (remq 'ol (remq 'ul default-block-tags))))
As in this example:
The
<p>
tag wrapped aroundFood
doesn't need to be here. Fixing this behavior doesn't sound trivial, though.