markdown

gratipay.utils.markdown.render(markdown)[source]

Process markdown approximately the same way that GitHub used to.

(Note that as of November, 2016 they are migrating to CommonMark, so we are starting to drift.)

gratipay.utils.markdown.render_and_scrub(markdown)[source]

Given markdown, return a Markup with tags stripped and everything else escaped.