I have an markdown image within a shortcode (which is using {{ .Inner | markdownify }} ). I’m seeing standard .md to .html rendering and not the one defined in the custom render hooks.
is this correct? (or have hooks not yet been applied to shortcodes?)
haha, maybe more of an open ended question if there is a way to do both.
just for some context:
I saw that the Reveal-Hugo theme does not support Goldmark yet, so I thought that I might as well make a hugo theme which uses reveal.js (thought it would be a good exercise to understand it’s inner working and make a “hugo version” which matches my workflow). So, my thought was to delineate each slide within a shortcode which could take parameters. Within each slide there could be other shortcodes to handle formatting and interactivity. In this case we are dealing with nested shortcodes and content.
Once this is solved, then it will address my issue.
Though, if someone is interested in a example use case :
Say, I’m trying to make a slideshow with three slides, with some content in it… and maybe the last two slide are within what many presentation frameworks call a “section” (or a “stack”) which are slides that vertically scroll.
{{< slide >}}
# Slide 1
Hello, how are you?
{{< /slide >}}
{{< section >}}
{{< slide template="temp1" other-param="foo" >}}
We can do more complex things like adding parameters for styling.
{{< /slide >}}
{{< slide >}}
or use other shortcodes which can easily section content
{{< gallery >}}
![img1](img1.png)
![img2](img2.png)
![img3](img3.png)
![img4](img4.png "And with Render Hooks we can add even more complex behavior".)
{{< /gallery >}}
{{< /slide >}}
{{< /section >}}