Docs: Change tabs shortcode example to permit unsafe=false (#689)

The syntax of `{{% code %}}` only expects Markdown inside. That's why it
triggers unsafe warning, if used as a shortcode template.

Instead the only the top table shortcode should be used as
`{{< tabs >}}` to include the HTML, while the user may use only
`{{% tab "Name" %}}` inside and be happily restricted to Markdown.

https://gohugo.io/methods/page/rendershortcodes/#shortcode-notation
https://github.com/InfosecForActivistsTeam/infosec-activists/pull/45
This commit is contained in:
Vadim (vadcx) 2025-04-07 15:17:19 +02:00 committed by GitHub
parent 645c868cec
commit 6c86dcfdc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -3,16 +3,16 @@
Tabs let you organize content by context, for example installation instructions for each supported platform.
```tpl
{{%/* tabs "id" */%}}
{{</* tabs "id" */>}}
{{%/* tab "MacOS" */%}} # MacOS Content {{%/* /tab */%}}
{{%/* tab "Linux" */%}} # Linux Content {{%/* /tab */%}}
{{%/* tab "Windows" */%}} # Windows Content {{%/* /tab */%}}
{{%/* /tabs */%}}
{{</* /tabs */>}}
```
## Example
{{% tabs %}}
{{< tabs >}}
{{% tab "MacOS" %}}
# MacOS
@ -47,4 +47,4 @@ protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes.
Miseratus fonte Ditis conubia.
{{% /tab %}}
{{% /tabs %}}
{{< /tabs >}}