-
Notifications
You must be signed in to change notification settings - Fork 990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken shortcodes on 0.19 #2565
Comments
You had that line the markdown right? If so might be a regression in shortcodes in HTML due to the pulldown-cmark update. |
I am also having this issue. On a markdown page I have multiple a-hrefs and use a shortcode to link to static resources. They now, on most pages, show up as |
Can you share an example md file that has the issue? |
Here are some example files - the first one, with zola's current version, produces links where the final bit of the URL is the placeholder (not the whole URL). The second markdown file produces the correct links. numerik1_ss2021.md I've checked this again, by deleting the |
For anyone using zola via homebrew: I found a nice guide that explains how to get an older version of a formula. I'm now back on |
Ok I can reproduce it with your files. For some reasons it's the
paragraph that causes issues. If i remove the HTML tag in there it does render the rest fine 🤔 |
IIRC I tracked this down to 13682e1 specifically at some point so yeah. |
If anyone is interested, since we have a repro above, we should be able to write tests and fix it somewhat easily. It could be a good first issue! |
Working on this |
Raised a fix: #2601 |
I'm still seeing a variant of this issue with v0.19.2. I want to link to a non-content page from Markdown on a site where the base URL has the form Thus, I created
And use it like this in
However, the generated HTML is:
Instead of the expected:
|
Hm, it seems that the above was already not working in v0.17 and v0.18 (possibly even earlier, I get unrelated build errors with v0.16 or earlier). |
Looks like we are not looking in places like links for shortcodes |
I had a shortcode called
email
which contained my email address for reasons, and used it as suchThis 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.
The text was updated successfully, but these errors were encountered: