1
0

add initial marp implementation with sample content and build configuration

This commit is contained in:
2025-09-13 18:13:22 +02:00
parent dcacc9b409
commit e5f219507f
10319 changed files with 1402023 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import { AbstractHighlighter } from './abstract_highlighter.js';
export class CssHighlighter extends AbstractHighlighter {
constructor() {
super();
this.mactionName = 'mjx-maction';
}
highlightNode(node) {
const info = {
node: node,
background: node.style.backgroundColor,
foreground: node.style.color
};
if (!this.isHighlighted(node)) {
const color = this.colorString();
node.style.backgroundColor = color.background;
node.style.color = color.foreground;
}
return info;
}
unhighlightNode(info) {
info.node.style.backgroundColor = info.background;
info.node.style.color = info.foreground;
}
}