aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2017-12-01 14:37:47 +0100
committerGitHub <noreply@github.com>2017-12-01 14:37:47 +0100
commit137e38395089ec63505b6cf6b978b6dcee7a33c4 (patch)
treec7fcee39d999fbc1811287e11239f050bfeccf25 /plugin
parent1f1f86ec733cd01e06f58c51539823b4459a996a (diff)
parent773569b4a2668be34b9993f718766d77100968ef (diff)
downloadperl-software-in-gnu-guix-137e38395089ec63505b6cf6b978b6dcee7a33c4.tar
perl-software-in-gnu-guix-137e38395089ec63505b6cf6b978b6dcee7a33c4.tar.gz
Merge pull request #2045 from jgm/issue2026
Allow tex2jax options to be passed into math plugin.
Diffstat (limited to 'plugin')
-rwxr-xr-xplugin/math/math.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/math/math.js b/plugin/math/math.js
index e3b4089..7867376 100755
--- a/plugin/math/math.js
+++ b/plugin/math/math.js
@@ -9,15 +9,15 @@ var RevealMath = window.RevealMath || (function(){
var options = Reveal.getConfig().math || {};
options.mathjax = options.mathjax || 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js';
options.config = options.config || 'TeX-AMS_HTML-full';
+ options.tex2jax = options.tex2jax || {
+ inlineMath: [['$','$'],['\\(','\\)']] ,
+ skipTags: ['script','noscript','style','textarea','pre'] };
loadScript( options.mathjax + '?config=' + options.config, function() {
MathJax.Hub.Config({
messageStyle: 'none',
- tex2jax: {
- inlineMath: [['$','$'],['\\(','\\)']] ,
- skipTags: ['script','noscript','style','textarea','pre']
- },
+ tex2jax: options.tex2jax,
skipStartupTypeset: true
});