mathjax/MathJax-demos-node

How do I configure Mathjax?

Michael-Pascale opened this issue · 5 comments

dpvc commented

They go on line 93:

const html = mathjax.document('', {InputJax: tex, OutputJax: chtml});

as options to the document being created. Add them along side InputJax and OutputJax.

as an example:
{InputJax: tex, OutputJax: chtml, processHtmlClass: 'some-class'}
or
{ InputJax: tex, OutputJax: chtml, options: { processHtmlClass: 'some-class' } }

Secondary question: would using this processHtmlClass option increase performance over going through the entire document?

dpvc commented

The first one.

dpvc commented

would using this processHtmlClass option increase performance over going through the entire document?

Only slightly. MathJax will look through the whole document anyway (looking for ignoreHtmlClass and processHtmlClass).

Thanks! Those configurations work in that location!, and it did slightly improve performance, as you mentioned!