Skip to content

FIX: url escaping on rich editor when autolink/linkify #34164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 8, 2025

Conversation

renato
Copy link
Contributor

@renato renato commented Aug 8, 2025

When the content of the link URL is in the document itself, like in <https://www.example.com> or www.example.com, we need to flag it to the serializer so it doesn't try to escape it.

ProseMirror's markdown serializer uses state.inAutoLink as a signal to avoid this escaping.

@renato renato force-pushed the fix_rte_link_escaping branch from a3dc356 to c2c9544 Compare August 8, 2025 03:22
@renato renato merged commit a20bedb into main Aug 8, 2025
16 checks passed
@renato renato deleted the fix_rte_link_escaping branch August 8, 2025 12:20
@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/pasted-urls-in-rich-text-editor-improperly-escape-tilde-character/377739/4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants