mirror of
https://github.com/discourse/discourse-math.git
synced 2025-07-05 13:22:12 +00:00
Remove deprecation
This commit is contained in:
parent
fd55ad7233
commit
08c8a94f7e
@ -1,4 +1,5 @@
|
|||||||
import { withPluginApi } from "discourse/lib/plugin-api";
|
import { withPluginApi } from "discourse/lib/plugin-api";
|
||||||
|
import { getURLWithCDN } from "discourse-common/lib/get-url";
|
||||||
import loadScript from "discourse/lib/load-script";
|
import loadScript from "discourse/lib/load-script";
|
||||||
|
|
||||||
let initializedMathJax = false;
|
let initializedMathJax = false;
|
||||||
@ -19,7 +20,7 @@ function initMathJax(opts) {
|
|||||||
TeX: { extensions: ["AMSmath.js", "AMSsymbols.js", "autoload-all.js"] },
|
TeX: { extensions: ["AMSmath.js", "AMSsymbols.js", "autoload-all.js"] },
|
||||||
extensions: extensions,
|
extensions: extensions,
|
||||||
showProcessingMessages: false,
|
showProcessingMessages: false,
|
||||||
root: Discourse.getURLWithCDN("/plugins/discourse-math/mathjax")
|
root: getURLWithCDN("/plugins/discourse-math/mathjax")
|
||||||
};
|
};
|
||||||
|
|
||||||
if (opts.zoom_on_hover) {
|
if (opts.zoom_on_hover) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user