Using GitHub's API, see Rendering Markdown with the GitHub Markdown API
Render Strip hidden and cleanup HTML Use GitHub Flavored Markdown (GFM)