mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
list item with blank line between items causes paragraph / misalignment #724
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jonstelly on GitHub (Feb 24, 2025).
lists with blank line between items causes a paragraph which causes the item indicator and text to show up on separate lines. Removing the blank line above 2 fixes the issue. Same thing happens on unordered lists.
This is for an AI thing so I think I can instruct the AI to not include the blank line in lists, but it would be nicer if I didn't have to. Is there any setting or some other reasonable way I could fix the formatting even if the blank line is there?
ends up as
renders as

@jonstelly commented on GitHub (Feb 24, 2025):
I was playing around looking into the AST. Nothing jumps out, the structure of the tree is the same in both cases. So I guess that means this is more on the renderer side? I'm just getting started with this library so just talking out loud as I dig into the issue a bit.
@xoofx commented on GitHub (Feb 24, 2025):
Yes, it looks like a problem of CSS on your side.
Closing as the result is correct across all CommonMark engine here