Code formatting with 2 space indent

This commit is contained in:
Clément GOUIN
2019-06-20 14:24:34 +02:00
parent 3df43b4872
commit 92021164c9
11 changed files with 676 additions and 674 deletions
+11 -11
View File
@@ -2,15 +2,15 @@ const fs = require('fs');
const showdown = require('showdown');
module.exports = (config) => {
const converter = new showdown.Converter(config['showdown']);
return {
render : (file, cb) => {
fs.readFile(file, {encoding:'UTF-8'}, (err, data) => {
if(err)
return cb(err);
const html = converter.makeHtml(data);
cb(null,html);
});
}
};
const converter = new showdown.Converter(config['showdown']);
return {
render: (file, cb) => {
fs.readFile(file, {encoding: 'UTF-8'}, (err, data) => {
if (err)
return cb(err);
const html = converter.makeHtml(data);
cb(null, html);
});
}
};
};