From dffd2a427207ff9bcb105adb1981f27b54fe4d63 Mon Sep 17 00:00:00 2001 From: Marat Radchenko Date: Sun, 7 Jan 2024 21:28:12 +0300 Subject: resolves #451 add initial support for `:pygments-linenums-mode: inline` --- CHANGELOG.adoc | 1 + data/styles/epub3.scss | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 5339b17..5901742 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -13,6 +13,7 @@ For a detailed view of what has changed, refer to the {uri-repo}/commits/master[ * escape double quotes in alt text * refactor `btn` styling to be more customizable (#450) * fix duplicate HTML IDs in case the same footnote is used multiple times (#447) +* add initial support for `:pygments-linenums-mode: inline` (#451) == 1.5.1 (2021-04-29) - @slonopotamus diff --git a/data/styles/epub3.scss b/data/styles/epub3.scss index 22470c1..7ff2ce3 100644 --- a/data/styles/epub3.scss +++ b/data/styles/epub3.scss @@ -1078,6 +1078,12 @@ table.table-grid-cols tbody tr > td:last-child { border-right-width: 0; } +pre.pygments span.linenos, +pre.rouge span.linenos { + display: inline-block; + margin-right: 0.75em; +} + hr.pagebreak { -webkit-column-break-after: always; page-break-after: always; -- cgit v1.2.3