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" }}
|
|
|
|
<div class="html-annotated {{ if and ($numbered) (ne $numbered "false") }}numbered{{ end }}"><code>{{ $html | safeHTML }}</code></div>
|