Is it possible to dynamically render markdown and create tooltips on the output?
I imagine some .md document like
# myfile.md
This is a <span class="tippy", data-tippy-content="markdown is a simple text
format">markdown</span> document.
(the idea of "data-tippy-content" comes from the examples section of the "tippy" package.)
The shiny app would then look like
library(shiny)
library(tippy)
shinyApp(
ui = fluidPage(
shiny::markdown(readLines("myfile.md")),
tippy_this(".tippy")
),
server = function(input, output, session) {}
)
However, when I run this, I get an error "must pass tooltip.".
Any hint appreciated!