mdcat icon indicating copy to clipboard operation
mdcat copied to clipboard

fix out of bounds problem for h5 etc

Open ollystephens opened this issue 5 years ago • 1 comments

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.

ollystephens avatar Mar 22 '19 13:03 ollystephens

Apologies for the irrelevant re-ordering of the imports. That's my editor's auto-formatter being a pest.

ollystephens avatar Mar 22 '19 13:03 ollystephens