Closed gueyenono closed 3 years ago
I've opened a separate issue #54 for the mathjax issue.
Can you post a reprex or a small code sample to show the issue you describe with bs4dash boxes?
@gueyenono I plan on submitting shinyalert to CRAN soon for a new version, so let me know if I should wait for this
@daattali Actually, I just tested it. It seems that the call to withMathJax(includeHTML("www/document.html"))
is the culprit here. When I comment it out and launch my example above, the problem vanishes for some reason. So, the two issues are indeed linked I guess.
So can I close this issue?
First, I'd like to thank you very much for an awesome package.
I am experiencing a few oddities when using
shinyalert
inside abs4Dash
application. What follows could be reported in two distinct issues and I could do that if need be.MathJax is not rendered
I am rendering an Rmarkdown (actually bookdown) HTML document inside
shinyalert
. Although the document is displayed properly inside the modal, the MathJax equations are not rendered despite the use ofshiny::withMathJax()
.Overall aspect of boxes changes
I am using
bs4Dash::box
-es inside my application and whenever I open theshinyalert
containing my HTML document the font size of the box titles shrinks, horizontal scrollbars appear in my boxes and the overall layout of the app changes slightly. I must add that, to my knowledge, this behavior ONLY occurs when I include a rendered HTML document inside theshinyalert
modal.Reproducible example
Since my reproducible example involves 2 files, I created the following repository, which can be easily cloned:
https://gitlab.com/gueyenono/rmarkdown-shinyalert-mathjax
app.R
document.Rmd (to be knit to HTML)