Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #2940
Closed
Open
Issue created Sep 30, 2022 by Administrator@rootContributor

Mathjax3 does not support the syntax for '//' line breaks

Created by: CyNotes

Issue Summary

The MathJAX3 upgrade does not support the syntax for '//' line breaks, so we have to use things like $\displaylines{x = A + B \\ y = b + c}$ to wrap lines, which is not very nice to us. Is there any way to configure MathJAX3 to support '//'?

Technical details:

  • MathJax Version: 3.2
  • Client OS: (e.g., Mac OS X 10.8.4)
  • Browser: (e.g., Chrome 29.0.1547.57)

I am using the following MathJax configuration:

MathJax = {
    tex: {
      inlineMath: [['$', '$']],   // inlineMath: [['$', '$'], ['\\(', '\\)']], // 行内公式选择符
      displayMath: [['$\begin', '\end$'], ['\\[\begin', '\end\\]']],
      processEscapes: true,
      processEnvironments: false,
      packages: ['base', 'ams', 'noerrors', 'noundefined', 'cancel', 'color', 'bbox', 'mhchem']
    },
    options: {
      skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code', 'a'],
      ignoreHtmlClass: 'comment-content'
    },
    loader: {
      load: ['[tex]/ams', '[tex]/noerrors', '[tex]/noundefined', '[tex]/cancel', '[tex]/color', '[tex]/bbox', '[tex]/mhchem']
    }
};

and loading MathJax via

<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>

Supporting information:

Is there any syntax other than '//' that is not supported after upgrading to MathJAX3? Or can you give me a copy of the latex syntax table supported by MathJax? Thank you!

Assignee
Assign to
Time tracking