Improve highlight function example

This commit is contained in:
Joe Mooring authored and GitHub committed 2023-07-06 07:01:26 -07:00
1 parent f96fa68053
commit 4e743ec360
1 file changed
+2 -2
+2 -2
View File
@@ -91,8 +91,8 @@ Instead of specifying both `lineNos` and `lineNumbersInTable`, you can use the f
{{ $input := `echo "Hello World!"` }} {{ $input := `echo "Hello World!"` }}
{{ $lang := "bash" }} {{ $lang := "bash" }}
{{ $options := slice "lineNos=table" "style=dracula" }} {{ $options := dict "lineNos" "table" "style" "dracula" }}
{{ transform.Highlight $input $lang (delimit $options ",") }} {{ transform.Highlight $input $lang $options }}
``` ```
[Chroma]: https://github.com/alecthomas/chroma [Chroma]: https://github.com/alecthomas/chroma