diff options
-rw-r--r-- | lib/redcloth.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redcloth.rb b/lib/redcloth.rb index 1228af6eb..e1a995da2 100644 --- a/lib/redcloth.rb +++ b/lib/redcloth.rb @@ -839,7 +839,7 @@ class RedCloth < String end end - TEXTILE_REFS_RE = /(^ *)\[([^\n]+?)\](#{HYPERLINK})(?=\s|$)/ + TEXTILE_REFS_RE = /(^ *)\[([^\[\n]+?)\](#{HYPERLINK})(?=\s|$)/ MARKDOWN_REFS_RE = /(^ *)\[([^\n]+?)\]:\s+<?(#{HYPERLINK})>?(?:\s+"((?:[^"]|\\")+)")?(?=\s|$)/m def refs( text ) |