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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user