mdvariables

0.1.2 • Public • Published

mdvariables

Allows the addition of variables in your markdown

npm install --save mdvariables

Usage:

    var MdVariables = require('mdvariables');
 
    md.use(MdVariables(function() {
        return {title: $('title').val()};
    });
    //In your mark up add "@title" to replicate what is in your title input.

I personally use this so I only have to write the title of my blog once in the title, and reuse that value in the header markdown

Package Sidebar

Install

npm i mdvariables

Weekly Downloads

5

Version

0.1.2

License

GNUP

Last publish

Collaborators

  • funkjunky