Skip to content

Tilde nbsp deprecation#1325

Merged
jaapio merged 2 commits intomainfrom
tilde-nbsp-deprecation
Apr 7, 2026
Merged

Tilde nbsp deprecation#1325
jaapio merged 2 commits intomainfrom
tilde-nbsp-deprecation

Conversation

@jaapio
Copy link
Copy Markdown
Member

@jaapio jaapio commented Apr 7, 2026

No description provided.

The tilde character (~) was converted to a non-breaking space, a
behavior inherited from doctrine/rst-parser that does not match the
reStructuredText specification or Sphinx behavior.

Add a `disableLegacyTilde` flag to InlineLexer, passed through
InlineParser, and enabled by default in the DI configuration. When
enabled, ~ is treated as a regular character. The :nbsp: text role
remains available for explicit non-breaking spaces.
The legacy tilde-to-NBSP behavior is now preserved by default.
Users who want the new behavior can explicitly set disableLegacyTilde to true.
@jaapio jaapio enabled auto-merge April 7, 2026 18:58
@jaapio
Copy link
Copy Markdown
Member Author

jaapio commented Apr 7, 2026

This fixes the style issue in #1324

@jaapio jaapio merged commit a48668a into main Apr 7, 2026
58 checks passed
@jaapio jaapio deleted the tilde-nbsp-deprecation branch April 7, 2026 19:05
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