mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix internal linkref for allow TOC
This commit is contained in:
parent
c749f610c5
commit
4a5f4fe6e4
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue