Skip to content
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

Footnotes don't work in shortcodes and HTML #2765

Open
neverix opened this issue Jan 6, 2025 · 3 comments
Open

Footnotes don't work in shortcodes and HTML #2765

neverix opened this issue Jan 6, 2025 · 3 comments

Comments

@neverix
Copy link

neverix commented Jan 6, 2025

Bug Report

Environment

Zola version: 0.19.2

Step to reproduce

footnoter.html

{{cont | safe | markdown | safe}}

page.md

[^1] I am a footnote

<p>
[^2] I am also a footnote.
</p>

{{ footnoter(cont="[^3] footnore 3") }}

[^1]: one

[^2]: two

[^3]: three

Expected Behavior

This should render all three footnotes with proper references.

Current Behavior

The second two footnotes don't render and display as plain text.

@Keats
Copy link
Collaborator

Keats commented Jan 7, 2025

You have to use markdown filters if you want to add markdown content. HTML shortcodes output HTML and the CommonMark parser doesn't parse those.

@neverix
Copy link
Author

neverix commented Jan 7, 2025

The actual issue is that markdown footnotes don't get parsed in HTML. Some parsers do make it possible to include markdown inside tags on separate lines

@Keats
Copy link
Collaborator

Keats commented Jan 9, 2025

Not the one we're using though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants