fauno / jekyll-pandoc-multiple-formats

Use pandoc on jekyll to generate posts in multiple formats. Development has moved to https://0xacab.org/edsl/jekyll-pandoc-multiple-formats
https://endefensadelsl.org
Other
88 stars 28 forks source link

Use only for PDFs? #20

Open NathanHazout opened 8 years ago

NathanHazout commented 8 years ago

I am having a hard time understanding the README.

But first thing I see is "First, it replaces the html generation for pandoc". What if I don't want to replace my entire HTML generation? I only want to use the plugin to generate a PDF copy of each file...

fauno commented 8 years ago

if you change markdown: pandoc to markdown: some_other_parser on your _config.yml it won't use pandoc as the html generator :)

http://endefensadelsl.org

NathanHazout commented 8 years ago

But... if I use some other parser (recarpet), wouldn't it NOT build the PDF as well?

I want to use redcarpet for HTML, and your plugin for PDF. Is that possible?

fauno commented 8 years ago

sorry, we wrote this a long time ago. there's two pandoc generators, one for html (the JekyllPandocMultipleFormats class in lib/jekyll-pandoc-multiple-formats.rb) and another one (PandocGenerator) for the rest of formats. i don't recall right now how the PandocGenerator class is activated... i would have to read jekyll's doc on plugins.

could you try and let me know? :)

http://fauno.endefensadelsl.org