Fixed: bold, italics, underline not working within parentheses (#1225).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1434 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-05-18 08:24:31 +00:00
parent 439c697237
commit 1907c31138
2 changed files with 9 additions and 2 deletions
+2 -2
View File
@@ -376,13 +376,13 @@ class RedCloth < String
re =
case rtype
when :limit
/(^|[>\s])
/(^|[>\s\(])
(#{rcq})
(#{C})
(?::(\S+?))?
([^\s\-].*?[^\s\-]|\w)
#{rcq}
(?=[[:punct:]]|\s|$)/x
(?=[[:punct:]]|\s|\)|$)/x
else
/(#{rcq})
(#{C})