cqmd: A markdown preprocessor for cq code blocks
cqmd is a markdown preprocessor that parses cq query blocks and replaces them with "regular" markdown code blocks.
Install
$ npm install --global @fullstackio/cqmd
Usage
$ cq --path <path/to/code/basepath> <input-markdown-file>
# or
$ cat file | cqmd --path <path>
Library Usage
var cqmd = require('@fullstackio/cqmd').default;
let results = cqmd(input, {path: __dirname});
console.log(results);
If you'd like to create a custom formatting function, use the format
key in the options.
Future
Contributing
Please feel free to submit pull requests!
Authors
Originally written by Nate Murray.
Fullstack React Book
This repo was written and is maintained by the Fullstack React team. If you're looking to learn React, there's no faster way than by spending a few hours with the Fullstack React book.
License
MIT