diff --git a/content/en/functions/highlight.md b/content/en/functions/highlight.md index 2ca125467..1a47fe37f 100644 --- a/content/en/functions/highlight.md +++ b/content/en/functions/highlight.md @@ -91,8 +91,8 @@ Instead of specifying both `lineNos` and `lineNumbersInTable`, you can use the f {{ $input := `echo "Hello World!"` }} {{ $lang := "bash" }} -{{ $options := slice "lineNos=table" "style=dracula" }} -{{ transform.Highlight $input $lang (delimit $options ",") }} +{{ $options := dict "lineNos" "table" "style" "dracula" }} +{{ transform.Highlight $input $lang $options }} ``` [Chroma]: https://github.com/alecthomas/chroma