diff --git a/lib/redcloth.rb b/lib/redcloth.rb index 59d02fbab..df19de22d 100644 --- a/lib/redcloth.rb +++ b/lib/redcloth.rb @@ -744,7 +744,7 @@ class RedCloth < String end MARKDOWN_RULE_RE = /^(#{ - ['*', '-', '_'].collect { |ch| '( ?' + Regexp::quote( ch ) + ' ?){3,}' }.join( '|' ) + ['*', '-', '_'].collect { |ch| ' ?(' + Regexp::quote( ch ) + ' ?){3,}' }.join( '|' ) })$/ def block_markdown_rule( text )