Recently I’ve updated to hugo 0.58.1 from 0.54.0; I have a shortcode that uses the .Inner parameter as such: {{ .Inner | markdownify | safeHTML }}.
Within the shortcode I have the: {{$_hugo_config:={ "version": 1 }}} - with the tildes - code to use the old behaviour rendering markdown inside of shortcodes.
However, when ever viewing lists or images within the shortcode, they are not rendered.
The shortcode acts as a collapsing or “accordion” component for content.
Example code:
{{%expand “name”%}}
Here is a list of items:
-item 1
-item 2
-item 3
{{%/expand %}}
the markdown list is rendered as:
Here is a list of items: -item 1-item 2-item 3
where it should be rendered as:
Here is a list of items:
- item 1
- item 2
- item 3
Any help?