katex: copy-paste support for Latex code, upgraded to katex 0.16.0 (#54)
This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user