Commit 30b74105 authored by Chris Rebert's avatar Chris Rebert

remarkable -> markdown-it

parent 136058b5
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
*/ */
'use strict'; 'use strict';
var Remarkable = require('remarkable'); var Markdown = require('markdown-it');
function markdown2html(markdownString) { function markdown2html(markdownString) {
var md = new Remarkable(); var md = new Markdown();
// the slice removes the <p>...</p> wrapper output by Markdown processor // the slice removes the <p>...</p> wrapper output by Markdown processor
return md.render(markdownString.trim()).slice(3, -5); return md.render(markdownString.trim()).slice(3, -5);
......
...@@ -57,8 +57,8 @@ ...@@ -57,8 +57,8 @@
"grunt-saucelabs": "~8.5.0", "grunt-saucelabs": "~8.5.0",
"grunt-sed": "~0.1.1", "grunt-sed": "~0.1.1",
"load-grunt-tasks": "~2.0.0", "load-grunt-tasks": "~2.0.0",
"markdown-it": "^3.0.4",
"npm-shrinkwrap": "^200.0.0", "npm-shrinkwrap": "^200.0.0",
"remarkable": "~1.6.0",
"time-grunt": "~1.0.0" "time-grunt": "~1.0.0"
}, },
"engines": { "engines": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment