markup/goldmark: Use Ordinal to create default lineanchors
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 25 Feb 2022 06:45:37 +0000 (07:45 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 25 Feb 2022 16:22:43 +0000 (17:22 +0100)
commit0f80be341f5c42a50e71ced04c35550b7f1d6bdc
tree8788aa759e4a4c7b3e0c2f39427149f8f34d4a23
parent78afdb88ab7dc29a29ea9bde9bf66af055ef44c8
markup/goldmark: Use Ordinal to create default lineanchors

The `Ordinal` starts at 0, so with a `hl-` prefix, this gives `hl-0-1` as a starting point.

Fixes #9567
markup/goldmark/convert_test.go
markup/highlight/config.go
markup/highlight/highlight.go