diff options
author | Martin Goth <martin@goth-1.de> | 2015-04-16 12:16:22 +0200 |
---|---|---|
committer | Martin Goth <martin@goth-1.de> | 2015-04-16 13:24:23 +0200 |
commit | 0cb4d1050438d4c42ec1c7609b4791f973dfa577 (patch) | |
tree | 57039eb3e55d3229a96617b83e473e80eaea22b2 /plugin/math | |
parent | 07197b1eae80a264fd9ff7dc68316ae60e5ace29 (diff) | |
download | perl-software-in-gnu-guix-0cb4d1050438d4c42ec1c7609b4791f973dfa577.tar perl-software-in-gnu-guix-0cb4d1050438d4c42ec1c7609b4791f973dfa577.tar.gz |
Allow tex parsing in <code> tags
Just using $ as delimiter in markdown document fails since the markdown
parser unknown to the dollar syntax will try to interpret underscores.
Putting the $ delimented formula in backticks will cause the markdown
parser to put the tex-code with the $ delimiters into a code block.
The texcode will then be unchanged. This patch allows for mathJax to
interpret and automagically display the tex-formulas.
Diffstat (limited to 'plugin/math')
-rwxr-xr-x | plugin/math/math.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin/math/math.js b/plugin/math/math.js index d55d9d1..f2d724d 100755 --- a/plugin/math/math.js +++ b/plugin/math/math.js @@ -14,7 +14,10 @@ var RevealMath = window.RevealMath || (function(){ MathJax.Hub.Config({ messageStyle: 'none', - tex2jax: { inlineMath: [['$','$'],['\\(','\\)']] }, + tex2jax: { + inlineMath: [['$','$'],['\\(','\\)']] , + skipTags: ['script','noscript','style','textarea','pre'] + }, skipStartupTypeset: true }); |