mdcat
mdcat copied to clipboard
fix out of bounds problem for h5 etc
Ran this against a md file that had a level five heading and it crashed. So I've popped a quick bounds check in to avoid this in future. At the same time, removed the duplicate h3 and h4 settings in the array, as the bounds limiting will do this anyway.
Apologies for the irrelevant re-ordering of the imports. That's my editor's auto-formatter being a pest.