aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/_markup/render-heading.html
blob: 76b2833b091839a36763465d5bdff654e78b7ce3 (plain) (blame)
1
2
3
4
5
6
7
8
9
{{- if in .Text "<a href=\"" }}
<h{{ .Level }}>
  {{ .Text | safeHTML }}
</h{{ .Level }}>
{{- else }}
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
  <a class="fragment" href="#{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}</a>
</h{{ .Level }}>
{{- end }}