You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for the individual lines of code. The width of the parent element is not affected by this, so there is extra padding at the end of each line, which can cause unnecessary scrollbars.
A minimal example with a dark highlighting style, a narrow body and a white outline to illustrate the problem:
cat <<'EOF' | pandoc -s -t html --highlight-style breezedark<style>body { width: 32em; }pre > code.sourceCode { outline: solid 1px white; }</style>```{.numberLines}This is the first line.This is a line long enough to cause horizontal scrolling.This is another, slightly shorter line.``````bashecho "A code block without numberLines is not affected by this.```EOF
This is rendered like this:
The .numberLines code block lines are 4em longer than their contents; the Bash code block below, without line numbers, does not have that problem.
Sadly, my CSS-fu isn't strong enough to suggest a CSS solution, let alone anything that involves Haskell.
The text was updated successfully, but these errors were encountered:
When using pandoc 2.10 / skylighting 0.8.5, code blocks with the
.numberLines
class generate CSS withfor the individual lines of code. The width of the parent element is not affected by this, so there is extra padding at the end of each line, which can cause unnecessary scrollbars.
A minimal example with a dark highlighting style, a narrow body and a white outline to illustrate the problem:
This is rendered like this:
The
.numberLines
code block lines are4em
longer than their contents; the Bash code block below, without line numbers, does not have that problem.Sadly, my CSS-fu isn't strong enough to suggest a CSS solution, let alone anything that involves Haskell.
The text was updated successfully, but these errors were encountered: