Open lawcho opened 5 months ago
@dbaynard can you comment on what the +5 -5 is doing in the CSS?
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
This PR would remove it. I'm wondering if there are any potential bad consequences that I'm not seeing.
Hanging indent. It means code with and without line numbers should align in the same position.
It doesn't appear to be working, though, from this example — I can dig out the original examples, if needed?
It would be great to figure out whether this is doing anything important. If not, there's a benefit to removing it, as seen by the above case.
OK, it's going to take me a week to make time for this. I see my PRs from 2017 onwards include some examples, so I'll check those.
I've been delayed on this but it's on my list for July. Thanks for your patience.
This PR aims to fix https://github.com/jgm/pandoc/issues/9292
I'm not sure what the
(-5 + 5)
calculation was trying to do -- it [was added] in a commit about line numbers (#14), but doesn't seem to affect HTML rendering in firefox:Weasyprint always renders the code better without:
Test source code:
::::
:::: new
::::