fix: account for subtags in numerical tags

This commit is contained in:
Emile Bangma 2024-09-14 17:21:38 +00:00
parent eb9bbd1666
commit 34695eea12

View File

@ -324,8 +324,8 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
replacements.push([
tagRegex,
(_value: string, tag: string) => {
// Check if the tag only includes numbers
if (/^\d+$/.test(tag)) {
// Check if the tag only includes numbers and slashes
if (/^[\/\d]+$/.test(tag)) {
return false
}