1.0.4 • Published 3 years ago

md-footer v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago