mathjax / mathjax/MathJax

Support for the LaTeX package `xparse`

Open
#2,684 3 comments 5 reactions 1 assignee View on GitHub

@dpvc is already working on this.

Since Dec 28, 2025.

Feature Request v3
Dominant language
JavaScript
Stars
10.9k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.
LaTeX Workshop uses MathJax to preview equations when hovering above them. However, when the commands, created with \NewDocumentCommand from the package xparse, are used in the equation, it is not rendered properly in the preview.

Describe the solution you'd like
It would make sense to have some support for the commands in xparse, at the very least for \NewDocumentCommand, since it provides one of the best options for LaTeX macros with 2 or more optional parameters; something that is just not possible when using the vanilla \newcommand.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.