From b2a477260d6c198ca1390e7169a1c98e488351c1 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Fri, 7 Jun 2024 17:47:33 +0100 Subject: [PATCH] docs: emphasise "Plugin default" to match nixpkgs Nixpkg's "headings" are emphasised in italics ("Default", "Example", "Type", etc). We should match the style. --- lib/options.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/options.nix b/lib/options.nix index 68475a33..372be655 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -130,7 +130,7 @@ rec { # TODO deprecate this behavior so we can properly quote strings defaultString = if isString default then default else generators.toPretty { } default; defaultDesc = - "Plugin default:" + "_Plugin default:_" + ( # Detect whether `default` is multiline or inline: if hasInfix "\n" defaultString then "\n\n```nix\n${defaultString}\n```" else " `${defaultString}`"