oleeskild / digitalgarden

261 stars 147 forks source link

Callouts with empty body still render body HTML #266

Closed tyler-dot-earth closed 1 month ago

tyler-dot-earth commented 1 month ago

the markdown:

> [!info] notes i'm interested in publishing

how it renders (notice the extra space on the bottom):

image

what the output code looks like:

image

note that this can't be worked around with .callout-content:empty because it has the p in it, nor a more complex rule like .callout-content:has(p:empty) because the p isn't technically empty (which is why the code output has multiple lines). if i remove the "blank" content in the p, it the :empty rules work as expected (proving that this isn't a theme problem).