aboutsummaryrefslogtreecommitdiffstats
path: root/markdown_extensions/wikilink.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-08-22 14:48:26 -0400
committerWaylan Limberg <waylan@gmail.com>2008-08-22 14:48:26 -0400
commitafd55854e33d60d6177982bfa9b33d7cafafdd57 (patch)
tree1bace8589927f28ed0703e1a5177fffeb32cbe01 /markdown_extensions/wikilink.py
parent9534b4c639232d2c681bd40b25e531a14b3cc5be (diff)
downloadmarkdown-afd55854e33d60d6177982bfa9b33d7cafafdd57.tar.gz
markdown-afd55854e33d60d6177982bfa9b33d7cafafdd57.tar.bz2
markdown-afd55854e33d60d6177982bfa9b33d7cafafdd57.zip
Fixed wikilink ext to use an AtomicString for label. There's still a problem with the inline stuff though. As far as I can tell it is not related to the ext directly but in markdown itself.
Diffstat (limited to 'markdown_extensions/wikilink.py')
-rw-r--r--markdown_extensions/wikilink.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/markdown_extensions/wikilink.py b/markdown_extensions/wikilink.py
index 47037a6..fd0b62f 100644
--- a/markdown_extensions/wikilink.py
+++ b/markdown_extensions/wikilink.py
@@ -69,7 +69,6 @@ Dependencies:
'''
import markdown
-from markdown import etree
class WikiLinkExtension (markdown.Extension) :
def __init__(self, configs):
@@ -106,8 +105,8 @@ class WikiLinks (markdown.BasePattern) :
base_url, end_url, html_class = self._getMeta()
url = '%s%s%s'% (base_url, m.group('camelcase'), end_url)
label = m.group('camelcase').replace('_', ' ')
- a = etree.Element('a')
- a.text = label
+ a = markdown.etree.Element('a')
+ a.text = markdown.AtomicString(label)
a.set('href', url)
if html_class:
a.set('class', html_class)