Files
OrcaSlicer_WIKI/web_extras/katex.js
Ian Bassi 446931d895 KaTeX +Mermaid (#126)
* Add KaTeX support for math rendering in documentation

Introduced web_extras/katex.js and updated build scripts to copy it to the appropriate assets directories. Updated mkdocs.yml to include KaTeX CSS/JS and enabled pymdownx.arithmatex extension for math rendering. This enables LaTeX-style math support in the documentation.

* Add mermaid

Configured pymdownx.superfences in mkdocs.yml to support custom 'mermaid' code fences, enabling better integration of mermaid diagrams in documentation.
2026-01-18 14:48:54 -03:00

17 lines
464 B
JavaScript

if (typeof document$ !== 'undefined' && document$.subscribe) {
document$.subscribe(({ body }) => {
if (typeof renderMathInElement !== 'function') {
return;
}
renderMathInElement(body, {
delimiters: [
{ left: '$$', right: '$$', display: true },
{ left: '$', right: '$', display: false },
{ left: '\\(', right: '\\)', display: false },
{ left: '\\[', right: '\\]', display: true },
],
});
});
}