mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Unable to get original content for LinkReferenceDefinitionGroup #649
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 @doggy8088 on GitHub (Jan 23, 2024).
I'm parsing a Markdown document that contains LinkReferenceDefinitionGroup . When I call
ToPositionText()method for that part of the MarkdownDocument, the line and column will be0and0, and the Range is wrong too. I don't know how to fix this. Any hint?@xoofx commented on GitHub (Jan 23, 2024):
LinkReferenceDefinitionGrouphas no parsing equivalent so cannot have a representation in text. It is just used internally to groupLinkReferenceDefinitionand query for links.@doggy8088 commented on GitHub (Feb 22, 2024):
It because I use Markdig to traversal the Markdown document for translation purpose. I need to keep all the content as-is. When I parse to the
LinkReferenceDefinitionGroup, I don't have the position info. So that I can't get the original content. I need that info the keep my final Markdown document complete.Can you still provide Position info for this block?