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

Preserve link IDs when possible #367

Open
Beanow opened this issue Oct 21, 2023 · 1 comment
Open

Preserve link IDs when possible #367

Beanow opened this issue Oct 21, 2023 · 1 comment

Comments

@Beanow
Copy link

Beanow commented Oct 21, 2023

As a small readability feature when looking at the output markdown, it'd be nice if existing IDs in docs like:

[Have you a link][some-link-id]

[some-link-id]: https://github.com/msrd0/cargo-doc2readme

Were preserved and didn't turn into:

[Have you a link][__link0]

[__link0]: https://github.com/msrd0/cargo-doc2readme

It looks like this would depend on pulldown-cmark/pulldown-cmark#434
Which got resolved, but is not yet released in a new crate version (seems planned to be v0.10.0).
https://github.com/raphlinus/pulldown-cmark/blob/80eeca9ca87b55e5114db019b93b50aadc2a66cf/src/lib.rs#L187-L188

@msrd0
Copy link
Owner

msrd0 commented Oct 21, 2023

It looks like this is blocked on a new release from pulldown-cmark.

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

2 participants