diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2015-06-21 21:21:49 -0400 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2015-06-21 21:21:49 -0400 |
commit | 3c69b0fb1d86f68a337bf3bd9b4a86b30a5fe6bf (patch) | |
tree | 6972f33b04d940e77486818e6676755550817107 /markdown/extensions/wikilinks.py | |
parent | de76d24283aa62a81e2c4529c4d90fb388ddd26d (diff) | |
download | python-markdown-inline.tar.gz |
Fixed many failing tests in inline refactor. Still a ways to go.inline
Diffstat (limited to 'markdown/extensions/wikilinks.py')
-rw-r--r-- | markdown/extensions/wikilinks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/extensions/wikilinks.py b/markdown/extensions/wikilinks.py index 14f47a1..7b8899b 100644 --- a/markdown/extensions/wikilinks.py +++ b/markdown/extensions/wikilinks.py @@ -57,9 +57,9 @@ class WikiLinks(Pattern): self.config = config def handleMatch(self, m): - if m.group(2).strip(): + if m.group(1).strip(): base_url, end_url, html_class = self._getMeta() - label = m.group(2).strip() + label = m.group(1).strip() url = self.config['build_url'](label, base_url, end_url) a = etree.Element('a') a.text = label |