Add halo render

This commit is contained in:
zhengyi 2023-12-19 10:48:30 +08:00
parent 899eaf6868
commit 8cb1320cc3
4 changed files with 26 additions and 24 deletions

View File

@ -1,3 +1,5 @@
> UPSTREAM https://github.com/88250/lute.git
<p align = "center">
<img alt="Lute" src="https://b3log.org/images/brand/lute-128.png">
<br><br>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -697,7 +697,7 @@ func (r *BaseRenderer) NodeAttrsStr(node *ast.Node) (ret string) {
}
// languagesNoHighlight 中定义的语言不要进行代码语法高亮。这些代码块会在前端进行渲染,比如各种图表。
var languagesNoHighlight = []string{"mermaid", "echarts", "abc", "graphviz", "mindmap", "flowchart", "plantuml"}
var languagesNoHighlight = []string{"halo", "mermaid", "echarts", "abc", "graphviz", "mindmap", "flowchart", "plantuml"}
func NoHighlight(language string) bool {
if "" == language {