diff --git a/NEWS.md b/NEWS.md index aecadde..c8ec289 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # risotto (development version) +* Fix overflow of code blocks with line numbers (#41) + # risotto 0.3.0 * Added support for favicons (#57) diff --git a/static/css/typography.css b/static/css/typography.css index 6369cf0..fcf63b6 100644 --- a/static/css/typography.css +++ b/static/css/typography.css @@ -154,6 +154,12 @@ pre { margin: 0 0 1.5rem 0; } +/* Fix overflow when config markup.highlight.lineNos is true */ +/* See https://github.com/joeroe/risotto/issues/41 */ +.highlight div { + overflow-x: auto; +} + /* Emphasis */ b, strong {