mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-09 21:42:15 +00:00
Broken handling of link blocks separated by \r\n #456
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 @ForNeVeR on GitHub (Apr 10, 2021).
The problem
Markdig seems to have a problem parsing the link blocks separated with
\r\n. By "link blocks", I mean blocks like this (I usually put them at the end of a section or the whole document):Only one of these links will be currently parsed.
Example code
(used Markdig 0.24.0)
I expect two identical sets of output from this code:
But in reality, the outputs are different:
@MihaZupan commented on GitHub (Apr 10, 2021):
Looks like a regression from #481. cc @generateui
@ForNeVeR I would suggest switching from 0.24 to 0.23 that doesn't have these issues.
I'll try to look into what's happening here this weekend.
@xoofx commented on GitHub (Jun 10, 2021):
This should be fixed by
4c92fe5and available in up-coming 0.25.0I just started to have a look this morning and it took quite a bit of time to dig into this bug. Trivias handling is definitely complicating the code and its debugging.