summaryrefslogtreecommitdiffstats
path: root/lib/redcloth3.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redcloth3.rb')
-rw-r--r--lib/redcloth3.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/redcloth3.rb b/lib/redcloth3.rb
index fb9691631..045d44f5d 100644
--- a/lib/redcloth3.rb
+++ b/lib/redcloth3.rb
@@ -381,9 +381,11 @@ class RedCloth3 < String
case rtype
when :limit
/(^|[>\s\(]) # sta
+ (?!\-\-)
(#{QTAGS_JOIN}|) # oqs
(#{rcq}) # qtag
(\w|[^\s].*?[^\s]) # content
+ (?!\-\-)
#{rcq}
(#{QTAGS_JOIN}|) # oqa
(?=[[:punct:]]|\s|\)|$)/x