cupper-hugo-theme/themes/infusion/layouts/shortcodes/html.html
2017-10-07 10:36:18 +01:00

5 lines
210 B
HTML

{{ $html := .Inner | htmlEscape }}
{{ $html := replace $html "((" "<span class='highlight'>" }}
{{ $html := replace $html "))" "</span>" }}
<div class="html-annotated"><code>{{ $html | safeHTML }}</code></div>