Skip to content

Commit

Permalink
Updates node. Rollbacks winston. Switches to markdown-it
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Oct 19, 2017
1 parent c1dc3cf commit 39756ee
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9,012 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,5 @@ typings/
# dotenv environment variables file
.env

# Lock files
package-lock.json
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const readFileSync = require('fs').readFileSync
const marked = require('marked')
const md = require('markdown-it')()
const { parse } = require('url')
const { json, send } = require('micro')
const match = require('micro-match')
Expand Down Expand Up @@ -41,7 +41,7 @@ module.exports = async (request, response) => {
}
} else {
const readme = readFileSync('./README.md', 'utf-8')
result = await marked(readme)
result = md.render(readme)
}
let status = result.error ? 500 : 200
response.setHeader('Access-Control-Allow-Origin', '*')
Expand Down
Loading

0 comments on commit 39756ee

Please sign in to comment.