I needed to make stack decisions accept a subset of Markdown, similarly to sites like Reddit or Stack Overflow.
I used the redcarpet Ruby gem for parsing, and Rails' sanitize helper made it very easy to only allow certain tags: links, bold, italics, lists, code blocks, paragraphs.
Problem solved! #StackDecisionsLaunch