One that gets me 90% there would take me few hours, one that gets me 99% there few months, which is why eventually people would rather pull a dependency.
https://github.com/williamcotton/markdown-to-html-llm
;)> I myself just the other day had the task of converting HTML to markdown
> you could write an HTML to markdown library in half a day