Skip to content

Commit

Permalink
add a class to toc links, usefull for overriding scrolling functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
ingwinlu committed Jan 12, 2015
1 parent 359a7ba commit f409282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toc.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def toString(self):
ret = ""
if (self.parent==None):
ret = ret + "<div id='toc'><ul>"
ret = ret + "<li><a href='#{0}' title='{1}'>{1}</a>".format(self.id, self.header)
ret = ret + "<li><a class='toc-href' href='#{0}' title='{1}'>{1}</a>".format(self.id, self.header)
if (self.childs != []):
ret = ret + "<ul>"
for child in self.childs:
Expand Down

0 comments on commit f409282

Please sign in to comment.