khrykin / md-pp

Simple plain text preprocessor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple plain text preprocessor

Usage

  • Instal package via $ npm install -g md-pp.
  • Create variables.js next to your markdown file:
  module.exports = {
    height: "300 ft"
  }
  • Reference variable in markdown:
# Hello
The building is ${height} high
  • Run once, or continuously watch for changes:

$ md-pp test.md --watch

  • Check the newly created out folder with processed markdown:

    # Hello
    The building is 300 ft high
    

About

Simple plain text preprocessor


Languages

Language:JavaScript 100.0%