UNPKG

catlogjs

Version:

Static site generator, translate human readable text format(such as markdown) into html, with a lot of other functions

19 lines (15 loc) 330 B
marked = require 'marked' parser = {} marked.setOptions { gfm: true tables: true breaks: false pedantic: false sanitize: false smartLists: true langPrefix: '' } parser.parse = (content, callback) -> content = marked.parser marked.lexer content callback and callback {content: content} module.exports = parser