Skip to content

Commit

Permalink
Move arguments to data structure
Browse files Browse the repository at this point in the history
  • Loading branch information
markdumay committed Dec 29, 2023
1 parent 661b831 commit 4a85d89
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions content/en/docs/latest/components/example.md
@@ -1,7 +1,7 @@
---
author: Mark Dumay
title: Example
date: 2023-09-02
date: 2023-12-29
description: The example shortcode displays a code example and renders a preview of the same input.
layout: docs
icon: fa lightbulb
Expand All @@ -26,15 +26,7 @@ export MY_VAR=123

The shortcode supports the following arguments:

{{< table >}}
| Argument | Required | Description |
|--------------|----------|-------------|
| id | No | Optional identifier of the element's container. |
| lang | No | Language used to display the code. Use "hugo" to process Hugo (escaped) shortcodes, default value is "html". |
| show_markup | No | If the markup should be output in the HTML, defaults to "true". |
| show_preview | No | If the preview should be output in the HTML, defaults to "true". |
| class | No | Optional class attributes of the element's container. |
{{< /table >}}
{{< args structure="example" group="shortcode" >}}

## Examples

Expand Down

0 comments on commit 4a85d89

Please sign in to comment.