markdown-magic-template
Lodash template support via Markdown Magic
Last updated 4 years ago by camachgk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install markdown-magic-template 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

1 Versions

  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |