Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow tex2jax options to be passed into math plugin. #2045

Merged
merged 1 commit into from
Dec 1, 2017

Conversation

jgm
Copy link
Contributor

@jgm jgm commented Nov 30, 2017

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.
  });

Closes hakimel#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.
      });
@reagle
Copy link

reagle commented Nov 30, 2017

This will be great when merged, thanks!

@hakimel hakimel merged commit 137e383 into hakimel:dev Dec 1, 2017
@hakimel
Copy link
Owner

hakimel commented Dec 1, 2017

Looks great, thanks 🙌

bnjmnt4n added a commit to bnjmnt4n/reveal.js that referenced this pull request Feb 8, 2018
Ref. hakimel#1856, hakimel#2006, hakimel#2045.

This is a more open approach to allow customisation of all MathJax options instead of select options only.
R0bes pushed a commit to R0bes/Terraform-Presentation that referenced this pull request Jun 7, 2021
Allow tex2jax options to be passed into math plugin.
R0bes pushed a commit to R0bes/Terraform-Presentation that referenced this pull request Jun 7, 2021
Ref. hakimel#1856, hakimel#2006, hakimel#2045.

This is a more open approach to allow customisation of all MathJax options instead of select options only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants