Add margin above and below codeblocks when they're a child of a list element. #269
johnnymatthews
started this conversation in
Feature Requests
Replies: 1 comment
-
Hey @johnnymatthews - thanks for the suggestion! Glad you have a workaround for now, but I agree, and think we should be consistent with the markdown we're displaying |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Here is some common GitHub flavored markdown:
This is what it looks like in GitBook:
The list becomes very cramped. A work around for this is to add escape characters and additional blank lines into the markdown, but then you end up with something like this:
Note the escape
\
character at the end of the first line. This is not common markdown, and will bork parsers like GitHub's markdown preview, or VSCode's markdown preview.Solution
Add a margin before and after codeblock when they're a child of a
<ul>
or<ol>
item. Something like this should work:Beta Was this translation helpful? Give feedback.
All reactions