A Metalsmith plugin to convert org-mode files.
npm install metalsmith-org
Install via npm and then add the metalsmith-org
key to your metalsmith.json
plugins with any org-js options you want, like so:
{
"plugins": {
"metalsmith-org": {
"headerOffset": 1
}
}
}
Pass options
to the org plugin and pass it to Metalsmith with the use
method. metalsmith-org
does not have any options of its own, everything here will be passed on to org-js:
var org = require('metalsmith-org');
metalsmith.use(org({
headerOffset: 1
}));
MIT