diff options
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -3,6 +3,7 @@ const fs = require('fs'); const dirTree = require('directory-tree'); const express = require('express'); +const report = require('vfile-reporter'); const hmd = require('./tohtml'); @@ -13,13 +14,9 @@ process.on('uncaughtException', err => { console.error(`[${new Date()}] > Error - ${err}`); }); -const report = require('vfile-reporter'); - const useLandScript = ''; const rawButton = '<button class="raw_button" ><div><div>Raw</div></div></button></form>'; - - app.use(express.static('public')); app.get(`/${path}/*`, (req, res) => { @@ -50,18 +47,6 @@ app.get(`/${path}/*`, (req, res) => { return console.log(err); } - // Remark() - /* Debbug comment - const a = unified() - .use(remark) - .use(lineInput) - .use(textInput) - .use(html, {allowDangerousHTML: true}) - .use(raw) - .parse(data) - console.log(inspect(a)); - */ - hmd(data, (err, file) => { res.send(`${String(file) + useLandScript }<a href="${url}?raw=true" class="no-style">${rawButton}</a>`); |