Skip to content

jonschlinkert/markdown-link

Repository files navigation

markdown-link NPM version

Micro util for generating a single markdown link.

Install with npm

npm i markdown-link --save

Usage

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

mdlink('abc', 'https://github.com/xyz/abc');
//=> [abc](https://github.com/xyz/abc)

mdlink('abc', 'https://github.com/xyz/abc', 'Title text.');
//=> [abc](https://github.com/xyz/abc "Title text.")

Related projects

  • markdown-utils: Micro-utils for creating markdown snippets.
  • gfm-code-blocks: Extract gfm (GitHub Flavored Markdown) fenced code blocks from a string.
  • 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.

Running tests

Install dev dependencies.

npm i -d && npm test

Contributing

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

Author

Jon Schlinkert

License

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


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

About

Micro util for generating a single markdown link.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published