summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
inline | side by side (from parent 1:
eccb3cc)
It has better support for code blocks
'use strict';
const Fs = require('fs');
'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 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 Util = require('util');
const internals = {
const postContent = await internals.fs.readFile(postContentPath, { encoding: 'utf8' });
internals.debuglog('Parsing markdown');
const postContent = await internals.fs.readFile(postContentPath, { encoding: 'utf8' });
internals.debuglog('Parsing markdown');
+ const parser = new Showdown.Converter();
- html: Markdown.markdown.toHTML(postContent),
+ html: parser.makeHtml(postContent),
"homepage": "https://github.com/rbdr/blog#readme",
"dependencies": {
"getenv": "0.7.x",
"homepage": "https://github.com/rbdr/blog#readme",
"dependencies": {
"getenv": "0.7.x",
"minimist": "1.2.x",
"mustache": "2.3.x",
"ncp": "2.0.x",
"minimist": "1.2.x",
"mustache": "2.3.x",
"ncp": "2.0.x",
+ "rimraf": "2.6.x",
+ "showdown": "1.7.x"
},
"devDependencies": {
"docdash": "0.4.x",
},
"devDependencies": {
"docdash": "0.4.x",