Our great sponsors
-
easy-markdown-editor
EasyMDE: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
goldmark
:trophy: A markdown parser written in Go. Easy to extend, standard(CommonMark) compliant, well structured.
To make sure things did not diverge, I needed to pick a specification and stick with it. Thankfully, EasyMDE already followed Commonmark, it was Blackfriday that was a little buggy.
On the backend when generating the emails: For this, I chose a popular Go markdown library BlackFriday.
After evaluation a number of other Go markdown libraries, I settled on Goldmark. It was well written, recently updated and easily extensible.
Thankfully, I found a Go package (mdtopdf) that already does this, but it used Blackfriday. I then only had to take a few hours to rewrite it using Goldmark to have a base to work from.