Using RStudio (2022.12.0 Build 353), I created a new Quarto Document (File -> New File -> Quarto Document...), appended the same markdown segment to the default .qmd file, and I got the exact same problem.
As an afterthought:
Quarto v1.2.280
RStudio 2022.07.2+576 "Spotted Wakerobin"
R version 4.2.2 Patched (2022-11-10 r83330)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.2 LTS
There is also another strange blank line behavior. See below. Adding a blank line in markdown between the first and second unordered list will introduce a blank line between the second unordered list and its sub-item 1.
---
title: "test"
format: html
editor: visual
---
### Part 5
* unordered list
* unordered list
+ sub-item 1
+ sub-item 2
- sub-sub-item 1
+ sub-time 3
* unordered list
* unordered list
You can change this using a different CSS than the default. Here is an example theme file to use
format:
html:
theme:
- styles.scss
/*-- scss:defaults --*/
/*-- scss:rules --*/
main {
ol ol,
ul ul,
ol ul,
ul ol {
/* remove margin bottom under nested list item */
margin-bottom: unset;
}
ul p {
/* remove margin under paragraph inside list */
margin-bottom: 0.2rem;
}
}
Regarding bug or not, this is a matter of default style. It could be by design (as done like this since a long time) but can be revisited too. I would open an issue or discussion in https://github.com/quarto-dev/quarto-cli/ so that we can discuss with the dev team.