question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LinkExtension – Characters interpreted as markdown when pasting link

See original GitHub issue

Summary

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:

image

In my own usage of remirror it actually results in an infinite loop as getMarkRange here returns an incorrect range:

image

(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 and ItalicExtension

Expected results

  • Link is not formatted

Actual results

  • Link contains italic text

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
Amethystafyy282commented, Apr 5, 2022

Sorry to bother you, @ifiokjr, but the underscore still being removed in the pasted link, is there a way to prevent that? Thank you.

0reactions
ifiokjrcommented, Mar 14, 2021

Fixed in beta.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handbook Markdown Guide - GitLab
Read through our Markdown kramdown Style Guide!
Read more >
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found