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

Markdown footnotes -- prepend generated id #1286

Open
digitalresistor opened this issue Jan 2, 2021 · 2 comments
Open

Markdown footnotes -- prepend generated id #1286

digitalresistor opened this issue Jan 2, 2021 · 2 comments

Comments

@digitalresistor
Copy link
Contributor

digitalresistor commented Jan 2, 2021

Enhancement

Environment

Zola version: 0.12.2

Prepend footnote id's with fn: or other unique tag.

I have an id collision that is happening on my main page after rendering because an article has an header that matches the name of a footnote. This means that when displaying multiple full articles on the same page, the id matches and it links to the wrong location.

I have started manually prepending the date to the footnotes so that hopefully it is enough to disambiguate them.

@Keats
Copy link
Collaborator

Keats commented Jan 2, 2021

We currently use the basic pulldown-cmark footnotes with no further special handling. If we want to do things like (as well as your #1285) someone would need to take on the lead on implementing it.

@digitalresistor
Copy link
Contributor Author

Ah, alright.

Looks like there is some other footnote related work going on there too: pulldown-cmark/pulldown-cmark#464

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