Skip to content

feat: highlight and decode HTML entities in the editor#9

Merged
dkrizan merged 1 commit into
mainfrom
bdshadow/html-entity-highlighting
Jun 30, 2026
Merged

feat: highlight and decode HTML entities in the editor#9
dkrizan merged 1 commit into
mainfrom
bdshadow/html-entity-highlighting

Conversation

@bdshadow

Copy link
Copy Markdown
Member

Named (é), decimal (é) and hex (é) HTML character references are now parsed as a new "entity" placeholder, rendered as the decoded glyph inline with a subtle highlight. The raw entity stays in the stored value and shows in code mode / on hover, exactly like tags.

Matching is strict (requires a trailing ";" and a recognized reference), so a bare "&" in text is left untouched. Decoding uses the bundled "entities" library; entities inside tag attributes are skipped.

Named (é), decimal (é) and hex (é) HTML character
references are now parsed as a new "entity" placeholder, rendered as the
decoded glyph inline with a subtle highlight. The raw entity stays in the
stored value and shows in code mode / on hover, exactly like tags.

Matching is strict (requires a trailing ";" and a recognized reference),
so a bare "&" in text is left untouched. Decoding uses the bundled
"entities" library; entities inside tag attributes are skipped.
@dkrizan dkrizan merged commit d88c760 into main Jun 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants