Skip to content

Commit

Permalink
fix(docgen): beautify keybind output in <details> tag
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Jul 16, 2024
1 parent 572de72 commit 7a9d54c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docgen/docgen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,9 @@ docgen.generators = {
end

table.insert(layout, "- <details>")
table.insert(layout, string.format(" <summary> `%s` - %s </summary>", key, description))
table.insert(layout, " <summary>")
table.insert(layout, string.format(" #### `%s` - %s", key, description))
table.insert(layout, " </summary>")
table.insert(layout, "")
table.insert(layout, string.format(" - Default map: `%s`", data.rhs))
if mnemonic then
Expand Down

0 comments on commit 7a9d54c

Please sign in to comment.