aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/blog.js5
-rw-r--r--package.json4
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/blog.js b/lib/blog.js
index 3b91943..f31234b 100644
--- a/lib/blog.js
+++ b/lib/blog.js
@@ -1,11 +1,11 @@
'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 = {
@@ -126,8 +126,9 @@ module.exports = class Blog {
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
});
}
diff --git a/package.json b/package.json
index e5303b1..4b18dbc 100644
--- a/package.json
+++ b/package.json
@@ -23,11 +23,11 @@
"homepage": "https://github.com/rbdr/blog#readme",
"dependencies": {
"getenv": "0.7.x",
- "markdown": "0.5.x",
"minimist": "1.2.x",
"mustache": "2.3.x",
"ncp": "2.0.x",
- "rimraf": "2.6.x"
+ "rimraf": "2.6.x",
+ "showdown": "1.7.x"
},
"devDependencies": {
"docdash": "0.4.x",