Skip to content

Commit

Permalink
Merge pull request Python-Markdown#130 from erikvanzijst/master
Browse files Browse the repository at this point in the history
Fix unicode problem in headerid extension
  • Loading branch information
Waylan Limberg committed Aug 15, 2012
2 parents 2789026 + dbd6676 commit aace46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markdown/extensions/headerid.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def run(self, doc):
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
Expand Down

0 comments on commit aace46c

Please sign in to comment.