lib/redcarpet.rb in redcarpet-1.11.3 vs lib/redcarpet.rb in redcarpet-1.11.4
- old
+ new
@@ -24,11 +24,11 @@
# rescue LoadError
# require 'bluecloth'
# end
#
class Redcarpet
- VERSION = '1.11.3'
+ VERSION = '1.11.4'
# Original Markdown formatted text.
attr_reader :text
# Set true to have smarty-like quote translation performed.
@@ -47,11 +47,11 @@
attr_accessor :no_links
# Treat newlines in paragraphs as real line breaks, GitHub style
attr_accessor :hard_wrap
- # Disable superscript and relaxed emphasis processing.
+ # Disable relaxed emphasis processing.
attr_accessor :strict
# Generate safer HTML for code blocks (no custom CSS classes)
attr_accessor :gh_blockcode
@@ -95,9 +95,10 @@
def initialize(text, *extensions)
super(text, *extensions)
self.tables = !self.no_tables
self.strikethrough = true
+ self.lax_htmlblock = true
end
end
require 'redcarpet.so'