From de899ebc503e910bebe5470e060dc3c98c342152 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Tue, 10 Feb 2026 21:59:02 -0500 Subject: [PATCH] Fix apostrophe rendering: prevent HTML entities from matching as tags The TAG_RE regex in linkifyTags() was matching #39 inside ' as a tag, breaking the HTML entity and preventing apostrophe rendering. Added (? --- frontend/src/utils/tags.ts | 2 +- summary.md | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/utils/tags.ts b/frontend/src/utils/tags.ts index d72d49b..8c79cd3 100644 --- a/frontend/src/utils/tags.ts +++ b/frontend/src/utils/tags.ts @@ -1,5 +1,5 @@ const CODE_FENCE_RE = /```[\s\S]*?```|`[^`\n]+`/g; -const TAG_RE = /(?/g, ">"); diff --git a/summary.md b/summary.md index 2a38057..4f7469f 100644 --- a/summary.md +++ b/summary.md @@ -43,7 +43,8 @@ for AI-assisted features. compatible) over HTTP. - **Inline tag extraction:** Tags are extracted from note/task body text using `#tag` syntax (Obsidian-style), not manually entered. Backend is source of truth - for tag extraction. + for tag extraction. The `TAG_RE` regex uses `(?