diff --git a/docs/layouts/partials/details.html b/docs/layouts/partials/details.html
index 884a9cf..ecca66d 100644
--- a/docs/layouts/partials/details.html
+++ b/docs/layouts/partials/details.html
@@ -23,10 +23,10 @@
| Default |
- {{ partial "highlight" $option.default }} |
+ {{ partial "highlight" $option.default.text }} |
- {{ with $option.example }}
+ {{ with $option.example.text }}
| Example |
{{ partial "highlight" . }} |
diff --git a/docs/layouts/partials/highlight.html b/docs/layouts/partials/highlight.html
index 2cccb52..e3f05e0 100644
--- a/docs/layouts/partials/highlight.html
+++ b/docs/layouts/partials/highlight.html
@@ -1,10 +1,8 @@
{{ $text := . }}
-{{/* if text is a multiline string add nix's double single-quotes */}}
-{{ if in $text "\n" }}
- {{ $text = print "''\n " (strings.TrimSuffix " " (replace $text "\n" "\n ") ) "''" }}
-{{ else }}
- {{ $text = $text | jsonify (dict "indent" " ") }}
+{{ if not $text }}
+ {{/* add a blank character to prevent poor formatting */}}
+ {{ $text = " " }}
{{ end }}
-{{- transform.Highlight $text "nix" }}
\ No newline at end of file
+{{- transform.Highlight $text "nix" }}