I have a README.md (markdown syntax) that I want to print out to the console using node.js.
Is this possible?
First install markdown-js (https://github.com/evilstreak/markdown-js)
$ npm install markdown-js
Then make a javascript:
var markdown = require("markdown-js");
var fs = require("fs");
var str = fs.readFileSync("filename.md", "utf8");
var result = markdown.makeHtml(str);
console.log(result);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With