aboutsummaryrefslogtreecommitdiffstats
path: root/parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'parser.py')
-rwxr-xr-xparser.py4
1 files changed, 4 insertions, 0 deletions
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 %}