I have several html-formatted URLs in my bookdown .Rmd files that disappear in the generated PDF. It appears that the link is being ignored and the PDF only displays the text that should connect the link.
For example, <a href="https://www.cygwin.com" target="_blank">Cygwin</a>
simply appears as Cygwin (no hyperlink).
But when the website matches the displayed text, then it works fine (e.g.: <a href="https://www.cygwin.com" target="_blank">https://www.cygwin.com</a>
), presumably because the text is the link itself.
Is there a way to have bookdown preserve these html hyperlinks in the PDF output?
I am running the following to generate the PDF in R Studio:
render_book("index.Rmd", "bookdown::pdf_book")
And the top of index.Rmd looks like this:
title: "My Title"
site: bookdown::bookdown_site
documentclass: book
link-citations: yes
output:
bookdown::pdf_book:
pandoc_args: [--wrap=none]
urlcolor: blue