Skip to content

Files

Latest commit

ca20e6b · Aug 28, 2016

History

History
This branch is 241 commits behind rstudio/shiny-examples:main.

019-mathjax

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 18, 2014
Apr 22, 2014
Aug 28, 2016
Aug 28, 2016

The function withMathJax() is a wrapper function to load the MathJax library in a shiny app. For static HTML content, we only need to call withMathJax() once. However, for dynamic UI output via renderUI(), we must wrap the content that contains math expressions in withMathJax(), because we have to call the MathJax function MathJax.Hub.Queue(["Typeset", MathJax.Hub]) to render math manually, which is what withMathJax() does.