From bdb0545b27d6d862599be9d01f8232fcc4e0bc7c Mon Sep 17 00:00:00 2001 From: jwansek Date: Sat, 12 Mar 2022 21:22:31 +0000 Subject: added some comments, removed some prints --- parser.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'parser.py') diff --git a/parser.py b/parser.py index c5c8755..192c931 100755 --- a/parser.py +++ b/parser.py @@ -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 %} -- cgit v1.2.3