mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-23 09:41:11 +00:00
commit
d9f437f4ec
@ -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 @@
|
|||||||
"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": {
|
||||||
|
48
test-infra/npm-shrinkwrap.json
generated
48
test-infra/npm-shrinkwrap.json
generated
@ -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": {
|
"npm-shrinkwrap": {
|
||||||
"version": "200.0.0",
|
"version": "200.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/npm-shrinkwrap/-/npm-shrinkwrap-200.0.0.tgz",
|
"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": {
|
"time-grunt": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/time-grunt/-/time-grunt-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/time-grunt/-/time-grunt-1.0.0.tgz",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user