{{/* This doc template is given to the present tool to format articles. */}} {{define "root"}} {{with .Subtitle}}

{{.}}

{{end}} {{if .Doc | sectioned}} {{range .Sections}} {{elem $.Template .}} {{end}} {{else}} {{with index .Sections 0}} {{range .Elem}} {{elem $.Template .}} {{end}} {{end}} {{end}} {{end}} {{define "TOC"}} {{end}} {{define "newline"}} {{/* newline */}} {{end}} {{define "section"}}

{{.Title}}

{{range .Elem}}{{elem $.Template .}}{{end}} {{end}} {{define "list"}} {{end}} {{define "text"}} {{if .Pre}}
{{range .Lines}}{{.}}{{end}}
{{else}}

{{range $i, $l := .Lines}}{{if $i}}{{template "newline"}} {{end}}{{style $l}}{{end}}

{{end}} {{end}} {{define "code"}}
{{.Text}}
{{end}} {{define "image"}} image {{end}} {{define "caption"}}
{{style .Text}}
{{end}} {{define "iframe"}}
{{end}} {{define "link"}} {{end}} {{define "html"}}{{.HTML}}{{end}}