Skip to content
This repository has been archived by the owner on May 17, 2018. It is now read-only.

Commit

Permalink
Fix header anchor return
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Jul 6, 2014
1 parent cd61289 commit 0dace85
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions markdown/extensions/headeranchor.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,10 @@ def run(self, root):
id = stashedHTML2text(''.join(itertext(tag)), self.md)
id = unique(slugify(id, self.config.get('sep')), used_ids)
tag.set('id', id)
text = self.markdown.htmlStash.store(
tag.text = self.markdown.htmlStash.store(
LINK % {"id": id},
safe=True
)
if tag.text is not None:
text + tag.text
tag.text = text
) + tag.text if tag.text is not None else ''
return root


Expand Down

0 comments on commit 0dace85

Please sign in to comment.