diff options
-rw-r--r-- | themes/default/layouts/_default/_markup/render-codeblock.html | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/themes/default/layouts/_default/_markup/render-codeblock.html b/themes/default/layouts/_default/_markup/render-codeblock.html index 435a12b..91ee9f6 100644 --- a/themes/default/layouts/_default/_markup/render-codeblock.html +++ b/themes/default/layouts/_default/_markup/render-codeblock.html @@ -5,17 +5,13 @@ {{- $id := print "code-block:" $hash | safeURL -}} {{- $edit := "false" -}} -{{- if not (in $options "linenos=1") -}} - {{- $edit = "true" -}} -{{- end -}} - <code-block id="{{ $id }}" {{ if in (lower $options) "linenos" }}data-lines=""{{ end }}> <header> <language-label> <a href="#{{ $id }}">{{ $type }}</a> </language-label> </header> - <code-content contenteditable="{{ $edit }}" spellcheck="false"> + <code-content contenteditable="true" spellcheck="false"> {{- highlight .Inner $type (print $options ",lineAnchors=" "code-line:" $hash) -}} </code-content> </code-block> |