server/examples.rst
.. _node-examples:
########################### Examples of MathJax in Node ###########################
There are a number of examples of using MathJax from within node documents available within this documentation.
:ref:node-components
A Complete Example (with Speech) <node-component-example>:ref:node-preload
preload-import-texpreload-import-newcmpreload-require-newcmpreload-import-cjspreload-import-speech:ref:node-direct
:ref:direct-tex2mml
:ref:direct-tex2chtml
direct-text2chtml-removedirect-text2chtml-promisedirect-tex2chtml-font:ref:direct-tex2chtml-mixed
:ref:direct-tex2speech
:ref:direct-tex2svg-page
:ref:Replacement for Sre.toSpeech() <v4-breaking-speech>
In addition, the MathJax Node Demos <https://github.com/mathjax/MathJax-demos-node#MathJax-demos-node>__
repository includes numerous examples of how to use MathJax from a
node application. There are examples using modern ESM modules, and
others using the older CommonJS format. These are each grouped into
several categories that illustrate four different ways to access the
MathJax code. The main examples use MathJax's LiteDOM implementation,
but there are also some examples using other DOM replacements.
|btight|
Using MathJax components in ESM modules <https://github.com/mathjax/MathJax-demos-node/tree/master/mjs>__Using MathJax components in CJS modules <https://github.com/mathjax/MathJax-demos-node/tree/master/cjs>__Using MathJax with alternative DOM implementations <https://github.com/mathjax/MathJax-demos-node/tree/master/dom>__|etight|
|-----|