From 51af35b9e6993e62000ef9be7a3a644a629a6c78 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 12 Sep 2026 18:39:34 +0300 Subject: 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 --- src/INIT.du | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.3.1-23-gd82d