Skip to content
Discussion options

You must be logged in to vote

Heya,
the way Markdown parsers work, you cannot parse separately the link references and the link definitions:
they make a first parse of the syntax "blocks", and gather the link definitions,
then make a second parse of the inline syntax within the blocks.
The inline syntax [abc] is only considered to be a link reference, if there is a matching link definition available, otherwise it is just parsed as text.

You can try this out here: https://markdown-it.github.io/

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cjolowicz
Comment options

@ZviBaratz
Comment options

Answer selected by cjolowicz
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