derdennis / sort-markdown-footnotes Goto Github PK
View Code? Open in Web Editor NEWSorting Markdown footnote markers into their order of appearance in the text.
Sorting Markdown footnote markers into their order of appearance in the text.
I have an output error
I do :
cat test_fn.md | sort_footnotes > beautiful-text.markdown
output :
File "/usr/bin/sort_footnotes", line 52
print text
^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
What can I do ?
Am no a python pro.
Thanks, great tool idea
Hey, sorry for necrobumping your repository, I just found it very useful but noticed a probably unwanted behavior given the following situation:
lalala [^fn1][^fn2]
Caused by the following regex:
sort-markdown-footnotes/sort_footnotes
Line 21 in 5fd9838
Seems like the engine refuses to accept [^fn2]
as (\[\^fn([\d]+)\])
because [^fn1]
was already captured, so its last character can't be reused in the next expression?
That could lead to data loss, as these links' labels will be ignored and erased from the file.
Anyway, I guess there can be a couple of solutions:
What do you think? :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.