diff options
author | Waylan Limberg <waylan@gmail.com> | 2009-05-06 20:28:56 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2009-05-06 20:28:56 -0400 |
commit | 6115ecc9185be643c6825fd4bd969edc4eff81ec (patch) | |
tree | 5c728a0fec1ca6acd9f8778b0358c0fef9bde68b | |
parent | f524131c5402903f172735c7afb3171e8f70e661 (diff) | |
download | markdown-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.py | 2 |
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*\((<.*?>|([^\)]*))\)' |