You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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):
OS: Ubuntu
Version 20.04 LTS
The text was updated successfully, but these errors were encountered:
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):
The text was updated successfully, but these errors were encountered: