github.com/ajatprabha/gomarkdoc@v0.0.0-20230705102225-9d169ea523ff/templates/text.gotxt (about)

     1  {{- range . -}}
     2  	{{- if eq .Kind "text" -}}
     3  		{{- escape .Text -}}
     4  	{{- else if eq .Kind "rawText" -}}
     5  		{{- .Text -}}
     6  	{{- else if eq .Kind "autolink" -}}
     7  		{{- .Text -}}
     8  	{{- else if eq .Kind "link" -}}
     9  		{{- link (escape .Text) .URL -}}
    10  	{{- end -}}
    11  {{- end -}}