mirror of
https://github.com/imfing/hextra.git
synced 2025-08-23 14:56:43 -04:00

* refactor(math): update LaTeX guide and enhance KaTeX integration - Revised the LaTeX documentation for clarity and improved structure, changing section titles and descriptions for better understanding. - Added support for chemistry expressions using the mhchem extension. - Introduced a new KaTeX CSS loader partial to streamline the integration of KaTeX, allowing for configurable remote or local asset loading. - Updated the head partial to utilize the new KaTeX loader, enhancing the flexibility of math rendering options. * refactor(mathjax): simplify MathJax script URL configuration - Removed the dynamic version assignment for MathJax and set a fixed version in the script URL for consistency and clarity. * docs(latex): enhance LaTeX guide and clarify chemistry expressions - Updated section titles for better clarity, changing "Supported Functions" to "Chemistry Expressions." - Improved description of the mhchem extension for rendering chemistry equations. - Removed redundant instructions regarding the passthrough extension in Hugo. - Corrected minor typographical errors in references to MathJax.
21 lines
451 B
HTML
21 lines
451 B
HTML
{{/* MathJax */}}
|
|
{{ $mathjaxJsUrl := "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js" -}}
|
|
<script defer id="MathJax-script" src="{{ $mathjaxJsUrl }}" crossorigin="anonymous" async></script>
|
|
<script>
|
|
MathJax = {
|
|
loader: {
|
|
load: ["ui/safe"],
|
|
},
|
|
tex: {
|
|
displayMath: [
|
|
["\\[", "\\]"],
|
|
["$$", "$$"],
|
|
],
|
|
inlineMath: [
|
|
["\\(", "\\)"],
|
|
["$", "$"],
|
|
],
|
|
},
|
|
};
|
|
</script>
|