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

HTML not stripped from page title #1318

Closed
ramiromagno opened this issue Apr 30, 2020 · 1 comment
Closed

HTML not stripped from page title #1318

ramiromagno opened this issue Apr 30, 2020 · 1 comment
Labels
bug an unexpected problem or unintended behavior rd-translation 🎏

Comments

@ramiromagno
Copy link

Beginning of roxygen2 comment block:

#' \R's fundamental data type at C level
#'
#' @description
#' (...)

leads to this html page (please notice the html code surfacing in the html rendered output):

snap

It works fine though in RStudio's help page:

snap

So it seems that backslash in \R is messing up the parser.

@hadley
Copy link
Member

hadley commented Jul 18, 2020

The problem is that the page <title> includes <span class="R">R</span> which is not valid HTML.

@hadley hadley changed the title Using \R in roxygen documentation title breaks html output HTML not stripped from page title Jul 18, 2020
@hadley hadley closed this as completed in 9bed06c Jul 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior rd-translation 🎏
Projects
None yet
Development

No branches or pull requests

3 participants