fix(commands/doc): only highlight real headings

job-suspend v2.1.0
sammyette 2023-02-10 17:03:03 -04:00
parent d48a66e393
commit 7bfd7b12c4
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ Available sections: ]] .. table.concat(modules, ', ')
else
return '{underline}{green}'
end
end):gsub('#+.-\n', function(t)
end):gsub('\n#+.-\n', function(t)
local signature = t:gsub('<.->(.-)</.->', '{underline}%1'):gsub('\\', '<')
return '{bold}{yellow}' .. signature .. '{reset}'
end)))