mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-09 21:42:15 +00:00
Link reference definitions must be separated by blank lines #513
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jo3w4rd on GitHub (Mar 11, 2022).
The common mark spec (line 3113 or so) states:
However, when I try this, only the first definition is recognized and used. All subsequent definitions are ignored and their matching link references are not treated as links.
For example:
Is converted into HTML as:
If I insert a blank line after each definition, the links are constructed properly:
This appears to be a parsing problem, not an HTML rendering problem. The links are missing in the syntax tree after
Markdown.Parse().Code:
@jo3w4rd commented on GitHub (Mar 11, 2022):
Whoops, I had left Markdig on an older version after testing the track trivia problem. This has been fixed (sometime between nuget version 24 and 27).