{"repo":"mixmark-io/turndown","free":true,"listed":false,"github":"https://github.com/mixmark-io/turndown","clone":"git clone https://github.com/mixmark-io/turndown.git","description":"🛏 An HTML to Markdown converter written in JavaScript","language":"HTML","stars":11391,"topics":["javascript","html","markdown","html-to-markdown","browser","node","commonmark","gfm"],"license":"MIT","category":"productivity","readme_excerpt":"Turndown Convert HTML into Markdown with JavaScript. See it in action online. Project Updates to-markdown has been renamed to Turndown. See the migration guide for details. Turndown repository has changed its URL to https://github.com/mixmark-io/turndown. Installation npm: Browser: For usage with RequireJS, UMD versions are located in lib/turndown.umd.js (for Node.js) and lib/turndown.browser.umd.js for browser usage. These files are generated when the npm package is published. To generate them manually, clone this repo and run npm run build . Usage Turndown also accepts DOM nodes as input (either element nodes, document nodes, or document fragment nodes): Options Options can be passed in to the constructor on instantiation. For example: Option Valid values Default :-------------------- :------------ :------ headingStyle setext or atx setext hr Any Thematic break bulletListMarker - , + , or codeBlockStyle indented or fenced indented fence emDelimiter or strongDelimiter or linkStyle inlined or referenced inlined linkReferenceStyle full , collapsed , or shortcut full preformattedCode false or true false Advanced Options Option Valid values Default :-------------------- :------------ :------ blankReplacement rule replacement function See Special Rules below keepReplacement rule replacement function See Special Rules below defaultReplacement rule replacement function See Special Rules below Methods addRule(key, rule) The key parameter is a unique name for the rule for easy refere","default_branch":null,"files":null,"tree":[],"storefront":"/r/mixmark-io","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mixmark-io/turndown/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."}