Ninjas Practicing Multidimensionality
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    mdlinkparserpublic

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

    install

    npm i mdlinkparser

    Downloadsweekly downloads

    5

    version

    0.0.2

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar