Skip to content

Commit

Permalink
refactor(packages): Simplify steps to accomplish the same thing
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Sep 14, 2020
1 parent b90cd37 commit eb10a96
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/url.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ SILE.registerCommand("url", function (options, content)
end)

SILE.registerCommand("code", function(_, content)
SILE.settings.temporarily(function()
SILE.call("verbatim:font")
SILE.process(content)
end)
SILE.call("verbatim:font", {}, content)
end)

return {
Expand Down

0 comments on commit eb10a96

Please sign in to comment.