Hi @Anonymous,
Will suggest to use string replacement, from where if string is <br> replace with CRLF or if <h2> and </h2> replace with ## but using markdown is challenging but can be done for sure.
Another way is puttiunug some reference on your text for example:
Fruit: Apple, Color: Red, Shape: Circle,
from where you replace a character ',' into html syntax with a matching value in markdown syntax.
when you run html, replace ',' with <br> then when running markdown replace ',' with CRLF and so on.
Its going to take time if you will have a decorated format from html to markdown.