Commit Redux

A software development blog in commit-sized retrospectives

Adding Markdown Support

Wednesday May 07 2025 • 05:41 AM

Adding Markdown support was pretty easy. I added the kramdown gem and added this line to the show ERB template.

sanitize Kramdown::Document.new(@post.content).to_html

Water.css takes care of the styling and it looks pretty nice. For images and code elements in the previous posts I wrote the HTML by hand, but this will make it much more convenient to write in the future.