table of content

This commit is contained in:
Rohit Tanwar
2018-01-21 14:47:07 +05:30
parent dd7c3c2b7b
commit a1b76ad559
2 changed files with 16 additions and 15 deletions

View File

@ -38,9 +38,9 @@ toAppend += '## Table of Content \n'
for category in tag_dict:
toAppend = toAppend + '# ' + EMOJIS[category] + ' ' + title_case(category) +'\n\n <ul>'
for snippet in tag_dict[category]:
toAppend += f'<li>{snippet}</li>\n'
toAppend += f'<li><a href = "#{snippet}">{snippet}</a></li>\n'
toAppend += '</ul>\n\n'
toAppend += '<hr></hr> \n'
toAppend += '<hr></hr> \n\n'
for category in tag_dict:
toAppend = toAppend + '## ' + EMOJIS[category] + ' ' + title_case(category) +'\n\n'
for snippet in tag_dict[category]: