aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2012-08-15 06:48:31 -0700
committerWaylan Limberg <waylan@gmail.com>2012-08-15 06:48:31 -0700
commitaace46c79b13c1e3f2ab0742060881e48d5627f2 (patch)
tree39ed7ab38ccada7dc6a75a449e89d4da4a697b95
parent2789026a0114dba2e8d60be71b4d7c8cc6eb61ed (diff)
parentdbd6676ca554fb12aa82510a67f5e89ec6ada91c (diff)
downloadmarkdown-aace46c79b13c1e3f2ab0742060881e48d5627f2.tar.gz
markdown-aace46c79b13c1e3f2ab0742060881e48d5627f2.tar.bz2
markdown-aace46c79b13c1e3f2ab0742060881e48d5627f2.zip
Merge pull request #130 from erikvanzijst/master
Fix unicode problem in headerid extension
-rw-r--r--markdown/extensions/headerid.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/extensions/headerid.py b/markdown/extensions/headerid.py
index 3f9e4c4..e86ab15 100644
--- a/markdown/extensions/headerid.py
+++ b/markdown/extensions/headerid.py
@@ -137,7 +137,7 @@ class HeaderIdTreeprocessor(markdown.treeprocessors.Treeprocessor):
if "id" in elem.attrib:
id = elem.id
else:
- id = slugify(''.join(itertext(elem)), sep)
+ id = slugify(u''.join(itertext(elem)), sep)
elem.set('id', unique(id, self.IDs))
if start_level:
level = int(elem.tag[-1]) + start_level