File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -745,7 +745,7 @@ blockquote p:last-child {
745
745
}
746
746
747
747
/* Codeblocks */
748
- .highlight {
748
+ .highlight-mf {
749
749
grid-column : 1 / -1 !important ;
750
750
position : relative;
751
751
margin-left : calc (var (--overflow-gutter-extension ) / -2 );
Original file line number Diff line number Diff line change 1
1
{{ $code := .Inner | safeHTML }}
2
2
{{ $lines := split $code "\n" }}
3
- < div class ="highlight ">
4
- < pre class ="chroma " tabindex ="0 ">
3
+ < div data-mf =" true " class ="highlight-mf " style =" display: none ">
4
+ < pre class ="chroma " tabindex ="0 ">
5
5
< code class ="language-{{ .Type }} ">
6
6
{{ range $lines }}
7
7
< span class ="line "> {{ $line := . }}{{ $parts := split $line "#" }}< span class ="code "> {{ index $parts 0 | safeHTML }}
8
8
</ span > {{ $commentPart := "" }}{{ if gt (len $parts) 1 }}< span class ="comment "> {{ index $parts 1 | safeHTML }}</ span > {{ end }}</ span >
9
9
{{ end }}
10
10
</ code >
11
- </ pre >
11
+ </ pre >
12
12
</ div >
13
13
14
+ {{ $result := transform.HighlightCodeBlock . }}
15
+ {{ $result.Wrapped }}
16
+
14
17
<!-- ABSOLUTELY DO NOT CHANGE THIS ORDER -->
You can’t perform that action at this time.
0 commit comments