Skip to content

Commit

Permalink
feat(packages): Add handler for passing raw content to verbatim
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Dec 5, 2024
1 parent 605ae8f commit 46b0164
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/verbatim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ function package:registerCommands ()
end)
end

function package:registerRawHandlers ()
self:registerRawHandler("verbatim", function (options, content)
SILE.call("verbatim", options, { content[1] })
end)
end

package.documentation = [[
\begin{document}
The \autodoc:package{verbatim} package is useful when quoting pieces of computer code and other text for which formatting is significant.
Expand Down

0 comments on commit 46b0164

Please sign in to comment.