markdown-magic-template

1.0.1 • Public • Published

Template plugin

Add Lodash template support to markdown files via markdown-magic

Install

npm i markdown-magic markdown-magic-template --save-dev

Adding the plugin

See example.js for usage.

const path = require('path');
const markdownMagic = require('markdown-magic');

const config = {
  transforms: {
    TEMPLATE: require('./index.js')({ name: 'world' }),
  }
}

const markdownPath = path.join(__dirname, 'README.md');
markdownMagic(markdownPath, config);

Usage in markdown

hello world!

Options

  • src (required) - path to template, relative to the Markdown file

Package Sidebar

Install

npm i markdown-magic-template

Weekly Downloads

182

Version

1.0.1

License

MIT

Unpacked Size

2.58 kB

Total Files

5

Last publish

Collaborators

  • camacho