Skip to content

Add normalize whitespace built-in filter#1260

Open
clementbiron wants to merge 2 commits into
mainfrom
add-normalize-whitespace-filter
Open

Add normalize whitespace built-in filter#1260
clementbiron wants to merge 2 commits into
mainfrom
add-normalize-whitespace-filter

Conversation

@clementbiron

Copy link
Copy Markdown
Member

Some documents use Unicode space separators (non-breaking space U+00A0, narrow no-break space U+202F, ideographic space U+3000, ...) instead of regular spaces. These characters are visually identical to a normal space but differ byte-for-byte, which produces blink when tracking terms.

This changeset adds a normalizeWhitespace built-in filter that replaces every Unicode space separator (\p{Zs}) with a regular space in the text nodes of the page.

@clementbiron clementbiron requested a review from Ndpnt July 2, 2026 12:24
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.

1 participant