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

GFM autolink #528

Closed
wants to merge 1 commit into from
Closed

GFM autolink #528

wants to merge 1 commit into from

Conversation

zhengjia
Copy link

This implements the ability to parse a http/https link to html, e.g. http://www.example.com.
It fixes #306.

@zhengjia
Copy link
Author

zhengjia commented Jun 27, 2018

CI failed. Looks like this should not be parsed to an html link

<div>
http://example.com
</div>

(from https://github.com/gettalong/kramdown/blob/master/test/testcases/block/09_html/not_parsed.text#L23)

@zhengjia
Copy link
Author

zhengjia commented Jul 2, 2018

I ended up using a different regex and realized it's not easy to get the regex right and it might be different case-by-case. I'll close this PR but hopefully it might be useful for someone.

@zhengjia zhengjia closed this Jul 2, 2018
@ghost ghost mentioned this pull request Nov 20, 2018
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 this pull request may close these issues.

URLs are not autolinked in GFM mode
1 participant