Skip to content

Commit

Permalink
修复 markdown 渲染无法生成目录的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
JianyongGuo committed Feb 8, 2022
1 parent 4afe6d6 commit d43fe4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiz_search_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ def md2html(self, mdstr):
</html>
'''

mdstr = mdstr.replace('[TOC]', '\n\n[TOC]')

ret = markdown.markdown(mdstr, extensions = exts)
print ret
return html % ret

def GET(self, name):
Expand Down

0 comments on commit d43fe4c

Please sign in to comment.