diff options
author | Fernando Jorge Mota <fjorgemota@users.noreply.github.com> | 2020-09-13 06:00:16 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-13 11:00:16 +0200 |
commit | fb0f2cc718a54fd0774a0367e0a60718b5731de5 (patch) | |
tree | fe5a09fa587c9e967e92670afec4fa46517a6548 /docs | |
parent | 748fd4cb0d083de7c173d4b04b874358750fc900 (diff) |
markup/highlight: Add support to linkable line anchors on Chroma
Fixes #7622
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/en/content-management/syntax-highlighting.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/content/en/content-management/syntax-highlighting.md b/docs/content/en/content-management/syntax-highlighting.md index 0e5107f36..a518935b1 100644 --- a/docs/content/en/content-management/syntax-highlighting.md +++ b/docs/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 |