1
0
mirror of synced 2026-08-04 20:36:54 +00:00

katex: copy-paste support for Latex code, upgraded to katex 0.16.0 (#54)

This commit is contained in:
qnxor
2022-11-16 19:39:48 +00:00
committed by GitHub
parent b5d2a8a3ea
commit abe2daf0f3
5 changed files with 12 additions and 6 deletions
@@ -5,9 +5,13 @@ function ensureKaTeX() {
return loadScript("/plugins/discourse-math/katex/katex.min.js").then(() => {
return loadScript("/plugins/discourse-math/katex/katex.min.css", {
css: true,
}).then(() => {
return loadScript("/plugins/discourse-math/katex/mhchem.min.js");
});
})
.then(() => {
return loadScript("/plugins/discourse-math/katex/mhchem.min.js");
})
.then(() => {
return loadScript("/plugins/discourse-math/katex/copy-tex.min.js");
});
});
}