22 lines
No EOL
704 B
HTML
22 lines
No EOL
704 B
HTML
{{ if transform.CanHighlight .Type }}
|
|
{{/* Supported Chroma Language*/}}
|
|
|
|
<div class="highlight">
|
|
{{ with .Attributes.title }}
|
|
<div class="highlight-title"><span>{{ . }}</span></div>
|
|
{{ end }}
|
|
<pre tabindex="0" class="chroma"><code class="language-{{ .Type }}" data-lang="{{ .Type }}">
|
|
{{- with transform.HighlightCodeBlock . -}}
|
|
{{ .Inner }}
|
|
{{- end -}}
|
|
</code></pre></div>
|
|
|
|
{{ else }}
|
|
{{/* Unsupported Language */}}
|
|
<div class="highlight">
|
|
{{ with .Attributes.title }}
|
|
<div class="highlight-title"><span>{{ . }}</span></div>
|
|
{{ end }}
|
|
<pre tabindex="0"><code class="language-{{ .Type }}" data-lang="{{ .Type }}">{{ .Inner }}</code></pre>
|
|
</div>
|
|
{{ end }} |