md-footer
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Md Footer

CI License: MIT

Generate markdown footer links. This library is rewritten from md-footer by typescript.

Install

$ npm i md-footer

Usage

import * as fs from 'fs';
import { generateLinks } from 'md-footer';

const md = fs.readFileSync('input.md').toString();

console.log(generateLinks(md));

Input

[Link1](http://www.example.com/link1)
[Link2](http://www.example.com/link2)
[Link1-2](http://www.example.com/link1)

Output

[Link1][1]
[Link2][2]
[Link1-2][1]


[1]:http://www.example.com/link1
[2]:http://www.example.com/link2

Related

Readme

Keywords

Package Sidebar

Install

npm i md-footer

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

3.61 kB

Total Files

3

Last publish

Collaborators

  • k_kuroguro