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

Multi-line links inside lists confuse syntax highlighting. #113

Open
alercah opened this issue Mar 20, 2017 · 2 comments
Open

Multi-line links inside lists confuse syntax highlighting. #113

alercah opened this issue Mar 20, 2017 · 2 comments

Comments

@alercah
Copy link

alercah commented Mar 20, 2017

Links that span multiple lines inside lists confuse the highlighting:

1. [foo
     bar](baz)

In this case, "foo bar" should get the link highlight. Instead, "foo" gets the link highlight, "bar" does not, and then the rest of the document (!) gets highlighted as links.

@tpope
Copy link
Owner

tpope commented Mar 21, 2017

Removing markdownLineStart from the contains on markdownLinkText seems to fix it. Can you try that for a week and report back as to whether that causes any problems?

@tpope
Copy link
Owner

tpope commented Mar 21, 2017

And if there aren't any issues, a pull request would be great.

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

Successfully merging a pull request may close this issue.

2 participants