6 lines
310 B
HTML
6 lines
310 B
HTML
{{ $html := .Inner | htmlEscape }}
|
|
{{ $html := replace $html "((" "<span class='highlight'>" }}
|
|
{{ $html := replace $html "))" "</span>" }}
|
|
{{ $numbered := .Get "numbered" }}
|
|
<div class="code-annotated {{ if and ($numbered) (ne $numbered "false") }}numbered{{ end }}"><code>{{ $html | safeHTML }}</code></div>
|