I’m using Sinatra, and Sinatra uses Tilt for template rendering.
By default Redcarpet has many rendering extensions. How can I use some of these extensions via Sinatra’s #render
method?
I need to render markdown files with :gh_codeblock
extension.
If I read the source code of sinatra, tilt and redcarpet right, you should be able to do something like this:
The second parameter to render is an options hash that is passed to the template engine. See: