From 4a5f4fe6e4cb249659ab83346261d4cfe3cf07fe Mon Sep 17 00:00:00 2001 From: Nicolas Duhamel Date: Wed, 27 Apr 2011 11:45:59 +0200 Subject: [PATCH] Fix internal linkref for allow TOC --- pelican/writers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/writers.py b/pelican/writers.py index ae407743..3679e249 100644 --- a/pelican/writers.py +++ b/pelican/writers.py @@ -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)