Micro util for creating a markdown-formatted anchor link. Good for linking to code for API docs.
npm i markdown-anchor --save
var mdanchor = require('markdown-anchor');
mdanchor({
text; 'embed',
user; 'assemble',
repo; 'handlebars-helpers',
file; 'lib/helpers/code.js',
line; 'v0.6.0',
branch; 25
});
//=> [embed](https://github.com/assemble/handlebars-helpers/blob/25/lib/helpers/code.js#Lv0.6.0)
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 21, 2015.