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:
parent
d48a66e393
commit
7bfd7b12c4
@ -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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user