@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.

github.com/makew0rld/md2gemini

@mauve I don't maintain it anymore, it's too hacky. It should broadly work in its current state, but I would check the output rather than fully automate it.

@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.

@mauve good luck! It's tough, but if you have a good Markdown AST library to use that will help a lot.

@makeworld Yeah, I've had decent luck with Marked for MD-to-HTML and some basic extraction.

npmjs.com/package/marked

@mauve @makeworld I just wrote some stupid regular expressions but they've been holding up for a few years now: git.sr.ht/~metasyn/memex/tree/ gem text is so simple though it's not much to actually convert?

Follow

@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.

github.com/RangerMauve/markdow

· · Web · 0 · 0 · 1
Sign in to participate in the conversation
Mauvestodon

Escape ship from centralized social media run by Mauve.