feat: implement highlight renderer

This commit is contained in:
Steven
2024-01-15 22:54:18 +08:00
parent 3f4b361fad
commit ad94e8e3c6
8 changed files with 261 additions and 127 deletions

View File

@ -47,6 +47,7 @@ enum NodeType {
STRIKETHROUGH = 20;
ESCAPING_CHARACTER = 21;
MATH = 22;
HIGHLIGHT = 23;
}
message Node {
@ -74,6 +75,7 @@ message Node {
StrikethroughNode strikethrough_node = 21;
EscapingCharacterNode escaping_character_node = 22;
MathNode math_node = 23;
HighlightNode highlight_node = 24;
}
}
@ -177,3 +179,7 @@ message EscapingCharacterNode {
message MathNode {
string content = 1;
}
message HighlightNode {
string content = 1;
}