This commit is contained in:
Alexander 2025-06-14 09:15:37 -04:00
parent 1e88f77d79
commit 9ff0f33180
5 changed files with 42 additions and 35 deletions

View file

@ -104,7 +104,8 @@ page_character_encoding = "utf-8"
# that converts it to HTML and writes it to standard output.
# Example:
[preprocessors]
dj = "pandoc -r djot -w html"
# dj = "pandoc -r djot -w html"
dj = "jotdown"
# Pages can be further processed with "widgets"
@ -134,3 +135,9 @@ selector = "blink"
# By default this widget deletes all elements matching the selector,
# but you can set this option to false to delete just the first one
delete_all = true
[widgets.syntax]
widget = "preprocess_element"
selector = 'pre code'
# command = "echo \"<code>$(awk -F \\- '{print $NF}' <<< $ATTR_CLASS)</code>\""
command = 'highlight -O html -f --inline-css --syntax=ocaml --style=zellner'