How do I configure Mathjax?
Michael-Pascale opened this issue · 5 comments
How do I configure these options:
http://docs.mathjax.org/en/latest/options/document.html?highlight=Configuration#the-configuration-block
In the context of this demo:
https://github.com/mathjax/MathJax-demos-node/blob/master/direct/tex2chtml .
Thanks,
They go on line 93:
MathJax-demos-node/direct/tex2chtml
Line 93 in 0602206
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?
The first one.
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!