I've decided to start adding the :linenos: directive to all code blocks. It works but not exactly as I expected. When adding the :linenos: all code blocks are trimmed, this means that the code block boxes are not fully expanded.
Screenshot below; the tl;dr is simply that normal code blocks expand to fill column width but once linenos are enabled, the code block elements are only as wide as their contents.
Haven't reproduced locally yet but I'm assuming this is "just" an aesthetics issue and no content is being hidden/cut off. Either way I'm guessing the addition of :linenos: is adding a class to a nearby element whose width, etc styling is overriding whatever I or my predecessors did to the code blocks to make them full-width.
In an email, @lliendo states:
Screenshot below; the tl;dr is simply that normal code blocks expand to fill column width but once linenos are enabled, the code block elements are only as wide as their contents.
Haven't reproduced locally yet but I'm assuming this is "just" an aesthetics issue and no content is being hidden/cut off. Either way I'm guessing the addition of
:linenos:
is adding a class to a nearby element whosewidth
, etc styling is overriding whatever I or my predecessors did to the code blocks to make them full-width.