HTML to Markdown without losing formatting

Hopefully someone can help me out here. I am trying to import a very large amount of information from a website while keeping all of the formatting. However, any method of importing I’ve tried loses a lot of the formatting and I end up with a giant wall of text. I lose all headings, ordered lists, indentation, etc. I’ve tried googling and searching forum, but haven’t found anything helpful.

Also, if anyone has ideas for changing the footnote links so that they point at the footnotes in the text once imported instead of to the website, it would be immensely helpful!

This is the webpage I am trying to import:

I had a quick look with Obsidian’s Web Clipper browser extension.

Looks promising with the footnotes as well (they are all going to be on the bottom of the md file though).