markup/highlight: Remove noHl option

Closes #9885
This commit is contained in:
Joe Mooring 2024-12-31 08:35:22 -05:00 committed by Bjørn Erik Pedersen
parent 46ce1f191b
commit 2db43f841c
3 changed files with 1 additions and 8 deletions

View file

@ -168,7 +168,7 @@ func highlight(fw hugio.FlexiWriter, code, lang string, attributes []attributes.
lexer = chromalexers.Get(lang)
}
if lexer == nil && (cfg.GuessSyntax && !cfg.NoHl) {
if lexer == nil && cfg.GuessSyntax {
lexer = lexers.Analyse(code)
if lexer == nil {
lexer = lexers.Fallback