webriq-roots-markdown-to-json

compile all markdown to json


Keywords
markdown, to, json
License
ISC
Install
npm install webriq-roots-markdown-to-json@1.0.17

Documentation

Webriq Roots Markdown to JSON

Note: This markdown to JSON was meant for static searchbar Tipuesearch

Installation

  • make sure you're in your roots project directory
  • npm install webriq-roots-markdown-to-json --save
  • modify your app.coffee file to include the extension
roots_markdown_to_json = require 'webriq-roots-markdown-to-json'

module.exports =
  extensions: [roots_markdown_to_json(options)]

Example

roots_markdown_to_json(
  jsonoutput: "data/search_content.json",
  folder:['posts/**.md', 'page/**.md']
)

Options

  • jsonoutput - output destination folder
  • folder - the directory location with .md files you would like to include, see example