1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-10-04 01:01:56 +02:00

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);