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([
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
}