Skip to content

Commit

Permalink
fix(docgen): don't fail on mixed-type tables (lists and dictionaries …
Browse files Browse the repository at this point in the history
…at the same time)
  • Loading branch information
vhyrro committed May 31, 2023
1 parent 0e97976 commit 1afcaf8
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 @@ -662,7 +662,7 @@ docgen.htmlify = function(configuration_option, indent)
local unrolled = neorg.lib.unroll(self.object)

table.sort(unrolled, function(x, y)
return x[1] < y[1]
return tostring(x[1]) < tostring(y[1])
end)

for _, data in ipairs(unrolled) do
Expand Down

0 comments on commit 1afcaf8

Please sign in to comment.