We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0afd23 commit 7b029cdCopy full SHA for 7b029cd
layouts/_default/_markup/render-codeblock.html
@@ -3,7 +3,14 @@
3
{{- $attributes = merge $attributes (dict "class" (delimit $classes " ")) }}
4
<pre
5
{{- range $k, $v := $attributes }}
6
- {{- printf " %s=%q" $k $v | safeHTMLAttr }}
+ {{- if eq $k "data-line-offset" -}}
7
+ data-line-offset="{{ int $v | add -1 }}"
8
+ {{- else -}}
9
+ {{- printf " %s=%q" $k $v | safeHTMLAttr -}}
10
+ {{- end -}}
11
12
+ {{- if not (isset $attributes "data-line-offset") -}}
13
+ data-line-offset="0"
14
{{- end -}}
15
>
16
<code>
0 commit comments