Act fast, special offers end soon! Up to $294 is savings when you get Premium today.
Get offer codes

Html_preserve appears around images

https://app.dataquest.io/m/552/guided-project%3A-creating-a-project-portfolio/7/a-useful-utility-function

I’m having trouble with the function below. I get a
<!--html_preserve--> appearing around my image. This only happens in the app and not in the html file created.

My Code:
In global.R

rmd2UI <- function(file_path) {

  # knits the file quietly and places it in the Shiny directory
  knit_file <- knitr::knit(input = file_path, quiet = TRUE)

  # Takes the knit file and converts it into 
  rendered_rmd <- HTML(markdown::markdownToHTML(knit_file, fragment.only = TRUE))

  return(rendered_rmd)
}

I have the following in splash.rmd

img(src = "picture.png")

server.R

output$splash_page <- renderUI({
        rmd2UI("./www/Splash.Rmd")
    })

and in ui.R

uiOutput("splash_page")