1
0
Fork 0

Added support for named links so they will not changed during autolinks creation

This commit is contained in:
Daniele Tricoli 2007-09-01 16:47:36 +00:00
parent 1c189aeb98
commit 4b08c11f95
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ def process_bodypage(body):
ulist = re.compile(r'''(\t| +)~?-''')
autolink = re.compile(r'''\b(?!\[\[) # Not starting with [[
([A-Z][a-z]*[A-Z]+[a-z]+[a-zA-Z]*) # CamelCase
(?!\]\])\b # Not ending with ]]
(?!\]\]|\|)\b # Not ending with ]] or |
''', re.VERBOSE)
images = re.compile(r'''img="(.*?)"''')
monospaced = re.compile(r'''##(.*?)##''')