From 047606ff45a25435155b2c3efbe99c8b66a697ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Thu, 22 Jun 2023 17:32:39 +0200 Subject: [PATCH] docs: switch to lineNos=true #169 be a role model and adhere to the docs --- exampleSite/content/shortcodes/highlight.en.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/exampleSite/content/shortcodes/highlight.en.md b/exampleSite/content/shortcodes/highlight.en.md index 1cc1fcfb98..13717c80ec 100644 --- a/exampleSite/content/shortcodes/highlight.en.md +++ b/exampleSite/content/shortcodes/highlight.en.md @@ -5,7 +5,7 @@ title = "Highlight" The `highlight` shortcode renders your code with a syntax highlighter. -{{< highlight lineNos="table" type="py" wrap="true" >}} +{{< highlight lineNos="true" type="py" wrap="true" >}} print("Hello World!") {{< /highlight >}} @@ -24,7 +24,7 @@ While the examples are using shortcodes with named parameter it is recommended t {{% tab title="codefence" %}} ````md -```py { lineNos="table" wrap="true" } +```py { lineNos="true" wrap="true" } print("Hello World!") ``` ```` @@ -33,7 +33,7 @@ print("Hello World!") {{% tab title="shortcode" %}} ````go -{{}} +{{}} print("Hello World!") {{}} ```` @@ -42,7 +42,7 @@ print("Hello World!") {{% tab title="shortcode (positional)" %}} ````go -{{}} +{{}} print("Hello World!") {{}} ```` @@ -54,7 +54,7 @@ print("Hello World!") {{ partial "shortcodes/highlight.html" (dict "context" . "content" "print(\"Hello World!\")" - "lineNos" "table" + "lineNos" "true" "type" "py" "wrap" "true" )}} @@ -68,7 +68,7 @@ print("Hello World!") {{ partial "shortcodes/highlight.html" (dict "context" . "content" "print(\"Hello World!\")" - "options" "lineNos=table,wrap=true" + "options" "lineNos=true,wrap=true" "type" "py" )}}