Skip to content

Commit

Permalink
fix(docgen): list items with no summary would break rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Feb 3, 2023
1 parent b420e70 commit b69ea57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docgen/docgen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ docgen.render = function(configuration_option, indent)
local basis = {
"* <details>",
"",
table.concat({ "<summary><code>", self.data.name, "</code></summary>" }),
(self.data.name or ""):match("^%s*$") and "<summary>List item</summary>" or table.concat({ "<summary><code>", self.data.name, "</code></summary>" }),
"",
}

Expand Down

0 comments on commit b69ea57

Please sign in to comment.