lib/rpub/chapter.rb in rpub-0.2.1 vs lib/rpub/chapter.rb in rpub-0.3.0

- old
+ new

@@ -28,10 +28,10 @@ @id ||= "chapter-#{number}" end # @return [String] content parsed to HTML by the markdown engine. def to_html - @to_html ||= @document.to_html + @to_html ||= Typogruby.improve(@document.to_html) end # @return [String] name for the file in the zip to use, based on the title def filename @filename ||= xml_id.to_s + '-' + title.gsub(/[^\w\.]/i, '-').squeeze('-').downcase.chomp('-') + '.html'