This example shows how to use the tex-chtml component to process a complete HTML page containing TeX notation into math using the CommonHTML format.

The key lines are

  MathJax = {
    tex: {inlineMath: [['$', '$'], ['\\(', '\\)']]}
  <script id="MathJax-script" async src=""></script>

which configures the TeX input jax to include single dollar signs as in-line math delimiters, and then loads the tex-chtml component. The rest is handled by MathJax automatically.

Run the example