]> git.maquefel.me Git - brevno-suite/hugo/commit
markup: Fix linenos codeblock hl option case regression
authorKhayyam Saleem <ksaleem@digitalocean.com>
Sun, 5 Feb 2023 19:06:25 +0000 (14:06 -0500)
committerGitHub <noreply@github.com>
Sun, 5 Feb 2023 19:06:25 +0000 (20:06 +0100)
commit73ece30d842ff2e814372f2003accd1bc25e78b6
tree8887be0d8af81fdd6f5c82e378819cef38f8c9b2
parentf9fc0e045bc1f72ba61fdf4a79b10a75a240394e
markup: Fix linenos codeblock hl option case regression

This fixes a regression introduced in v0.93.0 where previously, a
mixed-case key for lineNos would be successfully parsed. This change
moves the configuration key lowercasing step into the configuration
normalization stage, which is called whether the highlighting config
is being parsed from a `string` or a `map`.

Fixes #10682
markup/highlight/config.go
markup/highlight/config_test.go