diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2022-03-12 21:22:31 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2022-03-12 21:22:31 +0000 |
commit | bdb0545b27d6d862599be9d01f8232fcc4e0bc7c (patch) | |
tree | 929415992f8d9ca00e26d5ed3a948bb1b8b79f86 /parser.py | |
parent | 799284d7065f8db02e7c8d935def80b7a2dd6f9f (diff) | |
download | boymoder.blog-bdb0545b27d6d862599be9d01f8232fcc4e0bc7c.tar.gz boymoder.blog-bdb0545b27d6d862599be9d01f8232fcc4e0bc7c.zip |
added some comments, removed some prints
Diffstat (limited to 'parser.py')
-rwxr-xr-x | parser.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -89,7 +89,11 @@ def get_headers(html): headers = [(i[0], i[1] - thesmallestlevel, i[2]) for i in headers] # print(headers) + # there is a bug here- + # it must start with the largest header and only go up and down in increments of one + # TODO: fix it! md_template = jinja2.Template(""" + - dummy header {% for text, depth, link in contents %} {{ " " * depth }} - [{{ text }}]({{ link }}) {% endfor %} |