Closed daattali closed 3 years ago
You're right that MathJax doesn't seem to work. I don't know enough about how mathjax works and it's unlikely I'll fix it, unless someone else knows how to fix it. The reason I say it's unlikely I'll fix it is because I know that many other packages also struggle with mathjax, and even shiny::insertUI()
doesn't seem to work with it:
library(shiny)
ui <- fluidPage(
withMathJax(div("$$\\sqrt{1}$$")),
actionButton("btn", "btn")
)
server <- function(input, output, session) {
observeEvent(input$btn, {
insertUI("body", "beforeEnd", withMathJax("$$\\sqrt{2}$$"))
})
}
shinyApp(ui, server)
When I tried googling for "mathjax sweetalert" I did notice that @timelyportfolio 's sweetalertR has a line that mentions mathjax so perhaps he has some information that can be helpful, but I wouldn't count on it
This is now supported
@daattali Is it possible to get a minimal example?
You can see the example used in the PR https://github.com/daattali/shinyalert/pull/57
Extracted from #51
Thanks for the report by @gueyenono :