fix(styles): style callout titles on .callout-title-inner (obsidian-flavored-markdown renders no <p> there, as in Obsidian)

This commit is contained in:
saberzero1 committed 2026-11-21 19:08:56 +01:00
1 parent 842a293ab1
commit 9c46b01c57
2 files changed
+10

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@jackyzha0/quartz": patch
---
Callout titles are styled on `.callout-title-inner` itself (colour, margin, line height), as obsidian-flavored-markdown now renders the title there without a `<p>`, as in Obsidian. The `> p` rule stays for sites on an older obsidian-flavored-markdown.
+5
View File
@@ -161,6 +161,9 @@
--callout-icon: var(--callout-icon-fold);
}
// The title's text sits in .callout-title-inner, as in Obsidian; obsidian-flavored-markdown
// before 2.3.1 wrapped it in a <p>
& > .callout-title-inner,
& > .callout-title-inner > p {
color: var(--color);
margin: 0;
@@ -185,5 +188,7 @@
.callout-title-inner {
font-weight: $semiBoldWeight;
// the line height the title had as a <p>
line-height: 1.6rem;
}
}