mirror of
https://github.com/jackyzha0/quartz
synced 2026-11-27 22:14:40 +01:00
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:
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.
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user