<h{{ .Level }} id="{{ .Anchor }}" {{- with .Attributes.class }} class="{{ . }}" {{- end }}> <a href="#{{ .Anchor }}">{{ .Text }}</a> </h{{ .Level }}>