table of content

This commit is contained in:
Rohit Tanwar
2018-01-21 14:50:06 +05:30
parent 36dff66c26
commit 43cb0ab991
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@
## Table of Content
# :books: List
### :books: List
<ul><li><a href = "#chunk"><code>chunk</code></a></li>
<li><a href = "#compact"><code>compact</code></a></li>
@ -21,12 +21,12 @@
<li><a href = "#zip"><code>zip</code></a></li>
</ul>
# :scroll: String
### :scroll: String
<ul><li><a href = "#count_vowels"><code>count_vowels</code></a></li>
</ul>
# :heavy_division_sign: Math
### :heavy_division_sign: Math
<ul><li><a href = "#gcd"><code>gcd</code></a></li>
<li><a href = "#lcm"><code>lcm</code></a></li>

View File

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