Not pure HTML. Contains templating characters that break TreeSitter HTML parsing. Because of this, requires N:M mapping for the AST, but wouldn't if it parsed correctly.

This mapping is unfinished: 3 of 68 nodes are still unmarked.

Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

1{{ define "main" }}
2 {{ .Content }}
3 {{ range site.RegularPages }}
4 <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
5 {{ .Summary }}
6 {{ end }}
7{{ end }}
8

After

1{{ define "main" }}
2 {{ .Content }}
3 {{ range site.RegularPages }}
4 <section>
5 <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
6 {{ .Summary }}
7 </section>
8 {{ end }}
9{{ end }}
10

Before

document
text "{{ define \"main\" }}\n {{ .Content }}\n {{ range site.Regular"...
element (+26 nodes collapsed)
text "{{ .Summary }}\n {{ end }}\n{{ end }}"

After

document
text "{{ define \"main\" }}\n {{ .Content }}\n {{ range site.Regular"...
element
start_tag
< "<"
tag_name "section"
> ">"
element (+26 nodes collapsed)
text "{{ .Summary }}"
end_tag
</ "</"
tag_name "section"
> ">"
text "{{ end }}\n{{ end }}"