mirror of
https://github.com/OrcaSlicer/OrcaSlicer_WIKI.git
synced 2026-05-17 08:35:46 +03:00
* 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.
17 lines
464 B
JavaScript
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 },
|
|
],
|
|
});
|
|
});
|
|
}
|