'use strict';
const Fs = require('fs');
-const Markdown = require('markdown');
const Mustache = require('mustache');
const Ncp = require('ncp');
const Path = require('path');
const Rimraf = require('rimraf');
+const Showdown = require('showdown');
const Util = require('util');
const internals = {
const postContent = await internals.fs.readFile(postContentPath, { encoding: 'utf8' });
internals.debuglog('Parsing markdown');
+ const parser = new Showdown.Converter();
posts.push({
- html: Markdown.markdown.toHTML(postContent),
+ html: parser.makeHtml(postContent),
id: i + 1
});
}