remark-hugo-shortcodes
TypeScript icon, indicating that this package has built-in type declarations

0.2.13 • Public • Published

remark-hugo-shortcodes

Licence NPM

Remark parser & compiler for Hugo-style shortcodes.

Example

import remark from 'remark'
import { shortcodes } from 'remark-hugo-shortcodes'

const rm = remark()
    .use(shortcodes, {
        tokens: [["[[", "]]"]],
        inlineMode: true,
        markdownAttributes: ['title', 'alt', 'caption']
    })

See also

Readme

Keywords

none

Package Sidebar

Install

npm i remark-hugo-shortcodes

Weekly Downloads

15

Version

0.2.13

License

GPL-3.0

Unpacked Size

70.3 kB

Total Files

15

Last publish

Collaborators

  • hitko