This is a js rewrite of https://github.com/matthewwithanm/python-markdownify
// ----- // Usage Example: // // Suppose you have a DOM node (for example, document.body or any element): // // const md = markdownify(document.body, { wrap: true, wrap_width: 80 }); // console.log(md); // // This code converts the HTML DOM tree into Markdown text. // -----