There is some inconsistent behaviour of text references in bookdown with URLs containing special characters such as :
or _
. Here are some demonstrations:
---
output: bookdown::pdf_book
---
(ref:good) [This Works](https://commons.wikimedia.org/wiki)
(ref:good)
(ref:bad) [This Does Not](https://commons.wikimedia.org/wiki/File:Linear_visible_spectrum.svg)
(ref:bad)
The link will work normally [like here](https://commons.wikimedia.org/wiki/File:Linear_visible_spectrum.svg)
Is there a way to get text references to work if they contain special characters?
This behaviour was flagged in this question here, but the symbols were not directly identified as the key issues within the question. I wanted to make a focussed thread on SO before raising it as a potential issue on GitHub.