lib/redcarpet.rb in redcarpet-1.8.2 vs lib/redcarpet.rb in redcarpet-1.9.0

- old
+ new

@@ -24,11 +24,11 @@ # rescue LoadError # require 'bluecloth' # end # class Redcarpet - VERSION = '1.8.2' + VERSION = '1.9.0' # Original Markdown formatted text. attr_reader :text # Set true to have smarty-like quote translation performed. @@ -67,9 +67,12 @@ # Enable PHP-Markdown ~~strikethrough~~ extension attr_accessor :strikethrough # Enable PHP-Markdown fenced code extension attr_accessor :fenced_code + + # Allow HTML blocks inside of paragraphs without being surrounded by newlines + attr_accessor :lax_htmlblock def initialize(text, *extensions) @text = text extensions.each { |e| send("#{e}=", true) } end