Skip to content
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

Bare URLs are getting cleared #306

Open
akishind-medlinx opened this issue Jul 17, 2024 · 1 comment
Open

Bare URLs are getting cleared #306

akishind-medlinx opened this issue Jul 17, 2024 · 1 comment
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants