Skip to content
Snippets Groups Projects
  • John MacFarlane's avatar
    773569b4
    Allow tex2jax options to be passed into math plugin. · 773569b4
    John MacFarlane authored
    Closes #2026.
    
    This does not change the default behavior of the math plugin,
    but it allows $ delimiters to be disabled (which is usually
    what you want, since otherwise normal uses of $ for currency get
    treated as math delimiters).
    
    To use:
    
        Reveal.initialize({
          math: {
            tex2jax: { inlineMath: [['\\(','\\)']],
                       skipTags: ['script','noscript','style',
                                  'textarea','pre'] }
                },
          etc.
          });
    773569b4
    History
    Allow tex2jax options to be passed into math plugin.
    John MacFarlane authored
    Closes #2026.
    
    This does not change the default behavior of the math plugin,
    but it allows $ delimiters to be disabled (which is usually
    what you want, since otherwise normal uses of $ for currency get
    treated as math delimiters).
    
    To use:
    
        Reveal.initialize({
          math: {
            tex2jax: { inlineMath: [['\\(','\\)']],
                       skipTags: ['script','noscript','style',
                                  'textarea','pre'] }
                },
          etc.
          });