From 355aa2231879468bf9b08d1322710619c8d1fdb1 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed, 31 Jan 2024 19:52:10 +0000
Subject: [PATCH] docs: fix outdated comment on rebuild debounce behaviour
---
quartz/plugins/transformers/ofm.ts | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/quartz/plugins/transformers/ofm.ts b/quartz/plugins/transformers/ofm.ts
index d58eaf6..7cd9499 100644
--- a/quartz/plugins/transformers/ofm.ts
+++ b/quartz/plugins/transformers/ofm.ts
@@ -387,10 +387,7 @@
match.input.slice(calloutDirective.length).trim() || capitalize(calloutType)
const titleNode: Paragraph = {
type: "paragraph",
- children:
- restOfTitle.length === 0
- ? [{ type: "text", value: titleContent + " " }]
- : restOfTitle,
+ children: [{ type: "text", value: titleContent + " " }, ...restOfTitle],
}
const title = mdastToHtml(titleNode)
--
Gitblit v1.10.0