fix: decode HTML entities in wikilinks before re-escaping #11

Merged
bvandeusen merged 0 commits from dev into main 2026-03-25 22:50:01 -04:00
bvandeusen commented 2026-03-25 22:49:55 -04:00 (Migrated from git.fabledsword.com)

Summary

  • Fix wikilinks with special characters (e.g. ") rendering as " in note preview
  • marked encodes "" in text nodes; linkifyWikilinks was double-escaping the &, producing visible " in the link text and broken href URLs
  • Decode marked's HTML entities on the matched title/label before re-escaping for attribute and text output
## Summary - Fix wikilinks with special characters (e.g. `"`) rendering as `"` in note preview - `marked` encodes `"` → `"` in text nodes; `linkifyWikilinks` was double-escaping the `&`, producing visible `"` in the link text and broken `href` URLs - Decode marked's HTML entities on the matched title/label before re-escaping for attribute and text output
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bvandeusen/FabledScribe#11