Closed regseb closed 2 years ago
The line spacing of items in an unordered list is different if an item contains a fenced code block with an blank line before (live demo).
I want to add a blank line to respect the blanks-around-fences rule of markdownlint:
blanks-around-fences
Aside from aesthetic reasons, some parsers, including kramdown, will not parse fenced code blocks that don't have blank lines before and after them.
- foo - bar - baz
- foo - bar ``` baz ```
baz
bar
This is in accordance with what the spec says about tight vs loose lists, isn't it?
So, not a bug. See https://spec.commonmark.org/0.30/#loose
The line spacing of items in an unordered list is different if an item contains a fenced code block with an blank line before (live demo).
I want to add a blank line to respect the
blanks-around-fences
rule of markdownlint:✔️ Unordered list without fenced code block
Markdown
Rendering
✔️ Unordered list with fenced code block without blank line
Markdown
Rendering
❌ Unordered list with fenced code block with blank line
Markdown
Rendering
bar