From 83269ac26e41f8e81b56e000b4347ee60d4ff84b Mon Sep 17 00:00:00 2001 From: Jacky Zhao <j.zhao2k19@gmail.com> Date: Sat, 12 Aug 2023 06:40:06 +0000 Subject: [PATCH] fix scanning for tags in content --- quartz/plugins/transformers/ofm.ts | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/quartz/plugins/transformers/ofm.ts b/quartz/plugins/transformers/ofm.ts index e7438aa..a371efb 100644 --- a/quartz/plugins/transformers/ofm.ts +++ b/quartz/plugins/transformers/ofm.ts @@ -115,7 +115,7 @@ const calloutRegex = new RegExp(/^\[\!(\w+)\]([+-]?)/) // (?:^| ) -> non-capturing group, tag should start be separated by a space or be the start of the line // #(\w+) -> tag itself is # followed by a string of alpha-numeric characters -const tagRegex = new RegExp(/(?:^| )#(\w+)/, "g") +const tagRegex = new RegExp(/(?:^| )#([\w-_\/]+)/, "g") export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options> | undefined> = ( userOpts, -- Gitblit v1.10.0