kramdown / converter-pdf

kramdown-converter-pdf uses Prawn to convert a kramdown document to PDF
Other
7 stars 7 forks source link

Missing loader file #1

Closed ashmaroli closed 5 years ago

ashmaroli commented 5 years ago

Since this gem is not loaded automatically by kramdown. the recommended way of usage may fail for some users.

require 'kramdown'
require 'kramdown/converter/pdf'

Kramdown::Document.new(text).to_pdf

A lib/kramdown-converter-pdf.rb may need to exist which in-turn loads kramdown/converter/pdf.rb.

(Additionally, this route would mean consistent behavior across other kramdown-extensions)

gettalong commented 5 years ago

Thanks for reporting this!

The code you included will always work since those are just the standard paths. However, you are right that the convenience loader file is missing. I have fixed this and released a new version of the gem.