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

markdown mode link highlight #5527

Closed
kyuwoo-choi opened this issue Aug 13, 2018 · 2 comments
Closed

markdown mode link highlight #5527

kyuwoo-choi opened this issue Aug 13, 2018 · 2 comments

Comments

@kyuwoo-choi
Copy link

markdown mode highlights text below

[text having square bracket

image

But It is actually not a link yet.

image

The text should not be highlighted.

@marijnh
Copy link
Member

marijnh commented Aug 13, 2018

The mode can't look ahead and determine whether the bracket corresponds to a well-formed link, so it has to work this way—assuming something that may start a link actually does so. Full Markdown parsers work very differently from typical programming language parsers, but in a highligher, we do have to work in a single pass.

@marijnh marijnh closed this as completed Aug 13, 2018
@cybaek
Copy link

cybaek commented Aug 14, 2018

If a user invokes '[' on the middle of document, "the rest of document" will have a blue line. It's awkward for users.

image

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

No branches or pull requests

3 participants