lib/murdoc/paragraph.rb in murdoc-0.1.11 vs lib/murdoc/paragraph.rb in murdoc-0.1.12
- old
+ new
@@ -34,11 +34,11 @@
def formatted_annotation
if defined?(Markdown)
Markdown.new(annotation, :smart).to_html
else
- Kramdown.new(annotation, :input => :markdown).to_html
+ Kramdown::Document.new(annotation, :input => :markdown).to_html
end
end
def formatted_source
@formatted_source ||= if pygments_installed? && options[:highlight_source]
@@ -55,6 +55,6 @@
protected
def pygments_installed?
@@pygments_installed ||= ENV['PATH'].split(':').any? { |dir| File.exist?("#{dir}/pygmentize") }
end
end
-end
\ No newline at end of file
+end