Want to see pretty graphs? Log in now!
npm install to-markdown
|13||downloads in the last day|
|45||downloads in the last week|
|175||downloads in the last month|
|Last Published By|
|Version||0.0.1 last updated 2 years ago|
|Dependents (10)||blogger2ghost, generator-poet, grunt-html2md, grunt-wp2md, hexo-migrator-cnblogs, hexo-migrator-rss, hexo-migrator-wordpress, nodebb-plugin-rss, nodestack-express, wp2ghost|
A basic implementation is there, but it's not yet fully bulletproof (contributions welcome!).
There are a couple of known issues surrounding blockquotes in lists (and perhaps vice versa) — #2; and also how to handle HTML elements outside of the markdown subset (keep them/strip them?) — #3.
Running under Node.js
to-markdown can also be run under Node.js. Install it via NPM, and then:
var toMarkdown = require('to-markdown').toMarkdown; console.log(toMarkdown('<b>Hello world</b>')); // Will output '**Hello world**'
Node.js unit tests can be run with NodeUnit:
$ npm test
This will test both server-side and client-side tests (using zombie-qunit).
to-markdown is copyright © 2011 Dom Christie and released under the MIT license.