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
  • #2944
Closed
Open
Issue created Oct 02, 2022 by Administrator@rootContributor

`mathjax-full/js/output/svg/DefaultFont.js` and `mathjax-full/js/output/chtml/DefaultFont.js` are provided as ES module at `mathjax-full@4.0.0-alpha.1`

Created by: tamuratak

Issue Summary

mathjax-full/js/output/svg/DefaultFont.js and mathjax-full/js/output/chtml/DefaultFont.js are provided as ES module at mathjax-full@4.0.0-alpha.1.

Other .js files are provided in CJS format.

It causes issues when directly using mathjax-full from Node.js applications. I would like mathjax-full to be provided fully in CJS format if possible.

Steps to Reproduce:

  1. Install mathjax-full@4.0.0-alpha.1
  2. Execute cat node_modules/mathjax-full/js/output/svg/DefaultFont.js
$  cat node_modules/mathjax-full/js/output/svg/DefaultFont.js
export {MathJaxModernFont as DefaultFont} from 'mathjax-modern-font/js/output/fonts/mathjax-modern/svg.js';
export const fontName = 'mathjax-modern';

Technical details:

  • MathJax Version: mathjax-full@4.0.0-alpha.1
Assignee
Assign to
Time tracking