From 470aa768946ab53253be319585827ca30aefbe90 Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Wed, 16 Mar 2022 16:26:27 +0000 Subject: [PATCH] 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. --- plugin/math/mathjax3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/math/mathjax3.js b/plugin/math/mathjax3.js index 38eb4ef..9e62d0d 100644 --- a/plugin/math/mathjax3.js +++ b/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';