-
-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make collected link refs available to converters #516
Comments
Thanks for the proposal! Some thoughts:
|
I'd probably go with the same form that is used to pass links to the :link_defs option. That way, it's consistent and expected.
Personally, I'm only interested in the last one that wins. But I understand that others might want to have all of them. If we go down that path, then I would assume each ID would be mapped to an array.
That works for me! |
Okay, so the normalized form than since the link IDs passed via the
Since we will use the normalized link ID, this won't be a problem.
Great! Then the root node of the AST it is. |
I'll proceed with preparing a PR as soon as I get a chance. |
@mojavelinux Did you by chance prepare a PR for this? Is this still of interest to you? |
When converting back to a lightweight markup syntax (such as Markdown to Markdown) it would be helpful if the link defs found by the parser were made available to the converter (either via the AST or converter options). This would allow references to be restored. Currently, this information is dropped once parsing is complete and all signs of these link refs vanish from the parsed tree.
I'd be happy to work on a proposed change if this idea is accepted.
The text was updated successfully, but these errors were encountered: