mirror of
https://github.com/alrayyes/wiki.git
synced 2025-06-07 14:16:40 +00:00
fix scanning for tags in content
This commit is contained in:
parent
ed62ece491
commit
83269ac26e
3 changed files with 4 additions and 5 deletions
quartz/plugins/transformers
|
@ -115,7 +115,7 @@ const commentRegex = new RegExp(/%%(.+)%%/, "g")
|
|||
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue