LinkExtension – Characters interpreted as markdown when pasting link
See original GitHub issueSummary
Pasting a link that contains valid markdown syntax causes unusually behavior, for example this link https://www.reddit.com/r/aww/comments/k05w86/awoo_on_a_cold_day/
when pasted in the playground results in parts of the link becoming italic:
In my own usage of remirror it actually results in an infinite loop as getMarkRange
here returns an incorrect range:
(note that the end of the link is missing). So far I’ve been unable to reproduce this in the playground, but it seems like fixing the incorrect interpretation as markdown within the link would also fix the infinite loop even though it’s not reproducible.
Steps to reproduce
- Paste the link above into an editor with
LinkExtension
andItalicExtension
Expected results
- Link is not formatted
Actual results
- Link contains italic text
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Basic Syntax - Markdown Guide
Formatting Links. To emphasize links, add asterisks before and after the brackets and parentheses. To denote links as code, add backticks in the...
Read more >Markdown Syntax Documentation - Daring Fireball
Compare the above examples: using reference-style links, the paragraph itself is only 81 characters long; with inline-style links, it's 176 characters; and as ......
Read more >Format Link
To format the link of the active tab instantly to use in Markdown, ... of Format Link extension to copy a link in...
Read more >How to avoid hyperlink creation when writing down URIs in ...
I've jammed Markdown's radar with some empty markup (an empty link with no ... One solution to this is the use of HTML...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sorry to bother you, @ifiokjr, but the underscore still being removed in the pasted link, is there a way to prevent that? Thank you.
Fixed in beta.