Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit51af35b9e6993e62000ef9be7a3a644a629a6c78 (patch)
Author
 Syndamia <kamen@syndamia.com>
2026-09-12 18:39:34 +0300
Committer
 Syndamia <kamen@syndamia.com>
2026-09-12 18:39:34 +0300
Filesf582c7fcf762f99220770d77dcacb4babd51cda7
syndamia.com-51af35b9e6993e62000ef9be7a3a644a629a6c78.tar
syndamia.com-51af35b9e6993e62000ef9be7a3a644a629a6c78.tar.gz
syndamia.com-51af35b9e6993e62000ef9be7a3a644a629a6c78.zip
Parentfd1cbd9d3453bfc41893afc3f88308188ad07cfe (diff)
fix(INIT.du): Do not pass code without language to highlight
Because highlight will escape all HTML entities, so for example bold text inside code will be escaped
1 files changed, 1 insertions, 1 deletions
-rw-r--r--src/INIT.du2
diff --git a/src/INIT.du b/src/INIT.du
index e11e835..d03720a 100644
--- a/src/INIT.du
+++ b/src/INIT.du
@@ -159,7 +159,7 @@ desc - Page description
# Blocks
'if {env HIGHLIGHT}
-'cmdprocess code highlight -O html -f -S {default {normalise {LANG}};text}
+'cmdprocess code {if {LANG};highlight -O html -f -S {default {normalise {LANG}};text};cat}
'endif
## Attention