Search code examples
ruby-on-railsmarkdownpandocslim-lang

Slim template: use Pandoc as markdown converter?


I use slim as template syntax in a Rails project. I always loved its markdown: feature.

For the current project I have to export some markdown content to different formats, e.g. PDF. I use Pandoc for this, which has enhanced capabilities for markdown.

Now I wonder whether I can tell slim to use pandoc as default markdown converter?


Solution

  • Just implement own Pandoc template engine and register it in tilt. slim will use your template engine automatical (for any case check that you don't user other Markdown engines such as karmdown, etc.)