@makeworld Is this md2gemini lib archived cause you don't want to update it or was it not working like you'd hoped? :o
Thinking of crossposting my blog to gemini.
@makeworld Fair! I was just about to make an equivalent in JS so gonna have a gander at your tests for inspo 😸 I think I'm gonna say "Anything but this subset of markdown is unsupported" since it's mostly for personal use.
@makeworld Yeah, I've had decent luck with Marked for MD-to-HTML and some basic extraction.
@mauve @makeworld I just wrote some stupid regular expressions but they've been holding up for a few years now: https://git.sr.ht/~metasyn/memex/tree/main/item/src/main.rs#L348 gem text is so simple though it's not much to actually convert?
@metasyn @makeworld I think the main thing is deciding which parts of markdown you will throw out and how you'll "gracefully" downgrade. e.g. flattening nested lists.
This is what I came up with for anyone curious.
@mauve good luck! It's tough, but if you have a good Markdown AST library to use that will help a lot.