hellt / markdown-footnote-sorter

A script to sort footnotes in a markdown file
Apache License 2.0
3 stars 2 forks source link

[FR] Order but not renaming #1

Closed bonnebulle closed 1 month ago

bonnebulle commented 2 months ago

Hello, thanks for answering https://github.com/derdennis/sort-markdown-footnotes/issues/2 This one, here, works (using curl) But... no options for now. I would like to sort footnotes... without renaming them

So, we can imagine some option/parameters :

... am searching for this very last option : I want to sort my footnotes at the end of my .md file : but I would like to keep the names I give

Final result/example (order by progression order) :

Mon text de bienvenue[^text_hello], en français[^langue]

[^text_hello]: exemple
[^langue]: but you can translate it :)

Sorry, I dont have the skills to re.code it in python, I just can read regex101, thanks for your work

mjbear commented 1 month ago

@bonnebulle I'll give this feature request some thought as to how it could be implemented.

mjbear commented 1 month ago

@bonnebulle @hellt I have a solution for this, but I'm holding off until a pending PR #13 (from today) is considered.

My reasoning is that I suspect there could be some merge conflicts that I'll have to iron out based on the pending PR. Thank you for understanding.

mjbear commented 1 month ago

@bonnebulle PR #14 is waiting for @hellt's review.

As I worked through the last PR and this one I have some refactoring I want to tinker with ... but this does work! :rocket: :grinning:

Enjoy. While I didn't intend to do this in return for anything if anyone wants to say thanks you could buy me a coffee or orange juice. :sweat_smile: (Don't forget about Roman too. :relaxed:)