lib/publishr/epub_renderer.rb in publishr-0.6.6 vs lib/publishr/epub_renderer.rb in publishr-0.6.7
- old
+ new
@@ -45,10 +45,10 @@
FileUtils.cp_f File.join(@inpath,'epub.css'), @outpath if File.exists?(File.join(@inpath,'epub.css'))
end
def render_htmls
kramdown_options = {
- :smart_quotes => @metadata['kramdown_options']['smart_quotes'],
+ :smart_quotes => @metadata['kramdown_options'][:smart_quotes],
:template => File.join(@gempath,'lib','epub_templates','kramdown.html')
}
Dir[File.join(@inpath,'*.txt')].each do |infilepath|
kramdown = File.open(infilepath, 'r').read
html = Kramdown::Document.new(kramdown, kramdown_options).to_html