Skip to content

Feature: support converting between inline links and reference links #21

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

Open
gibfahn opened this issue Mar 5, 2025 · 1 comment
Open

Comments

@gibfahn
Copy link

gibfahn commented Mar 5, 2025

See https://stackoverflow.com/questions/30917399/convert-markdown-links-from-inline-to-reference for a full example.

Basically looking for an automated way to go from:

[text](url)

... rest of doc

To:

[text][]

... rest of doc

[text]: url
@gibfahn
Copy link
Author

gibfahn commented Mar 5, 2025

There are lots of more complicated things that could be done, like not creating the [text]: url link definition if it already exists, or using a custom name like:

[text][label]

... rest of doc

[label]: url

but this simple version would cover the common use-case.

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

No branches or pull requests

1 participant