add initial marp implementation with sample content and build configuration
This commit is contained in:
3
node_modules/mathjax-full/js/input/tex/amscd/AmsCdConfiguration.d.ts
generated
vendored
Normal file
3
node_modules/mathjax-full/js/input/tex/amscd/AmsCdConfiguration.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { Configuration } from '../Configuration.js';
|
||||
import './AmsCdMappings.js';
|
||||
export declare const AmsCdConfiguration: Configuration;
|
||||
22
node_modules/mathjax-full/js/input/tex/amscd/AmsCdConfiguration.js
generated
vendored
Normal file
22
node_modules/mathjax-full/js/input/tex/amscd/AmsCdConfiguration.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AmsCdConfiguration = void 0;
|
||||
var Configuration_js_1 = require("../Configuration.js");
|
||||
require("./AmsCdMappings.js");
|
||||
exports.AmsCdConfiguration = Configuration_js_1.Configuration.create('amscd', {
|
||||
handler: {
|
||||
character: ['amscd_special'],
|
||||
macro: ['amscd_macros'],
|
||||
environment: ['amscd_environment']
|
||||
},
|
||||
options: {
|
||||
amscd: {
|
||||
colspace: '5pt',
|
||||
rowspace: '5pt',
|
||||
harrowsize: '2.75em',
|
||||
varrowsize: '1.75em',
|
||||
hideHorizontalLabels: false
|
||||
}
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=AmsCdConfiguration.js.map
|
||||
1
node_modules/mathjax-full/js/input/tex/amscd/AmsCdConfiguration.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/input/tex/amscd/AmsCdConfiguration.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"AmsCdConfiguration.js","sourceRoot":"","sources":["../../../../ts/input/tex/amscd/AmsCdConfiguration.ts"],"names":[],"mappings":";;;AAwBA,wDAAkD;AAClD,8BAA4B;AAGf,QAAA,kBAAkB,GAAG,gCAAa,CAAC,MAAM,CACpD,OAAO,EAAE;IACP,OAAO,EAAE;QACP,SAAS,EAAE,CAAC,eAAe,CAAC;QAC5B,KAAK,EAAE,CAAC,cAAc,CAAC;QACvB,WAAW,EAAE,CAAC,mBAAmB,CAAC;KACnC;IACD,OAAO,EAAE;QACP,KAAK,EAAE;YACL,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,KAAK;YACf,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,QAAQ;YACpB,oBAAoB,EAAE,KAAK;SAC5B;KACF;CACF,CACF,CAAC"}
|
||||
1
node_modules/mathjax-full/js/input/tex/amscd/AmsCdMappings.d.ts
generated
vendored
Normal file
1
node_modules/mathjax-full/js/input/tex/amscd/AmsCdMappings.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
38
node_modules/mathjax-full/js/input/tex/amscd/AmsCdMappings.js
generated
vendored
Normal file
38
node_modules/mathjax-full/js/input/tex/amscd/AmsCdMappings.js
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var sm = __importStar(require("../SymbolMap.js"));
|
||||
var ParseMethods_js_1 = __importDefault(require("../ParseMethods.js"));
|
||||
var AmsCdMethods_js_1 = __importDefault(require("./AmsCdMethods.js"));
|
||||
new sm.EnvironmentMap('amscd_environment', ParseMethods_js_1.default.environment, { CD: 'CD' }, AmsCdMethods_js_1.default);
|
||||
new sm.CommandMap('amscd_macros', {
|
||||
minCDarrowwidth: 'minCDarrowwidth',
|
||||
minCDarrowheight: 'minCDarrowheight',
|
||||
}, AmsCdMethods_js_1.default);
|
||||
new sm.MacroMap('amscd_special', { '@': 'arrow' }, AmsCdMethods_js_1.default);
|
||||
//# sourceMappingURL=AmsCdMappings.js.map
|
||||
1
node_modules/mathjax-full/js/input/tex/amscd/AmsCdMappings.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/input/tex/amscd/AmsCdMappings.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"AmsCdMappings.js","sourceRoot":"","sources":["../../../../ts/input/tex/amscd/AmsCdMappings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,kDAAsC;AACtC,uEAA8C;AAC9C,sEAA6C;AAG7C,IAAI,EAAE,CAAC,cAAc,CAAC,mBAAmB,EAAE,yBAAY,CAAC,WAAW,EAC7C,EAAC,EAAE,EAAE,IAAI,EAAC,EAAE,yBAAY,CAAC,CAAC;AAEhD,IAAI,EAAE,CAAC,UAAU,CAAC,cAAc,EAAE;IAChC,eAAe,EAAE,iBAAiB;IAClC,gBAAgB,EAAE,kBAAkB;CACrC,EAAE,yBAAY,CAAC,CAAC;AAEjB,IAAI,EAAE,CAAC,QAAQ,CAAC,eAAe,EAAE,EAAC,GAAG,EAAE,OAAO,EAAC,EAAE,yBAAY,CAAC,CAAC"}
|
||||
3
node_modules/mathjax-full/js/input/tex/amscd/AmsCdMethods.d.ts
generated
vendored
Normal file
3
node_modules/mathjax-full/js/input/tex/amscd/AmsCdMethods.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { ParseMethod } from '../Types.js';
|
||||
declare let AmsCdMethods: Record<string, ParseMethod>;
|
||||
export default AmsCdMethods;
|
||||
122
node_modules/mathjax-full/js/input/tex/amscd/AmsCdMethods.js
generated
vendored
Normal file
122
node_modules/mathjax-full/js/input/tex/amscd/AmsCdMethods.js
generated
vendored
Normal file
@@ -0,0 +1,122 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var TexParser_js_1 = __importDefault(require("../TexParser.js"));
|
||||
var BaseConfiguration_js_1 = require("../base/BaseConfiguration.js");
|
||||
var MmlNode_js_1 = require("../../../core/MmlTree/MmlNode.js");
|
||||
var NodeUtil_js_1 = __importDefault(require("../NodeUtil.js"));
|
||||
var AmsCdMethods = {};
|
||||
AmsCdMethods.CD = function (parser, begin) {
|
||||
parser.Push(begin);
|
||||
var item = parser.itemFactory.create('array');
|
||||
var options = parser.configuration.options.amscd;
|
||||
item.setProperties({
|
||||
minw: parser.stack.env.CD_minw || options.harrowsize,
|
||||
minh: parser.stack.env.CD_minh || options.varrowsize
|
||||
});
|
||||
item.arraydef = {
|
||||
columnalign: 'center',
|
||||
columnspacing: options.colspace,
|
||||
rowspacing: options.rowspace,
|
||||
displaystyle: true
|
||||
};
|
||||
return item;
|
||||
};
|
||||
AmsCdMethods.arrow = function (parser, name) {
|
||||
var c = parser.string.charAt(parser.i);
|
||||
if (!c.match(/[><VA.|=]/)) {
|
||||
return (0, BaseConfiguration_js_1.Other)(parser, name);
|
||||
}
|
||||
else {
|
||||
parser.i++;
|
||||
}
|
||||
var first = parser.stack.Top();
|
||||
if (!first.isKind('array') || first.Size()) {
|
||||
AmsCdMethods.cell(parser, name);
|
||||
first = parser.stack.Top();
|
||||
}
|
||||
var top = first;
|
||||
var arrowRow = ((top.table.length % 2) === 1);
|
||||
var n = (top.row.length + (arrowRow ? 0 : 1)) % 2;
|
||||
while (n) {
|
||||
AmsCdMethods.cell(parser, name);
|
||||
n--;
|
||||
}
|
||||
var mml;
|
||||
var hdef = { minsize: top.getProperty('minw'), stretchy: true }, vdef = { minsize: top.getProperty('minh'),
|
||||
stretchy: true, symmetric: true, lspace: 0, rspace: 0 };
|
||||
if (c === '.') {
|
||||
}
|
||||
else if (c === '|') {
|
||||
mml = parser.create('token', 'mo', vdef, '\u2225');
|
||||
}
|
||||
else if (c === '=') {
|
||||
mml = parser.create('token', 'mo', hdef, '=');
|
||||
}
|
||||
else {
|
||||
var arrow = {
|
||||
'>': '\u2192', '<': '\u2190', 'V': '\u2193', 'A': '\u2191'
|
||||
}[c];
|
||||
var a = parser.GetUpTo(name + c, c);
|
||||
var b = parser.GetUpTo(name + c, c);
|
||||
if (c === '>' || c === '<') {
|
||||
mml = parser.create('token', 'mo', hdef, arrow);
|
||||
if (!a) {
|
||||
a = '\\kern ' + top.getProperty('minw');
|
||||
}
|
||||
if (a || b) {
|
||||
var pad = { width: '+.67em', lspace: '.33em' };
|
||||
mml = parser.create('node', 'munderover', [mml]);
|
||||
if (a) {
|
||||
var nodeA = new TexParser_js_1.default(a, parser.stack.env, parser.configuration).mml();
|
||||
var mpadded = parser.create('node', 'mpadded', [nodeA], pad);
|
||||
NodeUtil_js_1.default.setAttribute(mpadded, 'voffset', '.1em');
|
||||
NodeUtil_js_1.default.setChild(mml, mml.over, mpadded);
|
||||
}
|
||||
if (b) {
|
||||
var nodeB = new TexParser_js_1.default(b, parser.stack.env, parser.configuration).mml();
|
||||
NodeUtil_js_1.default.setChild(mml, mml.under, parser.create('node', 'mpadded', [nodeB], pad));
|
||||
}
|
||||
if (parser.configuration.options.amscd.hideHorizontalLabels) {
|
||||
mml = parser.create('node', 'mpadded', mml, { depth: 0, height: '.67em' });
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
var arrowNode = parser.create('token', 'mo', vdef, arrow);
|
||||
mml = arrowNode;
|
||||
if (a || b) {
|
||||
mml = parser.create('node', 'mrow');
|
||||
if (a) {
|
||||
NodeUtil_js_1.default.appendChildren(mml, [new TexParser_js_1.default('\\scriptstyle\\llap{' + a + '}', parser.stack.env, parser.configuration).mml()]);
|
||||
}
|
||||
arrowNode.texClass = MmlNode_js_1.TEXCLASS.ORD;
|
||||
NodeUtil_js_1.default.appendChildren(mml, [arrowNode]);
|
||||
if (b) {
|
||||
NodeUtil_js_1.default.appendChildren(mml, [new TexParser_js_1.default('\\scriptstyle\\rlap{' + b + '}', parser.stack.env, parser.configuration).mml()]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (mml) {
|
||||
parser.Push(mml);
|
||||
}
|
||||
AmsCdMethods.cell(parser, name);
|
||||
};
|
||||
AmsCdMethods.cell = function (parser, name) {
|
||||
var top = parser.stack.Top();
|
||||
if ((top.table || []).length % 2 === 0 && (top.row || []).length === 0) {
|
||||
parser.Push(parser.create('node', 'mpadded', [], { height: '8.5pt', depth: '2pt' }));
|
||||
}
|
||||
parser.Push(parser.itemFactory.create('cell').setProperties({ isEntry: true, name: name }));
|
||||
};
|
||||
AmsCdMethods.minCDarrowwidth = function (parser, name) {
|
||||
parser.stack.env.CD_minw = parser.GetDimen(name);
|
||||
};
|
||||
AmsCdMethods.minCDarrowheight = function (parser, name) {
|
||||
parser.stack.env.CD_minh = parser.GetDimen(name);
|
||||
};
|
||||
exports.default = AmsCdMethods;
|
||||
//# sourceMappingURL=AmsCdMethods.js.map
|
||||
1
node_modules/mathjax-full/js/input/tex/amscd/AmsCdMethods.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/input/tex/amscd/AmsCdMethods.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user