Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions mathjax-full/link-mathjax.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const fs = require('fs');
const path = require('path');

const link = path.resolve(path.dirname(process.argv[1]), '@mathjax');
const mathjax = path.dirname(path.dirname(require.resolve('@mathjax/src/package.json')));
if (!fs.existsSync(link)) fs.symlinkSync(mathjax, link);
58 changes: 58 additions & 0 deletions mathjax-full/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"name": "mathjax-full",
"version": "4.0.0-rc.4",
"description": "Beautiful and accessible math in all browsers. MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all browsers and in server-side node applications. This package includes the source code as well as the packaged components.",
"keywords": [
"MathJax",
"math",
"svg",
"HTML",
"MathML",
"TeX",
"AsciiMath"
],
"license": "Apache-2.0",
"maintainers": [
"MathJax Consortium <info@mathjax.org> (http://www.mathjax.org)"
],
"bugs": {
"url": "http://github.com/mathjax/MathJax/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/mathjax/Mathjax-src/"
},
"type": "module",
"main": "@mathjax/src/components/mjs/node-main/node-main.js",
"exports": {
".": {
"import": "./@mathjax/src/bundle/node-main.mjs",
"require": "./@mathjax/src/bundle/node-main.cjs"
},
"./source": {
"import": "./@mathjax/src/components/mjs/node-main/node-main.mjs",
"require": "./@mathjax/src/components/cjs/node-main/node-main.cjs"
},
"./js/*": {
"import": "./@mathjax/src/mjs/*",
"require": "./@mathjax/src/cjs/*"
},
"./components/src/*": {
"import": "./@mathjax/src/components/mjs/*",
"require": "./@mathjax/src/components/cjs/*"
},
"./components/js/*": {
"import": "./@mathjax/src/components/mjs/*",
"require": "./components/cjs/*"
},
"./es5/*": "./@mathjax/src/bundle/*",
"./*": "./@mathjax/src/*"
},
"scripts": {
"install": "node link-mathjax.cjs"
},
"dependencies": {
"@mathjax/mathjax-newcm-font": "4.0.0-rc.4",
"@mathjax/src": "4.0.0-rc.4"
}
}