When I knit the following Rmd file to pdf, the # in the link to the bookdown book is converted to %23 and doesn't work. The link works fine if the Rmd is knitted to html instead of pdf.
I tried escaping the # with \ and \\; neither worked.
---
output: pdf_document
urlcolor: blue
---
This link does not work in the rendered pdf:
https://bookdown.org/yihui/bookdown/markdown-syntax.html#inline-formatting
Is there any way to get such a link to work in a rendered pdf document?
\url{}like this:\url{https://bookdown.org/yihui/bookdown/markdown-syntax.html#inline-formatting}, and see if that works. You may have to include\usepackage{hyperref}in your.Rmdas well. - Justin Singh-M.