Skip to content

autolink dueling algorithms #49

Answered by wooorm
agriffis asked this question in Q&A
Feb 19, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Some more info is here: micromark/micromark-extension-gfm-autolink-literal#6.
I only recently realised that GH employs two widely differing algorithms, which they don’t document. That thread above shows how I figured it out. The main thing is that the “parsing” works if there are no “open” brackets. The “AST” one works if there is an open [.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@agriffis
Comment options

@wooorm
Comment options

@ChristianMurphy
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
3 participants