add initial marp implementation with sample content and build configuration
This commit is contained in:
13
node_modules/speech-rule-engine/mjs/highlighter/mml_css_highlighter.js
generated
vendored
Normal file
13
node_modules/speech-rule-engine/mjs/highlighter/mml_css_highlighter.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { CssHighlighter } from './css_highlighter.js';
|
||||
export class MmlCssHighlighter extends CssHighlighter {
|
||||
constructor() {
|
||||
super();
|
||||
this.mactionName = 'maction';
|
||||
}
|
||||
getMactionNodes(node) {
|
||||
return Array.from(node.getElementsByTagName(this.mactionName));
|
||||
}
|
||||
isMactionNode(node) {
|
||||
return node.tagName === this.mactionName;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user