Skip to content

Is it possible to disable autolinking in remark-gfm? #862

Answered by wooorm
Trott asked this question in Q&A
Discussion options

You must be logged in to vote

Is it possible to use remark-gfm but disable autolinking?

You could do what remark-gfm does — add micromark and mdast-util-{to,from} extensions/utilities — but without micromark-extension-gfm-autolink-literal and mdast-util-gfm-autolink-literal.

but I find that it links a lot of things that I don't intend to be links (and that GitHub doesn't link either--so maybe this is a bug?)

These are indeed bugs! I’ve spent a lot of time trying to reverse engineer what GitHub does. But it’s hard because it’s not specified and because they use different algorithms in different places.
I’d appreciate hearing about all the cases where our algorithm doesn’t match theirs.

I'm hoping to use remark-gfm…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@wooorm
Comment options

Answer selected by wooorm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants