Skip to content

Commit

Permalink
feat(docgen): auto-open <details> tags that contain tables or lists
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Feb 3, 2023
1 parent b69ea57 commit 1f2e0dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docgen/docgen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -503,10 +503,10 @@ docgen.htmlify = function(configuration_option, indent)
table = function()
vim.list_extend(result, {
"",
"<details>",
"<details open>",
"",
vim.tbl_islist(self.object) and "<summary>list (click to expand)</summary>"
or "<summary>table (click to expand)</summary>",
vim.tbl_islist(self.object) and "<summary>list (click to collapse)</summary>"
or "<summary>table (click to collapse)</summary>",
"",
})
local unrolled = neorg.lib.unroll(self.object)
Expand Down

0 comments on commit 1f2e0dc

Please sign in to comment.