Metalsmith wrapper for shortcode-parser
npm install metalsmith-shortcode-parserMetalsmith wrapper for shortcode-parser
Since the other shortcodes for metalsmith no longer work or are for jade/pug
templating only, I've had to create this.
```
npm install metalsmith-shortcode-parser
`javascript
const shortcodes = require('metalsmith-shortcode-parser');
Metalsmith(__dirname)
.use(shortcodes({
files: ['.html', '.md'],
shortcodes: {
bold: function (buf, opts) {
if (opts.upper) buf = buf.toUpperCase();
return '' + buf + '';
},
},
}))
``