Index: lib/redcloth3.rb =================================================================== --- lib/redcloth3.rb (revision 2657) +++ lib/redcloth3.rb (working copy) @@ -1168,7 +1168,7 @@ end end - ALLOWED_TAGS = %w(redpre pre code notextile) + ALLOWED_TAGS = %w(redpre pre code notextile div) def escape_html_tags(text) text.gsub!(%r{<(\/?([!\w]+)[^<>\n]*)(>?)}) {|m| ALLOWED_TAGS.include?($2) ? "<#{$1}#{$3}" : "<#{$1}#{'>' unless $3.blank?}" }