Skip to content

Commit

Permalink
Merge pull request #83 from Omikhleia/fix-update-sile-0.15
Browse files Browse the repository at this point in the history
refactor: Package autodoc-resilient adapted to SILE 0.15
  • Loading branch information
Omikhleia authored Aug 30, 2024
2 parents d470821 + d5c12d7 commit 057f028
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/autodoc-resilient/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ local function astToDisplay (options, content)
else
seenCommandWithoutArg = true
end
elseif tree.id == "texlike_stuff" or (not tree.command and not tree.id) then
elseif tree.id == "texlike_stuff" or tree.id == "content" or (not tree.command and not tree.id) then
-- Due to the way it is implemented, the SILE-inputter may generate such
-- nodes in the AST. It's poorly documented, so it's not clear why they
-- are even kept there (esp. the "texlike_stuff" nodes), but anyhow, as
-- far as autodoc is concerned for presentation purposes, just
-- recurse into them.
-- are even kept there (esp. the "texlike_stuff"/"content" nodes),
-- but anyhow, asfar as autodoc is concerned for presentation purposes,
-- justrecurse into them.
result[#result+1] = astToDisplay(options, tree)
else
SU.error("Unrecognized AST element, type "..type(tree))
Expand Down

0 comments on commit 057f028

Please sign in to comment.