The Trans Directory
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: remove whitespace unicode from tag regex

+1 -1
+1 -1
quartz/plugins/transformers/ofm.ts
··· 123 123 // #(...) -> capturing group, tag itself must start with # 124 124 // (?:[-_\p{L}\d\p{Z}])+ -> non-capturing group, non-empty string of (Unicode-aware) alpha-numeric characters and symbols, hyphens and/or underscores 125 125 // (?:\/[-_\p{L}\d\p{Z}]+)*) -> non-capturing group, matches an arbitrary number of tag strings separated by "/" 126 - const tagRegex = new RegExp(/(?:^| )#((?:[-_\p{L}\d\p{Z}])+(?:\/[-_\p{L}\d\p{Z}]+)*)/, "gu") 126 + const tagRegex = new RegExp(/(?:^| )#((?:[-_\p{L}\d])+(?:\/[-_\p{L}\d]+)*)/, "gu") 127 127 const blockReferenceRegex = new RegExp(/\^([A-Za-z0-9]+)$/, "g") 128 128 129 129 export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options> | undefined> = (