2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-03-28 01:10:42 +00:00

fix(commands/doc): only highlight real headings

This commit is contained in:
sammyette 2023-02-10 17:03:03 -04:00
parent d48a66e393
commit 7bfd7b12c4
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

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)))