{"repo":"activescott/agentmarkdown","free":true,"listed":false,"github":"https://github.com/activescott/agentmarkdown","clone":"git clone https://github.com/activescott/agentmarkdown.git","description":"An accurate, extensible, and fast HTML-to-markdown converter.","language":"TypeScript","stars":23,"topics":["markdown","html","markdown-converter","css","user-agent","javascript","typescript"],"license":"MPL-2.0","category":"cli-tools","readme_excerpt":"Agent Markdown An accurate, extensible, and fast HTML-to-markdown converter. Agent Markdown is a HTML user agent that parses HTML, performs a document layout according to the CSS stylesheet for HTML and then \"renders\" the laid out document to Markdown. This results in markdown that looks very similar to the way the HTML document looked when parsed and rendered in a browser (user agent). - Usage / Quick Start - Install - Features - CLI Example - Live Example - Customize & Extend with Plugins - Show your support - Contributing 🤝 - Release Process (Deploying to NPM) 🚀 - License 📝 Usage / Quick Start Install npm ( npm install agentmarkdown ) Features - Accurately converts HTML to CommonMark-compliant markdown - uses GitHub-Flavored Markdown's Strikethrough extention for &lt;strike&gt; and &lt;del&gt;. - Supports even wonky technically incorrect HTML - Supports nested lists - Supports implied paragraphs / CSS anonymous bock box layout - Can be used client side (in the browser) or server side (with Node.js) - Add support for new elements with plugins - Fast? CLI Example You can convert any HTML file to Markdown at the command line using the following command, and the markdown output will be printed to stdout: agentmarkdown It also responds to stdin, if you pipe html to it. So you can do things like: echo \" bold \" agentmarkdown myfile.md The above commands assume you installed agentmarkdown with npm install --global agentmarkdown but it also works with npx so you can run it witho","default_branch":null,"files":null,"tree":[],"storefront":"/r/activescott","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/activescott/agentmarkdown/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}