fix: account for subtags in numerical tags (closes #1408) (#1410)

This commit is contained in:
Emile Bangma 2024-09-15 17:25:31 +02:00 committed by GitHub
parent eb9bbd1666
commit cd3bb25626
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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