-
Notifications
You must be signed in to change notification settings - Fork 0
/
mathjax3.patch
39 lines (39 loc) · 1.16 KB
/
mathjax3.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- default.revealjs 2024-01-22 16:55:35.324825164 -0300
+++ default.revealjs_mathjax3 2024-01-22 16:57:47.608351952 -0300
@@ -284,21 +284,13 @@
maxScale: $maxScale$,
$endif$
$if(mathjax)$
-
- math: {
+ mathjax3: {
mathjax: '$mathjaxurl$',
- config: 'TeX-AMS_HTML-full',
- tex2jax: {
- inlineMath: [['\\(','\\)']],
- displayMath: [['\\[','\\]']],
- balanceBraces: true,
- processEscapes: false,
- processRefs: true,
- processEnvironments: true,
- preview: 'TeX',
- skipTags: ['script','noscript','style','textarea','pre','code'],
- ignoreClass: 'tex2jax_ignore',
- processClass: 'tex2jax_process'
+ tex: {
+ inlineMath: [[ '$$', '$$' ], [ '\\(', '\\)' ]]
+ },
+ options: {
+ skipHtmlTags: [ 'script', 'noscript', 'style', 'textarea', 'pre' ]
},
},
$endif$
@@ -306,7 +298,7 @@
// reveal.js plugins
plugins: [
$if(mathjax)$
- RevealMath,
+ RevealMath.MathJax3,
$endif$
RevealNotes,
RevealSearch,