Skip to content
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

Add Link definition node to the AST #22

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

chrisjsewell
Copy link
Member

@chrisjsewell chrisjsewell commented Jun 22, 2023

For HTML rendering, this is not necessary, since it is not rendered. But for use cases, such a "round-trip" rendering (MD -> MD), or syntax analysis tools, it would be necessary to have this present in the AST.

(similarly capturing the original labels of link references would also be required but, if accepted, I can add that in a separate PR)

For HTML rendering, this is not necessary, since it is not rendered.
But for use cases, such a "round-trip" rendering (MD -> MD), or syntax analysis tools, it would be necessary to have this present in the AST.

(similarly capturing the labels of link references would also be required but, if accepted, I can add that in a separate PR)
@rlidwka
Copy link
Collaborator

rlidwka commented Jul 6, 2023

Looks good to me.

Not sure about name, what are the chances that Definition is gonna collide with something like footnote definitions?

@rlidwka rlidwka merged commit 19f4a9e into markdown-it-rust:master Aug 3, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants