add initial marp implementation with sample content and build configuration
This commit is contained in:
17
node_modules/speech-rule-engine/js/highlighter/chtml_highlighter.js
generated
vendored
Normal file
17
node_modules/speech-rule-engine/js/highlighter/chtml_highlighter.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ChtmlHighlighter = void 0;
|
||||
const css_highlighter_js_1 = require("./css_highlighter.js");
|
||||
class ChtmlHighlighter extends css_highlighter_js_1.CssHighlighter {
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
isMactionNode(node) {
|
||||
var _a;
|
||||
return ((_a = node.tagName) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === this.mactionName.toUpperCase();
|
||||
}
|
||||
getMactionNodes(node) {
|
||||
return Array.from(node.getElementsByTagName(this.mactionName));
|
||||
}
|
||||
}
|
||||
exports.ChtmlHighlighter = ChtmlHighlighter;
|
||||
Reference in New Issue
Block a user