remarkable -> markdown-it

This commit is contained in:
Chris Rebert 2015-01-20 13:04:35 -08:00
parent 136058b562
commit 30b74105dd
2 changed files with 3 additions and 3 deletions

View File

@ -6,10 +6,10 @@
*/
'use strict';
var Remarkable = require('remarkable');
var Markdown = require('markdown-it');
function markdown2html(markdownString) {
var md = new Remarkable();
var md = new Markdown();
// the slice removes the <p>...</p> wrapper output by Markdown processor
return md.render(markdownString.trim()).slice(3, -5);

View File

@ -57,8 +57,8 @@
"grunt-saucelabs": "~8.5.0",
"grunt-sed": "~0.1.1",
"load-grunt-tasks": "~2.0.0",
"markdown-it": "^3.0.4",
"npm-shrinkwrap": "^200.0.0",
"remarkable": "~1.6.0",
"time-grunt": "~1.0.0"
},
"engines": {