Package Exports
- remark-reference-links
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (remark-reference-links) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
remark-reference-links

remark plug-in to transform links and images into references and definitions
Installation
npm:
npm install remark-reference-links
remark-reference-links is also available as an AMD, CommonJS, and globals module, uncompressed and compressed.
Usage
Dependencies:
var remark = require('remark');
var referenceLinks = require('remark-reference-links');
Process:
var doc = remark().use(referenceLinks).process([
'[foo](http://example.com "Example Domain"), [foo](http://example.com "Example Domain"), [bar](http://example.com "Example Domain").',
'',
', , .',
''
].join('\n'));
Yields:
[foo][1], [foo][1], [bar][1].
![foo][1], ![foo][1], ![bar][1].
[1]: http://example.com "Example Domain"
API
remark.use(referenceLinks)
links and images into references and definitions
Related
eush77/remark-defsplit
— Reverse, thus rewriting references and definitions into normal links and images, but with URI-based identifiers instead of numerical ones;wooorm/remark-reference-links
— Reverse, thus rewriting references and definitions into normal links and images.