2017-10-07 11:36:18 +02:00
|
|
|
{{ $html := .Inner | htmlEscape }}
|
|
|
|
{{ $html := replace $html "((" "<span class='highlight'>" }}
|
|
|
|
{{ $html := replace $html "))" "</span>" }}
|
2017-10-07 13:27:26 +02:00
|
|
|
{{ $numbered := .Get "numbered" }}
|
2017-10-08 14:00:44 +02:00
|
|
|
<div class="code-annotated {{ if and ($numbered) (ne $numbered "false") }}numbered{{ end }}"><code>{{ $html | safeHTML }}</code></div>
|