diff options
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/templates/blocks/options.gotmpl | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/frontend/templates/blocks/options.gotmpl b/frontend/templates/blocks/options.gotmpl index 89c6f33..a4c4f12 100644 --- a/frontend/templates/blocks/options.gotmpl +++ b/frontend/templates/blocks/options.gotmpl @@ -5,7 +5,7 @@ {{ .Option }} </summary> <p> - {{ HTML .Description.HTML }} + {{ markdown .Description }} </p> <dl> {{- with .Type }} @@ -15,18 +15,26 @@ {{- with .Default }} <dt>Default</dt> <dd> - <pre><code>{{ .Text }}</code></pre> + {{- if .Markdown }} + {{ .Markdown }} + {{- else }} + <pre><code>{{ .Text }}</code></pre> + {{- end }} </dd> {{- end }} {{- with .Example }} - {{- if .Text }} + {{- if or .Text .Markdown }} <dt>Example</dt> <dd> - <pre><code>{{ .Text }}</code></pre> + {{- if .Markdown }} + {{ .Markdown }} + {{- else }} + <pre><code>{{ .Text }}</code></pre> + {{- end }} </dd> {{- end }} {{- end }} - {{- with .RelatedPackages.HTML }} + {{- with .RelatedPackages }} <dt>Related Packages</dt> <dd>{{ . }}</dd> {{- end }} |