Attempt number 1 of auto-converting my markdown based website to #gemini
Currently only available via HTTPs and various #p2p protocols but eventually I'll add a proper gemini server to my main distributed press instance for it. 🤪 Might end up coding one since it's easier than searching through all the options for something that will fit my needs.
hyper://agregore.mauve.moe/explore.gmi
@mauve I love seeing how people use Markdown like this.
I ended up writing a Markdown to Gemtext translator in C# based on the Python converter for my SSG.
@dmoonfire Thst sounds awesome. Did you publish your code by any chance?
@dmoonfire I'm not used to C# so it's neat to see how you've subdivided stuff in your ObjectRenderers classes.
My JS code is a lot more slapstick in comparison :P
@mauve If you are doing JS, you might consider an existing Markdown library and do the same, just process the generated AST or override the renenders.
@dmoonfire @xoofx Ah that's cool. I had Marked do the heavy lifting in their tokenizer and I did soma basic AST traversal in a generator function that yielded bits of text.
@mauve I'm leveraging @xoofx Markdig for doing all the Markdown processing, I'm just overriding their renderers to produce Gemtext which means my work is not that impressive. :P