Replies: 1 comment 7 replies
-
Thanks for the feedback! There's definitely some weird things happening with the spacing, but unfortunately the story is a bit more complicated. Let me explain. There are two causes of spacing here: "Plain" bullet list items vs "Paragraph" bullet list itemsIn Pandoc, the content of a bulleted list is interpreted in one of two things: "plain" content that should have no spacing between items, and "paragraph" content that should have spacing between items. Crucially, Pandoc supports only one of these at any one bulleted list. This gets admittedly very unintuitive because for the most part, Markdown doesn't care about empty line. But in this case, any one empty line between bullet list items means that Pandoc thinks you want spacing among all items of that list. So in your second example, I think you meant to ask Pandoc "please add a space here, but nowhere else in this list". Unfortunately, that's not possible, and so Pandoc adds spacing between all of the items in your list. Margins at the bottom of bullet listsWe currently add That happens to be the same amount of space we add between paragraphs (and margins don't add, it's more like you get the largest of the applicable margins), so it's confusing when there exists "Paragraph" bullet lists together with the end of a bullet list. A (partial) solutionI think this latter problem is a bug in our .css, thanks for catching it! But the fix is for nested bullet lists to not have the bottom margin applied to them. Unfortunately, I think you were hoping to get paragraph breaks wherever you have a line break, and nowhere else. Unfortunately, that's not possible with the way that Pandoc interprets markdown. You can still do it with custom CSS and spans, but it will require manual markup. The Pandoc details
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I wonder whether the default blank line (or space) between list and list sub-items can be made consistent in Quarto markdown rendering. (See a similar discussion in the R community site too, https://community.rstudio.com/t/quarto-markdown-list-and-blank-line/160693/7)
Example 1.
It renders to,
Example 2
It renders to,
Beta Was this translation helpful? Give feedback.
All reactions