aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2009-05-06 20:28:56 -0400
committerWaylan Limberg <waylan@gmail.com>2009-05-06 20:28:56 -0400
commit6115ecc9185be643c6825fd4bd969edc4eff81ec (patch)
tree5c728a0fec1ca6acd9f8778b0358c0fef9bde68b
parentf524131c5402903f172735c7afb3171e8f70e661 (diff)
downloadmarkdown-6115ecc9185be643c6825fd4bd969edc4eff81ec.tar.gz
markdown-6115ecc9185be643c6825fd4bd969edc4eff81ec.tar.bz2
markdown-6115ecc9185be643c6825fd4bd969edc4eff81ec.zip
Fixed ticket 33. Tweaked the regex for inline links so that the title is non-greedy - it no longer eats everything between the first links title and the last links title in a paragraph. Thanks to Charles Winebrinner for the report.
-rw-r--r--markdown/inlinepatterns.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/inlinepatterns.py b/markdown/inlinepatterns.py
index 5e14067..331bead 100644
--- a/markdown/inlinepatterns.py
+++ b/markdown/inlinepatterns.py
@@ -74,7 +74,7 @@ else:
EMPHASIS_2_RE = r'(_)(.+?)\2' # _emphasis_
LINK_RE = NOIMG + BRK + \
-r'''\(\s*(<.*?>|((?:(?:\(.*?\))|[^\(\)]))*?)\s*((['"])(.*)\12)?\)'''
+r'''\(\s*(<.*?>|((?:(?:\(.*?\))|[^\(\)]))*?)\s*((['"])(.*?)\12)?\)'''
# [text](url) or [text](<url>)
IMAGE_LINK_RE = r'\!' + BRK + r'\s*\((<.*?>|([^\)]*))\)'