Markdown inside shortcodes

Some shortcodes, like card or alert, support markdown content inside them.

Components that support markdown

Be careful with indentation

You may want to indent content inside a shortcode for more readability, but be careful - indentation in 4 spaces is considered as a pre block in markdown. For example, this code:

{% fullbleed "yellow-soft", false %}

    ## Test data

    - item 1
    - item 2
    - item 3

    This is a text
    And this is text, too. Another text is ok
{% endfullbleed %}

Will be rendered like this:

## Test data

- item 1 - item 2 - item 3

This is a text And this is text, too. Another text is ok

While this code:

{% fullbleed "yellow-soft", false %}

## Test data

- item 1
- item 2
- item 3

This is a text
And this is text, too. Another text is ok
{% endfullbleed %}

Works as expected:

Test data

  • item 1
  • item 2
  • item 3

This is a text And this is text, too. Another text is ok