Convert HTML into Markdown with JavaScript. to-markdown has been renamed to Turndown. See the migration guide for details. 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. Turndown also accepts DOM nodes as input (either element nodes, document nodes, or document fragment nodes). Options can be passed in to the constructor on instantiation. The key parameter is a unique name for the rule for easy reference. By default, Turndown does not keep any elements. The filter parameter works like a rule filter. To keep elements that are normally handled by rules, add a rule with the desired behaviour.

Features

  • Turndown can be extended by adding rules
  • The filter property determines whether or not an element should be replaced
  • The filter can be a function that returns a boolean depending on whether a given node should be replaced
  • The replacement function determines how an element should be converted
  • Blank rule determines how to handle blank elements
  • Keep rules determine how to handle the elements that should not be converted
  • Remove rules determine which elements to remove altogether

Project Samples

Project Activity

See All Activity >

Categories

HTML/XHTML

License

MIT License

Follow Turndown

Turndown Web Site

You Might Also Like
Claims Processing solution for healthcare practitioners. Icon
Claims Processing solution for healthcare practitioners.

Very easy to use for medical, dental and therapy offices.

Speedy Claims became the top CMS-1500 Software by providing the best customer service imaginable to our thousands of clients all over America. Medical billing isn't the kind of thing most people get excited about - it is just a tedious task you have to do. But while it will never be a fun task, it doesn't have to be as difficult or time consumimg as it is now. With Speedy Claims CMS-1500 software you can get the job done quickly and easily, allowing you to focus on the things you love about your job, like helping patients. With a simple interface, powerful features to eliminate repetitive work, and unrivaled customer support, it's simply the best HCFA 1500 software available on the market. A powerful built-in error checking helps ensure your HCFA 1500 form is complete and correctly filled out, preventing CMS-1500 claims from being denied.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Turndown!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript HTML XHTML

Registered

2021-09-28