Skip to content

Commit

Permalink
feat: command to output a dash '―' created
Browse files Browse the repository at this point in the history
  • Loading branch information
jodros committed Oct 22, 2023
1 parent 7bd675e commit 9f953c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/plain.lua
Expand Up @@ -155,6 +155,10 @@ function class:registerCommands ()
SILE.call("penalty", { penalty = 50 })
end)

self:registerCommand("dash", function()
SILE.typesetter:typeset("")
end)

self:registerCommand("break", function (_, _)
SILE.call("penalty", { penalty = -10000 })
end, "Requests a frame break (if in vertical mode) or a line break (if in horizontal mode)")
Expand Down

0 comments on commit 9f953c8

Please sign in to comment.