anchorlinenos=true
attribute doesn’t work when using code fences.
highlight
shortcodeBelow, we can see the line numbers in the Hugo-rendered code block are hyperlinked.
In line 1 we remember the current position. Line 2 jumps to point-min.
But below, with the exact same code block and attributes (with changed
anchor prefix), but with using code fences instead of highlight
shortcode, the line numbers are no longer hyperlinked.
In line 1 we remember the current position. Line 2 jumps to point-min.
|
|
git clone https://gitlab.com/hugo-mwe/hugo-mwe cd hugo-mwe git checkout anchorlinenos ./srv.sh