getzola/zola

Broken shortcodes on 0.19

Open

#2,565 opened on Jul 3, 2024

View on GitHub
 (18 comments) (1 reaction) (0 assignees)Rust (15,349 stars) (1,046 forks)batch import
buggood first issuehelp wanted

Description

I had a shortcode called email which contained my email address for reasons, and used it as such

<a name="contact-me" href="mailto:{{ email() }}">{{ email() }}</a>

This used to work but I have since upgraded to 0.19.1 and it simply outputs @@ZOLA_SC_PLACEHOLDER@@

I had to move the entire tag into the shortcode for it to work again, but this smells like a bug and a regression to me.

Contributor guide

Broken shortcodes on 0.19 · getzola/zola#2565 | Good First Issue