0.2.13 • Published 4 years ago

remark-hugo-lint v0.2.13

Weekly downloads
10
License
GPL-3.0
Repository
github
Last release
4 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

4 years ago

0.2.12

4 years ago

0.2.11

5 years ago

0.2.10

5 years ago

0.2.6

5 years ago

0.2.8

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago