You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
I've noticed that Kramdown implements footnotes by creating list html tags with IDs like this:
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:
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.
The text was updated successfully, but these errors were encountered: