-
Hi everyone, E.g. when you have smth like this: some text[^1]
more text[^2]
[^1]: note 1
[^2]: note 2 and then you add another line inbetween some text[^1]
new line[^3]
more text[^2]
[^1]: note 1
[^2]: note 2
[^3]: note 3 your footnotes become unsorted. OCD kicks in... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You know that you can use any identifier to link to footnotes? I'm also mostly using numbers, but you can use |
Beta Was this translation helpful? Give feedback.
-
Okay, last night I decided to google the footnote sorter examples, expecting that there should've been poor souls suffering from this. I found a 11 y.o project, which I refactored to support rich footnote content and different styling of footnotes. https://github.com/hellt/markdown-footnote-sorter Usage: docker run --rm -v $(pwd):/work ghcr.io/hellt/markdown-footnote-sorter path/to/doc.md fnsorter.mp4 |
Beta Was this translation helpful? Give feedback.
Okay, last night I decided to google the footnote sorter examples, expecting that there should've been poor souls suffering from this.
I found a 11 y.o project, which I refactored to support rich footnote content and different styling of footnotes.
https://github.com/hellt/markdown-footnote-sorter
Usage:
docker run --rm -v $(pwd):/work ghcr.io/hellt/markdown-footnote-sorter path/to/doc.md
fnsorter.mp4