mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-06 22:57:21 +02:00
default mathjax config now ignores code tags
This commit is contained in:
@@ -13,7 +13,7 @@ export const MathJax2 = () => {
|
|||||||
messageStyle: 'none',
|
messageStyle: 'none',
|
||||||
tex2jax: {
|
tex2jax: {
|
||||||
inlineMath: [ [ '$', '$' ], [ '\\(', '\\)' ] ],
|
inlineMath: [ [ '$', '$' ], [ '\\(', '\\)' ] ],
|
||||||
skipTags: [ 'script', 'noscript', 'style', 'textarea', 'pre' ]
|
skipTags: [ 'script', 'noscript', 'style', 'textarea', 'pre', 'code' ]
|
||||||
},
|
},
|
||||||
skipStartupTypeset: true
|
skipStartupTypeset: true
|
||||||
};
|
};
|
||||||
|
@@ -15,7 +15,7 @@ export const MathJax3 = () => {
|
|||||||
inlineMath: [ [ '$', '$' ], [ '\\(', '\\)' ] ]
|
inlineMath: [ [ '$', '$' ], [ '\\(', '\\)' ] ]
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
skipHtmlTags: [ 'script', 'noscript', 'style', 'textarea', 'pre' ]
|
skipHtmlTags: [ 'script', 'noscript', 'style', 'textarea', 'pre', 'code' ]
|
||||||
},
|
},
|
||||||
startup: {
|
startup: {
|
||||||
ready: () => {
|
ready: () => {
|
||||||
|
Reference in New Issue
Block a user