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

Links to GitHub ".md" files changing to links to non-existent ".html" equivilents #763

JohnMount opened this Issue Jul 12, 2018 · 1 comment


None yet
2 participants
Copy link

JohnMount commented Jul 12, 2018

For GitHub projects with a (or README.Rmd) links that happen to link to ".md" files in the same GitHub project get converted from ".md" to ".html" during pkgdown::build_site() (and are thus broken as pkgdown is not in a position to produce those ".html" files). This is happening to links that are not part of the doc-tree and thus should not be translated. My guess is pkgdown thinks these are links under its management (thinks they are pointing into the doc area and need to change to ".html") when they are links to un-related sections of the package/project.

Minimal example explaining the issue here.

A work-around is to relpace ".md" with "%2Emd" to hide the links from the processor.

@JohnMount JohnMount referenced this issue Jul 12, 2018


Dead links #2


This comment has been minimized.

Copy link

hadley commented Sep 13, 2018

i.e. tweak_md_links() should check only modify relative paths, not paths that have a protocol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment