summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.adoc1
-rw-r--r--data/styles/epub3.scss6
2 files changed, 7 insertions, 0 deletions
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;