Merge pull request #2684 from jackyzha0/dev-mode/obsidian-collapse-indicators

fix: hide Obsidian's fold arrows in headings and list items
This commit is contained in:
Emile Bangma authored and GitHub committed 2026-11-26 01:09:13 +01:00
commit c97c545f0c
3 files changed
+14

No files matched your search

@@ -0,0 +1,5 @@
---
"@jackyzha0/quartz": patch
---
Obsidian's fold arrows in headings and list items (`.heading-collapse-indicator`, `.list-collapse-indicator`, rendered by rehype-obsidian for Obsidian themes) are hidden unless obsidian-flavored-markdown's `foldHeadings` / `foldLists` turn folding on.
+2
View File
@@ -34,6 +34,8 @@ This plugin accepts the following configuration options:
- `enableVideoEmbed`: If `true` (default), enables the embedding of video files.
- `enableCheckbox`: If `true`, adds support for interactive checkboxes in content, including custom task characters (e.g. `- [?]`, `- [!]`, `- [/]`). Defaults to `false`; the default `quartz.config.yaml` turns it on.
- `enableObsidianUri`: If `true` (default), marks `obsidian://` protocol links with a CSS class and data attribute for custom styling.
- `foldHeadings`: If `true`, headings fold as in Obsidian's reading view ("Fold heading"): an arrow before each heading, shown on hover, hides everything up to the next heading of the same or a higher level. Defaults to `false`.
- `foldLists`: If `true`, list items with a sublist fold as in Obsidian's reading view ("Fold indent"): an arrow before the item, shown on hover, hides its sublist. Defaults to `false`.
Also supported:
+7
View File
@@ -491,6 +491,13 @@ h6 {
}
}
// Obsidian's fold arrows in headings and in list items with a sublist; hidden unless
// obsidian-flavored-markdown's foldHeadings / foldLists turn folding on
.heading-collapse-indicator,
.list-collapse-indicator {
display: none;
}
// typography improvements
h1 {
font-size: 1.75rem;