From 5972abdc3482daa1e21ae593d479bc4c1141093a 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 491e3fef..2920c45a 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -126,7 +126,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}`"