Omikhleia / resilient.sile

Advanced book classes and packages for the SILE typesetting system: A path for making books from front cover to back cover.
MIT License
31 stars 5 forks source link

Verbatim and friends do not honor blank lines #97

Open Omikhleia opened 1 month ago

Omikhleia commented 1 month ago

Same core issue as https://github.com/sile-typesetter/sile/issues/2128 but in addition

Omikhleia commented 1 month ago

Oh interesting... resilient.verbatim is less affected than I thought... and has even some good code (see its "IMPLEMENTATION NOTE" in-code comment) that should be up'ed to SILE's regular verbatim, IMHO:

Go re·sil·ient :)

Omikhleia commented 1 month ago

(...) and also the "naive" Lua syntax hightligher, if I remember correctly what it does (adding some zerohbox too if my memory is right)

Indeed, this was always a bit dubious: https://github.com/Omikhleia/markdown.sile/blob/4c312906c400df54a32f85a520492fd8be063605/packages/markdown/commands.lua#L700

(Doh, using a ZWSP, not even a zerohbox, so my own memory of it was both right and wrong... :clown_face: )