Commit d9f437f4 authored by Chris Rebert's avatar Chris Rebert

Merge pull request #15619 from twbs/markdown

Change markdown library
parents 136058b5 92b267f3
......@@ -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);
......
......@@ -3295,6 +3295,30 @@
}
}
},
"markdown-it": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-3.0.4.tgz",
"dependencies": {
"argparse": {
"version": "0.1.16",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-0.1.16.tgz",
"dependencies": {
"underscore": {
"version": "1.7.0",
"resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz"
},
"underscore.string": {
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.4.0.tgz"
}
}
},
"autolinker": {
"version": "0.15.2",
"resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.15.2.tgz"
}
}
},
"npm-shrinkwrap": {
"version": "200.0.0",
"resolved": "https://registry.npmjs.org/npm-shrinkwrap/-/npm-shrinkwrap-200.0.0.tgz",
......@@ -4023,30 +4047,6 @@
}
}
},
"remarkable": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/remarkable/-/remarkable-1.6.0.tgz",
"dependencies": {
"argparse": {
"version": "0.1.16",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-0.1.16.tgz",
"dependencies": {
"underscore": {
"version": "1.7.0",
"resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz"
},
"underscore.string": {
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.4.0.tgz"
}
}
},
"autolinker": {
"version": "0.15.2",
"resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.15.2.tgz"
}
}
},
"time-grunt": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/time-grunt/-/time-grunt-1.0.0.tgz",
......
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