rust-markdown
v0.1.0
Published
Render Markdown to HTML using native Rust
Downloads
2
Readme
rust-markdown
Render Markdown using Rust.
A Rust compiler is required.
Usage:
var md = require("rust-markdown");
var http = require('http');
var fs = require("fs");
var server = http.createServer((req, res) => {
fs.readFile("index.md","utf-8",function(err,data){
var html = md.render(data);
res.statusCode = 200;
res.setHeader('Content-Type', 'text/html');
res.end(html);
});
});
server.listen(8080, "127.0.0.1", () => {
console.log("Server running");
});