Render Markdown views with Redcarpet and Pygment in Rails
This Lugo Labs Tutor tutorial shows a way how to create a Rails renderer for Markdown so we can use it in views as we do when we write HTML. The view will need to support all Markdown syntax and Pygments, to prettify any code we have in the view. The code should be wrapped within a tag decorated with a class specifying the language in which the code is written, following standard Markdown syntax.
Comments
Why Pygments if you have better syntax colouring support in pure Ruby with Rouge? https://github.com/jneen/rouge
Post a comment