Skip to content

Commit

Permalink
Fix line breaks in code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sapegin committed Oct 21, 2024
1 parent c7b4724 commit f2253f3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions generator/epub.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,17 @@ figcaption {
}
}

/* Inline code */
/* Code examples */

code {
pre,
code,
pre > code.sourceCode {
font-size: medium;
font-family: ui-monospace, 'Cascadia Code',
'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono',
monospace;
white-space: pre-wrap;
font-size: medium;
/* Override `white-space:pre` from Pandoc default styles */
white-space: pre-wrap !important;
}

/* Tables */
Expand Down

0 comments on commit f2253f3

Please sign in to comment.