add initial marp implementation with sample content and build configuration
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
import { Configuration } from '../Configuration.js';
|
||||
export declare const GensymbConfiguration: Configuration;
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.GensymbConfiguration = void 0;
|
||||
var Configuration_js_1 = require("../Configuration.js");
|
||||
var TexConstants_js_1 = require("../TexConstants.js");
|
||||
var SymbolMap_js_1 = require("../SymbolMap.js");
|
||||
function mathcharUnit(parser, mchar) {
|
||||
var def = mchar.attributes || {};
|
||||
def.mathvariant = TexConstants_js_1.TexConstant.Variant.NORMAL;
|
||||
def.class = 'MathML-Unit';
|
||||
var node = parser.create('token', 'mi', def, mchar.char);
|
||||
parser.Push(node);
|
||||
}
|
||||
new SymbolMap_js_1.CharacterMap('gensymb-symbols', mathcharUnit, {
|
||||
ohm: '\u2126',
|
||||
degree: '\u00B0',
|
||||
celsius: '\u2103',
|
||||
perthousand: '\u2030',
|
||||
micro: '\u00B5'
|
||||
});
|
||||
exports.GensymbConfiguration = Configuration_js_1.Configuration.create('gensymb', {
|
||||
handler: { macro: ['gensymb-symbols'] },
|
||||
});
|
||||
//# sourceMappingURL=GensymbConfiguration.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"GensymbConfiguration.js","sourceRoot":"","sources":["../../../../ts/input/tex/gensymb/GensymbConfiguration.ts"],"names":[],"mappings":";;;AAwBA,wDAAkD;AAElD,sDAA+C;AAC/C,gDAA6C;AAS7C,SAAS,YAAY,CAAC,MAAiB,EAAE,KAAa;IACpD,IAAM,GAAG,GAAG,KAAK,CAAC,UAAU,IAAI,EAAE,CAAC;IACnC,GAAG,CAAC,WAAW,GAAG,6BAAW,CAAC,OAAO,CAAC,MAAM,CAAC;IAC7C,GAAG,CAAC,KAAK,GAAG,aAAa,CAAC;IAC1B,IAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAC3D,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACpB,CAAC;AAMD,IAAI,2BAAY,CAAC,iBAAiB,EAAE,YAAY,EAAE;IAChD,GAAG,EAAa,QAAQ;IACxB,MAAM,EAAU,QAAQ;IACxB,OAAO,EAAS,QAAQ;IACxB,WAAW,EAAK,QAAQ;IACxB,KAAK,EAAW,QAAQ;CACzB,CAAC,CAAC;AAGU,QAAA,oBAAoB,GAAG,gCAAa,CAAC,MAAM,CACtD,SAAS,EAAE;IACT,OAAO,EAAE,EAAC,KAAK,EAAE,CAAC,iBAAiB,CAAC,EAAC;CACtC,CACF,CAAC"}
|
||||
Reference in New Issue
Block a user