quote-markdown
Safe addition of markdown quotes around a string (bold, emphasis, code)
npm install quote --save
Use
var quote = require('quote-markdown');
quote.string('foo'); // "foo"
quote.code('foo'); // `foo`
quote.code(quote.code('foo')); // `foo`
quote.em('foo'); // *foo*
quote.bold('foo'); // **foo**
Built on top of quote
Author: Gleb Bahmutov © 2014 @bahmutov glebbahmutov.com
License: MIT - do anything with the code, but don't blame me if it does not work.
Spread the word: tweet, star on github, etc.
Support: if you find any problems with this module, email / tweet / open issue on Github