var marked = require('marked') var fs = require('fs') const inFile = "README.md" const outFile = "dist/index.html" function parse(inFile, outFile) { const inputContent = fs.readFileSync(inFile, 'utf8') const content = ` moineau.css
${marked.parse(inputContent)}

` fs.writeFileSync(outFile, content) } parse("README.md", "dist/index.html") parse("exemples/exemples.md", "dist/exemples.html")