Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mathjax not rendering #57

Closed
EinMaulwurf opened this issue Feb 22, 2024 · 2 comments
Closed

Mathjax not rendering #57

EinMaulwurf opened this issue Feb 22, 2024 · 2 comments

Comments

@EinMaulwurf
Copy link

Problem: Mathjax is not rendering when inside a shinylive-r app.

Minimum Reproducible Example:

ui <- fluidPage(
  titlePanel("Example"),
  withMathJax(),
  helpText('An irrational number \\(\\sqrt{2}\\)')
)

server <- function(input, output) {}

shinyApp(ui = ui, server = server)

running as a "normal" shiny app works fine, but when it's inside a shinylive-r environment it does not render properly.

Bildschirmfoto 2024-02-22 um 18 40 32
@georgestagg
Copy link
Collaborator

This is a duplicate of #49, and the same underlying problem as #51.

Should be fixed by posit-dev/shinylive#112.

@EinMaulwurf
Copy link
Author

Thanks.

I fixed it by including

library(shiny)
options(shiny.mathjax.url = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants