Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 729 Bytes

tex-chtml.html.md

File metadata and controls

18 lines (13 loc) · 729 Bytes

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

  <script>
  MathJax = {
    tex: {inlineMath: [['$', '$'], ['\\(', '\\)']]}
  };
  </script>
  <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></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