stuff
This commit is contained in:
parent
bc92231240
commit
b8225c639e
11904 changed files with 1472749 additions and 133 deletions
31
node_modules/mathjax-full/js/input/tex/verb/VerbConfiguration.js
generated
vendored
Normal file
31
node_modules/mathjax-full/js/input/tex/verb/VerbConfiguration.js
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.VerbConfiguration = exports.VerbMethods = void 0;
|
||||
var Configuration_js_1 = require("../Configuration.js");
|
||||
var TexConstants_js_1 = require("../TexConstants.js");
|
||||
var SymbolMap_js_1 = require("../SymbolMap.js");
|
||||
var TexError_js_1 = __importDefault(require("../TexError.js"));
|
||||
exports.VerbMethods = {};
|
||||
exports.VerbMethods.Verb = function (parser, name) {
|
||||
var c = parser.GetNext();
|
||||
var start = ++parser.i;
|
||||
if (c === '') {
|
||||
throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', name);
|
||||
}
|
||||
while (parser.i < parser.string.length &&
|
||||
parser.string.charAt(parser.i) !== c) {
|
||||
parser.i++;
|
||||
}
|
||||
if (parser.i === parser.string.length) {
|
||||
throw new TexError_js_1.default('NoClosingDelim', 'Can\'t find closing delimiter for %1', parser.currentCS);
|
||||
}
|
||||
var text = parser.string.slice(start, parser.i).replace(/ /g, '\u00A0');
|
||||
parser.i++;
|
||||
parser.Push(parser.create('token', 'mtext', { mathvariant: TexConstants_js_1.TexConstant.Variant.MONOSPACE }, text));
|
||||
};
|
||||
new SymbolMap_js_1.CommandMap('verb', { verb: 'Verb' }, exports.VerbMethods);
|
||||
exports.VerbConfiguration = Configuration_js_1.Configuration.create('verb', { handler: { macro: ['verb'] } });
|
||||
//# sourceMappingURL=VerbConfiguration.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue