From 67f94a99214feba434c35c4446656b2d4c659553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 13 Aug 2023 01:24:17 +0200 Subject: [PATCH] docs: fix incomplete tab examples --- exampleSite/content/shortcodes/tab.en.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/exampleSite/content/shortcodes/tab.en.md b/exampleSite/content/shortcodes/tab.en.md index 8864ccf69e..204095c0c9 100644 --- a/exampleSite/content/shortcodes/tab.en.md +++ b/exampleSite/content/shortcodes/tab.en.md @@ -60,6 +60,14 @@ printf("Hello World!"); ### Single Code Block with Collapsed Margins +````go +{{%/* tab title="Code" */%}} +```python +printf("Hello World!"); +``` +{{%/* /tab */%}} +```` + {{% tab title="Code" %}} ```python @@ -70,9 +78,18 @@ printf("Hello World!"); ### Mixed Markdown Content +````go +{{%/* tab title="_**Mixed**_" */%}} +A tab can not only contain code but arbitrary text. In this case text **and** code will get a margin. +```python +printf("Hello World!"); +``` +{{%/* /tab */%}} +```` + {{% tab title="_**Mixed**_" %}} -A tab can not only contain code but arbitrary text. In this case text and code will get a margin. +A tab can not only contain code but arbitrary text. In this case text **and** code will get a margin. ```python printf("Hello World!");