add initial marp implementation with sample content and build configuration
This commit is contained in:
13
node_modules/speech-rule-engine/mjs/highlighter/chtml_highlighter.js
generated
vendored
Normal file
13
node_modules/speech-rule-engine/mjs/highlighter/chtml_highlighter.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { CssHighlighter } from './css_highlighter.js';
|
||||
export class ChtmlHighlighter extends 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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user