remark-hugo-shortcodes
v0.2.13
Published
Remark parser for Hugo shortcodes
Downloads
24
Readme
remark-hugo-shortcodes
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']
})