From 8e82c7ce1e6ca03573b060b35acf800a12908761 Mon Sep 17 00:00:00 2001 From: Fernando Jorge Mota Date: Sun, 13 Sep 2020 06:00:16 -0300 Subject: [PATCH] markup/highlight: Add support to linkable line anchors on Chroma Fixes #7622 --- content/en/content-management/syntax-highlighting.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/en/content-management/syntax-highlighting.md b/content/en/content-management/syntax-highlighting.md index 0e5107f36..a518935b1 100644 --- a/content/en/content-management/syntax-highlighting.md +++ b/content/en/content-management/syntax-highlighting.md @@ -43,6 +43,8 @@ Options: * `linenos`: configure line numbers. Valid values are `true`, `false`, `table`, or `inline`. `false` will turn off line numbers if it's configured to be on in site config. {{< new-in "0.60.0" >}} `table` will give copy-and-paste friendly code blocks. * `hl_lines`: lists a set of line numbers or line number ranges to be highlighted. * `linenostart=199`: starts the line number count from 199. +* `anchorlinenos`: Configure anchors on line numbers. Valid values are `true` or `false`; +* `lineanchors`: Configure a prefix for the anchors on line numbers. Will be suffixed with `-`, so linking to the line number 1 with the option `lineanchors=prefix` adds the anchor `prefix-1` to the page. ### Example: Highlight Shortcode