Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including markdown-link with all npm packages installed. Try it out:

var markdownLink = require("markdown-link")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

markdown-link v0.1.1

Micro util for generating a single markdown link.

markdown-link NPM version

Micro util for generating a single markdown link.

Install with npm

npm i markdown-link --save


var mdlink = require('markdown-link');



Create a markdown-formatted link from the given values.

  • anchor {String}
  • href {String}
  • title {String}
mdlink('micromatch', '', 'hover title');
//=> [micromatch]( "hover title")

Related projects

  • remarkable: Markdown parser, done right. 100% Commonmark support, extensions, syntax plugins, high speed - all in one.
  • markdown-toc: Generate a markdown TOC (table of contents) with Remarkable.
  • markdown-utils: Micro-utils for creating markdown snippets.
  • to-gfm-code-block: Generate a github-flavored-markdown fenced code block snippet.

Running tests

Install dev dependencies.

npm i -d && npm test


Pull requests and stars are always welcome. For bugs and feature requests, please create an issue


Jon Schlinkert


Copyright (c) 2015 Jon Schlinkert
Released under the MIT license

This file was generated by verb-cli on March 20, 2015.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free