From fcd81353f88b613e5e93c089e10e530d08695b3f Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 01 Jun 2023 23:48:38 +0000
Subject: [PATCH] heading linking

---
 quartz/plugins/transformers/ofm.ts |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/quartz/plugins/transformers/ofm.ts b/quartz/plugins/transformers/ofm.ts
index 9215e2c..7569797 100644
--- a/quartz/plugins/transformers/ofm.ts
+++ b/quartz/plugins/transformers/ofm.ts
@@ -42,9 +42,9 @@
 
             } else {
               const [path, rawHeader, rawAlias] = capture
-              const header = rawHeader?.slice(1).trim() ?? ""
+              const anchor = rawHeader?.slice(1).trim() ?? ""
               const alias = rawAlias?.slice(1).trim() ?? path
-              const url = slugify(path.trim() + header)
+              const url = slugify(path.trim() + anchor)
               return {
                 type: 'link',
                 url,

--
Gitblit v1.10.0