0.0.2 • Published 10 years ago

mdlinkparser v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

mdlinkparser

Build Status npm-version Dependency Status devDependency Status

##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']