I use shortcodes and since 0.55 I am a bit confused about how it works.
$ hugo version
Hugo Static Site Generator v0.55.3/extended linux/amd64 BuildDate: unknown
My project is using shortcodes in markdown files this way
---
title: A page title
draft: false
---
<div>
{{% intro %}}
# A title with <br /> in
{{% /intro %}}
{{% content %}}
{{% description %}}
## Markdown
{{% /info %}}
{{% practical %}}
## Markdown
{{% /practical %}}
{{% /aside %}}
{{% /content %}}
</div>
Mainly, my shortcodes have this syntax
<div class="wrapper">
<div class="classname">
{{ .Inner }}
</div>
</div>
When I type hugo serve -D only shortcode {{% intro %}} is rendering original markdown and not rendering content in html as others shortcodes are doing.
You can see the results in every page here, at the left of the big red flower https://it-gnosis.eu/
When I read the documentation, I am a little bit confused of what exactly means
outer-most shortcode
fully rendered
old behavior
This solution is working fine
{{ $_hugo_config := `{ "version": 1 }` }}
But what I am understanding from the documentation is that the inner content is rendered in html. Always in my own understanding, this is the old behavior. I think I miss the point
I will be happy to help to improve the documentation.
Last thing, I tried a test to understand by creating a test project
When I first launch hugo serve, the markdown was rendered in html. I did a modification in the content file by adding <br />
in the content. The content is rendered with original markdown. I remove the <br/>
and my content is still rendered with original markdown.
I also notice that I have the favicon of the previous project which is displayed in the tab.