diff options
author | Waylan Limberg <waylan@gmail.com> | 2012-08-15 06:48:31 -0700 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2012-08-15 06:48:31 -0700 |
commit | aace46c79b13c1e3f2ab0742060881e48d5627f2 (patch) | |
tree | 39ed7ab38ccada7dc6a75a449e89d4da4a697b95 | |
parent | 2789026a0114dba2e8d60be71b4d7c8cc6eb61ed (diff) | |
parent | dbd6676ca554fb12aa82510a67f5e89ec6ada91c (diff) | |
download | markdown-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.py | 2 |
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 |