Hi! I’m trying to port my blog to Zola (for fun), and I think I have run into some edge cases. One of them is that I’d like to render some data from a file as markdown. Using my previous Jekyll setup, I used inline templating in the Markdown file, but AFAIK that is not possible in Zola.
So, I’m trying to write a shortcode template that renders to the correct Markdown. Sadly, it strips newlines (here I think), so paragraphs in Markdown just down work. My next try was to generate HTML, but then there is not table of contents…
Is there an option to not strip empty lines in shortcodes? Or some other way to accomplish this?
That’s the version where I just emit HTML from the shortcode, and don’t get a TOC. What I’d like to do instead is emit Markdown that is then processed like any other content. Checkout the other commit I linked to see how my attempt at that looks