aboutsummaryrefslogtreecommitdiffstats
path: root/markdown_extensions/wikilinks.py
diff options
context:
space:
mode:
Diffstat (limited to 'markdown_extensions/wikilinks.py')
-rw-r--r--markdown_extensions/wikilinks.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/markdown_extensions/wikilinks.py b/markdown_extensions/wikilinks.py
index 4ecbd01..0d06100 100644
--- a/markdown_extensions/wikilinks.py
+++ b/markdown_extensions/wikilinks.py
@@ -89,9 +89,9 @@ class WikiLinkExtension (markdown.Extension) :
# append to end of inline patterns
WIKILINK_RE = r'\[\[([A-Za-z0-9_ -]+)\]\]'
- WIKILINK_PATTERN = WikiLinks(WIKILINK_RE, self.config)
- WIKILINK_PATTERN.md = md
- md.inlinePatterns.append(WIKILINK_PATTERN)
+ wikilinkPattern = WikiLinks(WIKILINK_RE, self.config)
+ wikilinkPattern.md = md
+ md.inlinePatterns.add('wikilink', wikilinkPattern, "_end")
class WikiLinks (markdown.BasePattern) :