rust-markdown

    0.1.0 • Public • Published

    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");
    });

    Keywords

    none

    Install

    npm i rust-markdown

    DownloadsWeekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • adrian.arroyocalle