github.com/dkischenko/gomarkdoc@v0.0.0-20230516135336-e40deae8a495/templates/doc.gotxt (about) 1 {{- range (iter .Blocks) -}} 2 {{- if eq .Entry.Kind "paragraph" -}} 3 {{- template "text" .Entry.Spans -}} 4 {{- else if eq .Entry.Kind "code" -}} 5 {{- codeBlock "" (include "text" .Entry.Spans) -}} 6 {{- else if eq .Entry.Kind "header" -}} 7 {{- header .Entry.Level (include "text" .Entry.Spans) -}} 8 {{- else if eq .Entry.Kind "list" -}} 9 {{- template "list" .Entry.List -}} 10 {{- end -}} 11 {{- if (not .Last) -}}{{- spacer -}}{{- end -}} 12 {{- end -}}