License: Reticulum License
I’ve been enjoying playing with reticulum a lot lately but something I wanted to do was convert markdown to micron when I’m making nomadnet pages. I spent some time writing a lua filter for pandoc but as I was doing that, the reticulum dev released an update to the reticulum daemon that included the rngit utility. When I was playing with it I noticed it the readme shows up on the nomadnet page, so obviously some markdown conversion is going on.
It was tucked away in RNS/Utilities/rngit/util.py. I removed the RNS dependancy which was only being used to write a log, added a fix to relative URLs that started with / where the forward slash was getting doubled when they were converted to micron and made it into a standalone script.
I’ve left the original license as is.
Use
md-to-micron -i input_file -o output_file
Input file is required. If you don’t specify an output file it will just print the micron output to the terminal