Skip to content

Commit 46b0164

Browse files
committed
feat(packages): Add handler for passing raw content to verbatim
1 parent 605ae8f commit 46b0164

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/verbatim/init.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ function package:registerCommands ()
3939
end)
4040
end
4141

42+
function package:registerRawHandlers ()
43+
self:registerRawHandler("verbatim", function (options, content)
44+
SILE.call("verbatim", options, { content[1] })
45+
end)
46+
end
47+
4248
package.documentation = [[
4349
\begin{document}
4450
The \autodoc:package{verbatim} package is useful when quoting pieces of computer code and other text for which formatting is significant.

0 commit comments

Comments
 (0)