Pandoc

https://pandoc.org/
https://pandoc.org/try/
https://pandoc.org/MANUAL.html

HTML to Markdown

there is a really good article about the usage of Robocopy on technet, but in case i don't have access to the internet, or its not available anymore i copied some of it's content into this document using pandoc html to markdown conversion:

pandoc -o robocopy.md .\robocopy.html -w markdown_phpextra

This way, Some of the tables where not convertet properly. Also Markdown/Markdown extra does not support multlible lines or lists inside of cells. Pandoc's Markdown would support it but its not supported by the PHP Parsedown Library which i use for my website.

X to PDF

https://learnbyexample.github.io/tutorial/ebook-generation/customizing-pandoc/