Skip to content
New issue

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

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

Already on GitHub? # to your account

Bare URLs are getting cleared #306

Closed
akishind-medlinx opened this issue Jul 17, 2024 · 1 comment · Fixed by #340
Closed

Bare URLs are getting cleared #306

akishind-medlinx opened this issue Jul 17, 2024 · 1 comment · Fixed by #340
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@akishind-medlinx
Copy link

akishind-medlinx commented Jul 17, 2024

If the initial markdown text contains bare links (as plain text, i.e. not formatted in []()), then these links are getting cleared and not visible in the editor.

For example, RichTextState.setMarkdownText("Before https://www.google.com after") will result in just "Before after" getting displayed, with the link being lost.

Edit: the same happens if the initial text contains just "www.", even without "https://", e.g. "www.google.com"

@akishind-medlinx akishind-medlinx changed the title Bare URLs getting cleared Bare URLs are getting cleared Jul 17, 2024
@akishind-medlinx
Copy link
Author

By the way, is there currently a way to disable encoding-decoding of links completely? If I want to treat them as just plain text (including formatted links [text](url))

@MohamedRejeb MohamedRejeb self-assigned this Jul 28, 2024
@MohamedRejeb MohamedRejeb added bug Something isn't working enhancement New feature or request labels Jul 28, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants