Markdown margins of nested lists with paragraphs
Summary
Hello!
If I want to create a Markdown list with paragraphs and nested lists — I'm facing visual problems.
Steps to reproduce
* Foo
* Foo nested 1
* Foo nested 2
* Bar
* Bar nested 1
* Bar nested 2
Example Project
-
Foo
- Foo nested 1
- Foo nested 2
-
Bar
- Bar nested 1
- Bar nested 2
What is the current bug behavior?
Paragraphs have only bottom margins, and nested lists don't have, so nested lists are sticked to the next root list item without margin as it's from paragraph of the same root list item.
What is the expected correct behavior?
Equal margins around list items, paragraphs and nested lists.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Possible fixes
One:
- .md *:first-child {
- margin-top: 0;
- }
.md p {
- margin: 0 0 16px;
+ margin: 16px 0;
}
Another:
.md > ul ul {
+ margin-bottom: 16px;
}


