News for hackers. Stuff that matters.
Re:If it is worth keeping, save it in Markdown by r3trohack3r on Tuesday February 25, 2025 @07:54PM (#43179424)
I built this in college, but the code is lost. It was a week or so of hacking. I believe in you.

IIRC the trick was to get a pipeline for Markdown to HTML, render it into a WYSIWYG editor, then convert the HTML to an AST, and walk that to generate the markdown. I had to “format” both the markdown and html on each render (bidirectional round trip render) because parsing/gen wasn’t whitespace stable.

There are no comments on this comment yet.