Skip to content

[revealjs] Support for MathJax3 #4493

Open

Description

@sbrisard

For a revealjs document format, Mathjax is configured as follows

      math: {
          mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js',
...........
          },
        },

while for a book, we get a more recent version of MathJax

<script src="[https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js](view-source:https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js)" type="text/javascript"></script>

Is it intentional, or should it be considered a bug?
Can I specify the version of MathJax I want to use?

Activity

  1. jjallaire commented on Feb 14, 2023

    @jjallaire
    Collaborator

    Currently the Pandoc Revealjs format supports only MathJax v2. It used to be that Reveal only supported MathJax v2, but in Reveal v4.2 they added support for MathJax 3 and KaTeX. I believe there needs to be a change in Pandoc to be able to take advantage of this (see this discussion: jgm/pandoc#7660).

    @tarleb What's your viewpoint on this?

  2. tarleb commented on Feb 14, 2023

    @tarleb
    Collaborator

    I don't know much about this topic yet — taking a look now.

  3. added
    upstream
    on Feb 27, 2023
  4. added this to the v1.4 milestone on Feb 27, 2023
  5. added
    revealjs
    on Mar 10, 2023
  6. ghost assigned on Mar 20, 2023
  7. Repository owner unassigned on Mar 20, 2023
  8. cderv commented on Mar 28, 2023

    @cderv
    Member

    Just a note to self that it seems specifying Mathjax option load correctly Mathjax 3 #3127 (reply in thread)

    need to look if this is now ok with the plugin too.

  9. cderv commented on May 24, 2023

    @cderv
    Member
  10. modified the milestones: v1.4, v1.5 on Dec 8, 2023
  11. added
    enhancement
    on Apr 28, 2024
  12. modified the milestones: v1.5, Future on Jun 17, 2024
  13. changed the title [-]Project format `revealjs` uses old version of MathJax[/-] [+][revealjs] Support for MathJax3[/+] on Sep 26, 2024
  14. added
    math
    on Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementmathrevealjsupstream

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions