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

Unique IDs for footnote list items #56

Closed
SimonGZ opened this issue May 29, 2013 · 1 comment
Closed

Unique IDs for footnote list items #56

SimonGZ opened this issue May 29, 2013 · 1 comment
Assignees

Comments

@SimonGZ
Copy link

SimonGZ commented May 29, 2013

I've noticed that Kramdown implements footnotes by creating list html tags with IDs like this:

<li id="fn:1">

But this causes trouble if you have multiple blog posts on the same page (for instance, the index page of a blog). You end up with several list tags with the same ID and the footnotes in each blog post just end up pointing to the footnotes in the top article on the page.

Given that Markdown footnote syntax allows the creation of footnotes with arbitrary text like this:

[^myCrazyFootnoteName]: The War of 1812 actually took place in 1811.

It'd be awesome if Kramdown used that text as the ID rather than the generic fn:1, fn:2, etc.

Or is there already an option for this in Kramdown and I'm a big dummy? Thanks.

@SimonGZ
Copy link
Author

SimonGZ commented May 29, 2013

A-ha! I realized my problem. I am indeed a dummy. Kramdown does work the way I want it to, but the system I was using was simply not calling Kramdown to process my markdown. It was calling some other lesser markdown engine.

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