import {mathjax} from 'mathjax-full/js/mathjax.js';
import {MathML} from 'mathjax-full/js/input/mathml.js';
import {CHTML} from 'mathjax-full/js/output/chtml.js';
import {liteAdaptor} from 'mathjax-full/js/adaptors/liteAdaptor.js';
import {RegisterHTMLHandler} from 'mathjax-full/js/handlers/html.js';
import {AssistiveMmlHandler} from 'mathjax-full/js/a11y/assistive-mml.js';
const defaultOptions = {
"assistiveMml" : true,
"css":false,
"em": 16,
"ex": 8,
"inline": true,
"width": 80 * 16,
};
const adaptor = liteAdaptor();
const handler = RegisterHTMLHandler(adaptor);
const mml = new MathML();
const chtml = new CHTML({fontURL: defaultOptions.fontURL});
const html = mathjax.document('', {InputJax: mml, OutputJax: chtml});
//get the math css
const getMathCss = () => {
const mcss = adaptor.textContent(chtml.styleSheet(html));
console.log(mcss);
return mcss;
};
const transformServerMath = (mathnode, options) => {
...
};
export {transformServerMath, getMathCss};