{{ $id := (.id | default .text) | urlize }} {{ $text := .text | markdownify }} {{ $level := .level | default 2 }} {{ $iconSizes := dict "1" "7" "2" "6" "3" "5" "4" "4" "5" "3" "6" "3" }} {{ $n := index $iconSizes ($level | string) }} {{ if .href }} {{ $text }} {{ else if .anchor }} {{ $text }} {{ else }} {{ $text }} {{ end }} {{ if ne .icon false }} {{ end }}