correctly handle unknown syntaxes when highlighting

This commit is contained in:
Alexander 2025-06-16 18:57:50 -04:00
parent 18b0b14e25
commit 13f2613aaa
6 changed files with 58 additions and 60 deletions

View file

@ -139,4 +139,4 @@ delete_all = true
[widgets.syntax]
widget = "preprocess_element"
selector = 'pre code'
command = "pygmentize -l ${ATTR_CLASS##*-} -f html | head -c -13 | awk -F '<pre>' '{print $NF}'"
command = "./syntax_wrapper.sh ${ATTR_CLASS##*-}"