diff --git a/assets/css/v2/style.css b/assets/css/v2/style.css index a4c89ad..5ab9fbb 100644 --- a/assets/css/v2/style.css +++ b/assets/css/v2/style.css @@ -1020,6 +1020,7 @@ blockquote.side-callout { border-top: 1px solid #cccccc; border-bottom: 1px solid #cccccc; overflow-x: scroll; + scrollbar-width: none; } .highlight-v2.single-line { diff --git a/layouts/_default/_markup/render-codeblock.html b/layouts/_default/_markup/render-codeblock.html index 788a45c..8a5107a 100644 --- a/layouts/_default/_markup/render-codeblock.html +++ b/layouts/_default/_markup/render-codeblock.html @@ -3,7 +3,7 @@ {{ $lines := split $result.Wrapped "\n" }} {{ $isSingleLine := eq (len $lines) 1 }} -{{ if $isSingleLine }} +{{- if $isSingleLine -}} -{{ else }} - +{{- else -}} - -{{ end }} +{{- end -}}
{{ $result.Wrapped }}
\ No newline at end of file