0.2.13 • Published 3 years ago

remark-hugo-lint v0.2.13

Weekly downloads
10
License
GPL-3.0
Repository
github
Last release
3 years ago

remark-hugo-lint

Licence NPM

Remark-based linter for markdown with Hugo-style shortcodes.

Example

import { promises } from 'fs'
import { Formatter } from '.'

const formatter = new Formatter({
    tokens: [['[[', ']]']],
    inlineMode: true,
    markdownAttributes: ['title', 'alt', 'caption']
})

promises.readFile('in.md', 'utf8')
    .then(code => formatter.format(code))
    .then(clean => promises.writeFile('out.md', Buffer.from(clean)))
    .then(() => console.log('Done!'))

See also

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

4 years ago

0.2.6

4 years ago

0.2.8

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago