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

Enable fixing links for other formats #2511

Open
noukenolife opened this issue Dec 23, 2024 · 0 comments
Open

Enable fixing links for other formats #2511

noukenolife opened this issue Dec 23, 2024 · 0 comments
Labels
C-enhancement Category: Enhancement or feature request

Comments

@noukenolife
Copy link

Problem

Currently, it seems link fixes (fix .md to .html) are only applied to the rendered html. So, links in other formats such as LaTex are not fixed.

https://github.com/rust-lang/mdBook/blob/master/src/utils/mod.rs#L142-L161

Example (LaTex)

Before Fix:
$$
\href{./index.md}{link}
$$

After Fix:
$$
\href{./index.html}{link}
$$

Proposed Solution

Applying link fixes for all formats seems too much, so we might be able to at least cover supported format in mdBook such as LaTex.

Notes

No response

@noukenolife noukenolife added the C-enhancement Category: Enhancement or feature request label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Enhancement or feature request
Projects
None yet
Development

No branches or pull requests

1 participant