mathpix-markdown-it
Version:
Mathpix-markdown-it is an open source implementation of the mathpix-markdown spec written in Typescript. It relies on the following open source libraries: MathJax v3 (to render math with SVGs), markdown-it (for standard Markdown parsing)
50 lines • 1.65 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
//TODO: use AMS numbering once the package will be available
var MathJaxConfig = {
TeX: {
packages: ['base', 'ams', 'boldsymbol', 'html', 'newcommand', 'unicode', 'color', 'mhchem', 'enclose', 'extpfeil', 'empheq', 'cases',
'cancel',
'fix-unicode', 'icon'],
tagSide: "right",
tagIndent: "0.8em",
multlineWidth: "100%",
useLabelIds: true,
tags: "ams",
inlineMath: [
// start/end delimiter pairs for in-line math
["$", "$"],
["\\(", "\\)"]
],
displayMath: [
// start/end delimiter pairs for display math
["$$", "$$"],
["\\[", "\\]"]
],
processEscapes: true,
processEnvironments: true,
processRefs: true,
maxMacros: 10000,
maxBuffer: 15 * 1024 // maximum size for the internal TeX string (5K) //5 * 1024
},
asciimath: {
delimiters: [['<ascii>', '</ascii>'], ['`', '`']]
},
MathML: {
parseAs: "html",
forceReparse: true //Need to set true. Have bug in MathJax 3.0.1
//forceReparse: false // Force the MathML to be reparsed?
// (e.g., for XML parsing in an HTML document)
},
HTML: {
scale: 1,
mathmlSpacing: false,
exFactor: 0.5 // default size of ex in em units when ex size can't be determined
},
SVG: {
fontCache: 'none', // or 'global' or 'local',
},
CHTML: null
};
exports.default = MathJaxConfig;
//# sourceMappingURL=mathJaxConfig.js.map