浏览代码

Allow the skipHtmlTags option to be overriden

The previous logic here was backwards, and did not allow the user to override `options` in the mathjax config structure.
This makes it match how the `startup` and `tex` fields are merged.
Eric Wieser 3 年之前
父节点
当前提交
470aa76894
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugin/math/mathjax3.js

+ 1 - 1
plugin/math/mathjax3.js

@@ -56,7 +56,7 @@ export const MathJax3 = () => {
             let revealOptions = deck.getConfig().mathjax3 || {};
             let options = {...defaultOptions, ...revealOptions};
             options.tex = {...defaultOptions.tex, ...revealOptions.tex}
-            options.options = {...options.options, ...defaultOptions.options}
+            options.options = {...defaultOptions.options, ...revealOptions.options}
             options.startup = {...defaultOptions.startup, ...revealOptions.startup}
 
             let url = options.mathjax || 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js';