add @burgerga's math plugin with MathJax2, MathJax3 and KaTeX support #2559

This commit is contained in:
hakimel
2021-10-28 13:41:57 +02:00
parent 810d80bc3c
commit 0ea4193001
8 changed files with 283 additions and 101 deletions

View File

@ -182,8 +182,7 @@
history: true,
transition: 'linear',
math: {
// mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js',
mathjax2: {
config: 'TeX-AMS_HTML-full',
TeX: {
Macros: {
@ -193,7 +192,13 @@
}
},
plugins: [ RevealMath ]
// There are three typesetters available
// RevealMath.MathJax2 (default)
// RevealMath.MathJax3
// RevealMath.KaTeX
//
// More info at https://revealjs.com/math/
plugins: [ RevealMath.MathJax2 ]
});
</script>