13 lines
392 B
HTML
13 lines
392 B
HTML
{{- $result := transform.HighlightCodeBlock . }}
|
|
<div class="highlight">
|
|
<div>
|
|
{{- .Type -}}
|
|
<span data-action="copy">copy</span>
|
|
</div>
|
|
<pre tabindex="0" class="chroma">
|
|
{{- /* chomp newline */ -}}
|
|
<code class="language-{{ .Type }}" data-lang="{{ .Type }}">{{ $result.Inner }}</code>
|
|
{{- /* chomp newline */ -}}
|
|
</pre>
|
|
</div>
|
|
{{- /* chomp trailing newline */ -}}
|