blairfrandeen / blog

Code for my website
0 stars 0 forks source link

Footnotes not working #27

Open blairfrandeen opened 10 months ago

blairfrandeen commented 10 months ago

Obsidian style footnotes don't seem to work out of the box; The superscript links are there, but the targets are not.

blairfrandeen commented 10 months ago

This is the line that's breaking it: https://github.com/blairfrandeen/blog/blob/73254027a68ef10ae9aeac961d41b303cb464cb0/blog_admin.py#L275-L276

I was able to comment this out to get my first post with footnotes working. Will have to work on a better strategy.

blairfrandeen commented 7 months ago

The issue is that the copy post function by default strips everything after the first instance of <hr />, which is where the footnotes end up in the HTML output of pandoc. In my markdown files, I sometimes keep metadata after the <hr /> that I don't want to show up in the posts. This may need to be addressed architecturally. The hotfix has been to comment out the line referenced above for any articles that have footnotes.