File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,12 @@ let renderHLJS =
25
25
Js . String2 . split(highlighted, "\n " )
26
26
-> Belt . Array . mapWithIndex((i, line) =>
27
27
if (Js . Array2 . find(highlightedLines, lnum => lnum === i + 1 ) !== None ) {
28
- "<span class=\" hljs-line-highlight\" >" ++ line ++ "</span>" ;
28
+ let content = line === "" ? " " : line;
29
+ "<span class=\" inline-block\" >" ++ content ++ "</span>" ;
29
30
} else {
30
- line;
31
+ "<span class=\" inline-block text-inherit opacity-50\" >"
32
+ ++ line
33
+ ++ "</span>" ;
31
34
}
32
35
)
33
36
-> Js . Array2 . joinWith("\n " );
Original file line number Diff line number Diff line change @@ -114,10 +114,6 @@ Docco style used in http://jashkenas.github.com/docco/ converted by Simon Madine
114
114
/*@apply text-code-1;*/
115
115
}
116
116
117
- .hljs-line-highlight {
118
- @apply w-full inline-block bg-berry-15;
119
- }
120
-
121
117
/* DARK MODE COLORS */
122
118
123
119
.hljs .dark .hljs-comment {
You can’t perform that action at this time.
0 commit comments