Skip to content

Commit

Permalink
chore(packages): Cleanup default styles of Pandoc content
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Nov 16, 2024
1 parent 8c9348b commit 7411744
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/pandoc/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ function package:_init ()
self:loadPackage("rules")
self:loadPackage("url")
self:loadPackage("verbatim")
self.class:registerPostinit(function ()
-- Override the url package which styles URLs as code, something Pandoc content tends to double up on
self:registerCommand("urlstyle", function (_, content)
SILE.process(content)
end)
end)
end

function package:registerCommands ()
Expand Down

0 comments on commit 7411744

Please sign in to comment.