add initial marp implementation with sample content and build configuration
This commit is contained in:
4
node_modules/mathjax-full/js/input/tex/action/ActionConfiguration.d.ts
generated
vendored
Normal file
4
node_modules/mathjax-full/js/input/tex/action/ActionConfiguration.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { Configuration } from '../Configuration.js';
|
||||
import { ParseMethod } from '../Types.js';
|
||||
export declare let ActionMethods: Record<string, ParseMethod>;
|
||||
export declare const ActionConfiguration: Configuration;
|
||||
32
node_modules/mathjax-full/js/input/tex/action/ActionConfiguration.js
generated
vendored
Normal file
32
node_modules/mathjax-full/js/input/tex/action/ActionConfiguration.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ActionConfiguration = exports.ActionMethods = void 0;
|
||||
var Configuration_js_1 = require("../Configuration.js");
|
||||
var TexParser_js_1 = __importDefault(require("../TexParser.js"));
|
||||
var SymbolMap_js_1 = require("../SymbolMap.js");
|
||||
var BaseMethods_js_1 = __importDefault(require("../base/BaseMethods.js"));
|
||||
exports.ActionMethods = {};
|
||||
exports.ActionMethods.Macro = BaseMethods_js_1.default.Macro;
|
||||
exports.ActionMethods.Toggle = function (parser, name) {
|
||||
var children = [];
|
||||
var arg;
|
||||
while ((arg = parser.GetArgument(name)) !== '\\endtoggle') {
|
||||
children.push(new TexParser_js_1.default(arg, parser.stack.env, parser.configuration).mml());
|
||||
}
|
||||
parser.Push(parser.create('node', 'maction', children, { actiontype: 'toggle' }));
|
||||
};
|
||||
exports.ActionMethods.Mathtip = function (parser, name) {
|
||||
var arg = parser.ParseArg(name);
|
||||
var tip = parser.ParseArg(name);
|
||||
parser.Push(parser.create('node', 'maction', [arg, tip], { actiontype: 'tooltip' }));
|
||||
};
|
||||
new SymbolMap_js_1.CommandMap('action-macros', {
|
||||
toggle: 'Toggle',
|
||||
mathtip: 'Mathtip',
|
||||
texttip: ['Macro', '\\mathtip{#1}{\\text{#2}}', 2]
|
||||
}, exports.ActionMethods);
|
||||
exports.ActionConfiguration = Configuration_js_1.Configuration.create('action', { handler: { macro: ['action-macros'] } });
|
||||
//# sourceMappingURL=ActionConfiguration.js.map
|
||||
1
node_modules/mathjax-full/js/input/tex/action/ActionConfiguration.js.map
generated
vendored
Normal file
1
node_modules/mathjax-full/js/input/tex/action/ActionConfiguration.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ActionConfiguration.js","sourceRoot":"","sources":["../../../../ts/input/tex/action/ActionConfiguration.ts"],"names":[],"mappings":";;;;;;AAwBA,wDAAkD;AAClD,iEAAwC;AACxC,gDAA2C;AAE3C,0EAAiD;AAItC,QAAA,aAAa,GAAgC,EAAE,CAAC;AAE3D,qBAAa,CAAC,KAAK,GAAG,wBAAW,CAAC,KAAK,CAAC;AAQxC,qBAAa,CAAC,MAAM,GAAG,UAAS,MAAiB,EAAE,IAAY;IAC7D,IAAM,QAAQ,GAAG,EAAE,CAAC;IACpB,IAAI,GAAG,CAAC;IACR,OAAO,CAAC,GAAG,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,aAAa,EAAE;QACzD,QAAQ,CAAC,IAAI,CACX,IAAI,sBAAS,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;KACrE;IACD,MAAM,CAAC,IAAI,CACT,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAC,UAAU,EAAE,QAAQ,EAAC,CAAC,CAAC,CAAC;AACxE,CAAC,CAAC;AASF,qBAAa,CAAC,OAAO,GAAG,UAAS,MAAiB,EAAE,IAAY;IAC9D,IAAM,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,IA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