summaryrefslogtreecommitdiff
path: root/dist/plugin/math/plugin.js
diff options
context:
space:
mode:
authorAndrew Guschin <guschin@altlinux.org>2024-02-28 00:23:09 +0400
committerAndrew Guschin <guschin@altlinux.org>2024-02-28 00:23:09 +0400
commit3038bbfc64924bce04f06665f89acdc5df05b20e (patch)
tree7540b001f3853b01b70a2b8ec72bcf87656c46d6 /dist/plugin/math/plugin.js
Взлетаем!
Diffstat (limited to 'dist/plugin/math/plugin.js')
-rw-r--r--dist/plugin/math/plugin.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/dist/plugin/math/plugin.js b/dist/plugin/math/plugin.js
new file mode 100644
index 0000000..a92ccfb
--- /dev/null
+++ b/dist/plugin/math/plugin.js
@@ -0,0 +1,15 @@
+import {KaTeX} from "./katex";
+import {MathJax2} from "./mathjax2";
+import {MathJax3} from "./mathjax3";
+
+const defaultTypesetter = MathJax2;
+
+/*!
+ * This plugin is a wrapper for the MathJax2,
+ * MathJax3 and KaTeX typesetter plugins.
+ */
+export default Plugin = Object.assign( defaultTypesetter(), {
+ KaTeX,
+ MathJax2,
+ MathJax3
+} ); \ No newline at end of file