Fix internal linkref for allow TOC

This commit is contained in:
Nicolas Duhamel 2011-04-27 11:45:59 +02:00
commit 4a5f4fe6e4

View file

@ -201,7 +201,7 @@ class Writer(object):
"""
content = input._content
hrefs = re.compile(r'<\s*[^\>]*href\s*=\s*(["\'])(.*?)\1')
hrefs = re.compile(r'<\s*[^\>]*href\s*=(^!#)\s*(["\'])(.*?)\1')
srcs = re.compile(r'<\s*[^\>]*src\s*=\s*(["\'])(.*?)\1')
matches = hrefs.findall(content)