mdlinkparser

Node Markdown Parser

mdlinkparser

##Markdown link parser

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

This parser will work in node, browser and requirejs

###Node.js

var parser = require("mdlinkparser").mdlinkparser;
 
var strings = parser("[some link](http://link.org)");
 
expected return
 
['http://link.org']

###Browser

<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

requirejs.config({
  paths: {
    mdlinkparser: "path/to/lib/index"
  }
});
 
require(["mdlinkparser"], function() {
  console.log(mdlinkparser("[some link](http://link.org)")
});
 
expected return
['http://link.org']