node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

mdlinkparser

Node Markdown Parser

mdlinkparser

Try it live http://alicoding.github.io/mdlinkparser/

This parser will work in node, browser and requirejs

var parser = require("mdlinkparser").mdlinkparser;
 
var strings = parser("[some link](http://link.org)");
 
expected return
 
['http://link.org']
<script src="path/to/lib/index.js"></script>
 
<script>console.log(window.mdlinkparser("[some link](http://link.org)"))</script> 
 
expected return
['http://link.org']
requirejs.config({
  paths: {
    mdlinkparser: "path/to/lib/index"
  }
});
 
require(["mdlinkparser"], function() {
  console.log(mdlinkparser("[some link](http://link.org)")
});
 
expected return
['http://link.org']