python3.7 mdutilstest.py
Traceback (most recent call last):
File "faraday_markdown_parser.py", line 19, in <module>
md.new_header(level=3, title=host_title)
File "/usr/local/lib/python3.7/dist-packages/mdutils/mdutils.py", line 113, in new_header
self.__add_new_item_table_of_content(level, title)
File "/usr/local/lib/python3.7/dist-packages/mdutils/mdutils.py", line 130, in __add_new_item_table_of_content
curr = curr[-1]
IndexError: list index out of range
Expected behavior
It should be possible to have title levels in arbitrary order/
Desktop (please complete the following information):
There are various issues with using title levels in a non-standard order which seems to trigger an IndexError.
To Reproduce Steps to reproduce the behavior:
Expected behavior It should be possible to have title levels in arbitrary order/
Desktop (please complete the following information):