There was an error while loading. Please reload this page.
1 parent e644178 commit cdb24abCopy full SHA for cdb24ab
1 file changed
plugins/line-highlight/prism-line-highlight.css
@@ -19,6 +19,17 @@ pre[data-line] {
19
white-space: pre;
20
}
21
22
+@media print {
23
+ .line-highlight {
24
+ /*
25
+ * This will prevent browsers from replacing the background color with white.
26
+ * It's necessary because the element is layered on top of the displayed code.
27
+ */
28
+ -webkit-print-color-adjust: exact;
29
+ color-adjust: exact;
30
+ }
31
+}
32
+
33
.line-highlight:before,
34
.line-highlight[data-end]:after {
35
content: attr(data-start);
0 commit comments