diff options
author | BuildTools <unconfigured@null.spigotmc.org> | 2017-09-27 11:24:50 +0200 |
---|---|---|
committer | BuildTools <unconfigured@null.spigotmc.org> | 2017-09-27 11:24:50 +0200 |
commit | 9d6f5673bd3c46d22c10edb36483708a3f3c7a1c (patch) | |
tree | 4b07ed3964ea0bb4640c43ac599d9ecd1565d26f | |
parent | Merge branch 'master' of github.com:Titely/markdown-viewer (diff) |
index
-rw-r--r-- | app.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -15,7 +15,7 @@ app.get('/' + path + '/*', function(req, res) { fs.readFile(req.url.substr(1), 'utf8', function(err, data) { if (err) return console.log(err); - fs.readFile('public/css/style.css', 'utf8', function(err, style) { + /*fs.readFile('public/css/style.css', 'utf8', function(err, style) { var html = '<html>'; html += '<head>'; html += '<style>' + style + '</style>'; @@ -25,7 +25,8 @@ app.get('/' + path + '/*', function(req, res) { html += '</body>'; html += '</html>'; res.send(html); - }); + });*/ + res.send(converter.makeHtml(data)); }); }); |