Thanks for the suggestion but so far it’s only affecting headings not bullet lists. I’m not well versed in CSS so a step by step would be greatly appreciated.
In this specific case (a list following regular text), this works to shift the list up in Reading View:
.markdown-rendered ul, .markdown-rendered ol {
margin-block-start: -10px;
margin-block-end: 0px;
}
…but this could very well produce unexpected results in other situations, negative margins aren’t good, and I wouldn’t use it myself.
Reading View is going to create lines/spacing between elements. I’d try working with the --p-spacing or --heading-spacing options. For spacing within lists, you could also try the CSS here How to Increase Paragraph Spacing - #2 by ariehen.
I use this snippet in conjunction with the Contextual Typography plugin. The plugin might not be strictly necessary anymore, but it’s worked for me for ~2 years now.
/* Remove the gap between a paragraph and a list that follows it */
div.el-p + div.el-ul > ul,
div.el-p + div.el-ol > ol {
margin-top: -15px;
}
I exported a page to PDF recently, and it used the Reading mode view for the export, so blank lines after headings. Not what I was hoping for. Does anyone know why there is a space after headings in RM? I wish there was an option to remove those blank spaces!