I have a function that generates a variable number of plotly
graphics and creates R markdown headers such as
### Caption for plot
These headers ultimately appear in a floating table of contents in an R markdown html report produced under RStudio.
I know how to use htmltools::tagList
to produce a sequence of html
and plotly
objects that will render all in one stream, but I don't see how to substitute markdown
for the htmltools::HTML('foo')
piece of an htmltools::tagList(list(plot_ly(...), HTML('caption stuff), ...))
element.