@bep there is still another breaking change though. Consider my example from before:
myshortcode.html:
<div class="notice">
{{ .Inner }}
</div>
{{% myshortcode %}}
Lorem ipsum [dolor](https://example.org) sit amet.
{{% /myshortcode %}}
Now, as we know, this would not render the markdown of the inner content, without specifying | markdonify
.
However, even with | markdownify
, the output will not be as expected.
Output before 0.55:
<div class="notice">
<p>Lorem ipsum <a href="https://example.org">dolor</a> sit amet.</p>
</div>
Output in 0.55:
<div class="notice">
Lorem ipsum <a href="https://example.org">dolor</a> sit amet.
</div>
It does not render the paragraph.
Another test:
{{% myshortcode %}}
Lorem ipsum [dolor](https://example.org) sit amet.
Consectetuer adipiscing elitr.
{{% /myshortcode %}}
This in turn will render as
<div class="notice">
<p>Lorem ipsum <a href="https://example.org">dolor</a> sit amet.</p>
<p>Consectetuer adipiscing elitr.</p>
</div>
in 0.55 (with {{ .Inner | markdownify }}
).
Sure we could use the {{ $_hugo_config :={ “version”: 1 }}}
setting. But obviously I would rather continue with the new approach.