Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

New markdown format can clash with links #79

Open
nperichSYKES opened this issue May 19, 2018 · 1 comment
Open

New markdown format can clash with links #79

nperichSYKES opened this issue May 19, 2018 · 1 comment
Labels

Comments

@nperichSYKES
Copy link

nperichSYKES commented May 19, 2018

URLs often have _ in them. But using _ for italic breaks up the link into italic pieces.

For example, copy in the link to the wikipedia GDPR page:
https://en.wikipedia.org/wiki/General_Data_Protection_Regulation

I'm not sure how to handle this case. But it basically means I have to turn off automatic markdown support since in my editor copying in links is far more common than using markdown to format.

One option is italic should require a space. But this is not ideal... imagine a document teaching a foreign language that emphasizes parts of the word.

Another option is that it infers the intent of a link from beginning with "http" or "www" and drops out of markdown checking.

Thanks for your work on this fork!

EDIT: I just noticed that an issue about not parsing pastes was originally about links. Just keeping this around since you might type a link as well as paste one, in which case the problem remains.

@mxstbr mxstbr added the bug label May 20, 2018
@mxstbr
Copy link

mxstbr commented May 20, 2018

Yeah true—we should probably make sure the first markdown delimiter is after a word boundary or something.

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

No branches or pull requests

2 participants