{"_id":"grunt-markdown","_rev":"31-2596fbc5f9b4e989271ec5366dd76ca1","name":"grunt-markdown","description":"Compile markdown to html. GFM and code highlighting support!","dist-tags":{"latest":"0.7.0"},"versions":{"0.1.0":{"name":"grunt-markdown","description":"Compile markdown to html","version":"0.1.0","homepage":"https://github.com/treasonx/grunt-markdown","author":{"name":"James Morrin","email":"treasonx@gmail.com"},"repository":{"type":"git","url":"git://github.com/treasonx/grunt-markdown"},"bugs":{"url":"https://github.com/treasonx/grunt-markdown/issues"},"licenses":[{"type":"MIT","url":"https://github.com/treasonx/grunt-markdown/blob/master/LICENSE-MIT"}],"main":"grunt.js","bin":{"grunt-markdown":"bin/grunt-markdown"},"engines":{"node":"*"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.16"},"keywords":["gruntplugin"],"dependencies":{"highlight.js":"~7.3.0","marked":"~0.2.5","grunt-contrib-lib":"~0.3.0","lodash":"~0.9.1"},"_id":"grunt-markdown@0.1.0","dist":{"shasum":"7bf93fde9aed36f331381b4401a775e41b14c88f","tarball":"https://registry.npmjs.org/grunt-markdown/-/grunt-markdown-0.1.0.tgz","integrity":"sha512-2ZsACQnMIX9eKBxuWFnOcRdSc4vSYpwdXM2MWvY8kL4lfOEzK5EmJo6BD+KsvVEEn3jj9Tjp2jRoK9YelfvAhg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGGV6eLrO8UYOUVV1nNrL7+nMC4nMUb/ueSjCJd1vIESAiAwDJwEnW5soWFhdpuczTpVaOSFfVpBJpSzgLylpCGFzw=="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}]},"0.1.1":{"name":"grunt-markdown","description":"Compile markdown to html. GFM and code highlighting support!","version":"0.1.1","homepage":"https://github.com/treasonx/grunt-markdown","author":{"name":"James Morrin","email":"treasonx@gmail.com"},"repository":{"type":"git","url":"git://github.com/treasonx/grunt-markdown"},"bugs":{"url":"https://github.com/treasonx/grunt-markdown/issues"},"licenses":[{"type":"MIT","url":"https://github.com/treasonx/grunt-markdown/blob/master/LICENSE-MIT"}],"main":"grunt.js","bin":{"grunt-markdown":"bin/grunt-markdown"},"engines":{"node":"*"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.16"},"keywords":["gruntplugin"],"dependencies":{"highlight.js":"~7.3.0","marked":"~0.2.5","grunt-contrib-lib":"~0.3.0","lodash":"~0.9.1"},"_id":"grunt-markdown@0.1.1","dist":{"shasum":"3d4ccc0c0de5b5334527ec8a544df2585425a7e4","tarball":"https://registry.npmjs.org/grunt-markdown/-/grunt-markdown-0.1.1.tgz","integrity":"sha512-CFb2ne7+Jc9IyZ450crmCRBJii7oZxijR90eFfg9b1XxIQnwSqXAqMTzLfBk2wFw6HevpaKE4UyH7oJSi9BJAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4FIolUrijdntUaS4SBvmtb7DB8hTNTgMNyptIV2ZLFQIhAPJouwsAWe8mCm/C6V7pu+nSrNGksDK5snHgx/nrmEKE"}]},"_npmVersion":"1.1.61","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}]},"0.1.2":{"name":"grunt-markdown","description":"Compile markdown to html. GFM and code highlighting support!","version":"0.1.2","homepage":"https://github.com/treasonx/grunt-markdown","author":{"name":"James Morrin","email":"treasonx@gmail.com"},"repository":{"type":"git","url":"git://github.com/treasonx/grunt-markdown"},"bugs":{"url":"https://github.com/treasonx/grunt-markdown/issues"},"licenses":[{"type":"MIT","url":"https://github.com/treasonx/grunt-markdown/blob/master/LICENSE-MIT"}],"main":"grunt.js","bin":{"grunt-markdown":"bin/grunt-markdown"},"engines":{"node":"*"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.16"},"keywords":["gruntplugin"],"dependencies":{"highlight.js":"~7.3.0","marked":"~0.2.5","grunt-contrib-lib":"~0.3.0","lodash":"~0.9.1"},"_id":"grunt-markdown@0.1.2","dist":{"shasum":"e3c88400e4c67ecc0b66064bbd0a6fdbbd402a97","tarball":"https://registry.npmjs.org/grunt-markdown/-/grunt-markdown-0.1.2.tgz","integrity":"sha512-ucikunsfPBjvoOlgC5EBENQk2aI+YjwKaOOP+0Az7ZtlAgiSftznH1HY8LtqTKiTdQzVo/Sp9/+GFeq5gYeD0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTZBjvgNyNZN8NO7J3T1Vs0AT2jtCSG+vjhSJbmNpfQAIgEIYNqluw51I4Fd0TfiJguehVmaGlKKJN2EFiSPUcefQ="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}]},"0.2.0":{"name":"grunt-markdown","description":"Compile markdown to html. GFM and code highlighting support!","version":"0.2.0","homepage":"https://github.com/treasonx/grunt-markdown","author":{"name":"James Morrin","email":"treasonx@gmail.com"},"repository":{"type":"git","url":"git://github.com/treasonx/grunt-markdown"},"bugs":{"url":"https://github.com/treasonx/grunt-markdown/issues"},"licenses":[{"type":"MIT","url":"https://github.com/treasonx/grunt-markdown/blob/master/LICENSE-MIT"}],"main":"grunt.js","engines":{"node":"*"},"scripts":{"test":"grunt nodeunit"},"devDependencies":{"grunt":"~0.4.0","grunt-contrib-jshint":"~0.3.0","grunt-contrib-nodeunit":"~0.1.2","grunt-contrib-watch":"~0.3.1"},"keywords":["gruntplugin"],"dependencies":{"highlight.js":"~7.3.0","marked":"~0.2.5","grunt-contrib-lib":"~0.3.0","lodash":"~0.9.1"},"_id":"grunt-markdown@0.2.0","dist":{"shasum":"76791421d6b664bad952b9f6e5b88910b9913eab","tarball":"https://registry.npmjs.org/grunt-markdown/-/grunt-markdown-0.2.0.tgz","integrity":"sha512-ngf7u5OOxY2mryALkNzKLQK5Dbno+rFImHDFxSxNcsNs+UI8vBHJgu4ZFkXCUbJ4QP9usY2Odh0Bz2gq4RkGFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxp05i1s3nHdKGMTqI4PkafIC2SKsdTHHOn3Xy16s7gAIgVCpCyGsrED3xVYIOckrssiOu/QtrzfoXQuMGjSo9Qa4="}]},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}]},"0.3.0":{"name":"grunt-markdown","description":"Compile markdown to html. GFM and code highlighting support!","version":"0.3.0","homepage":"https://github.com/treasonx/grunt-markdown","author":{"name":"James Morrin","email":"treasonx@gmail.com"},"contributors":[{"name":"Thomas Welton","email":"thomaswelton@me.com"},{"name":"Matt Dawson","email":"matthewtdawson@gmail.com"}],"repository":{"type":"git","url":"git://github.com/treasonx/grunt-markdown"},"bugs":{"url":"https://github.com/treasonx/grunt-markdown/issues"},"licenses":[{"type":"MIT","url":"https://github.com/treasonx/grunt-markdown/blob/master/LICENSE-MIT"}],"main":"grunt.js","engines":{"node":"*"},"scripts":{"test":"grunt nodeunit"},"devDependencies":{"grunt":"~0.4.0","grunt-contrib-jshint":"~0.3.0","grunt-contrib-nodeunit":"~0.1.2","grunt-contrib-watch":"~0.3.1"},"keywords":["gruntplugin"],"dependencies":{"highlight.js":"~7.3.0","marked":"~0.2.5","grunt-lib-contrib":"~0.3.0","lodash":"~0.9.1"},"_id":"grunt-markdown@0.3.0","dist":{"shasum":"38aa71bbb042e9c827e357cbbfa5d1af5eb49acf","tarball":"https://registry.npmjs.org/grunt-markdown/-/grunt-markdown-0.3.0.tgz","integrity":"sha512-jgbO986MOqJ+65Npp2CCC7HIYGImj6HOHC5QsM+jaYbfwMeR1mFE8sa40cyeus0PdlqM5pTrLc7Ca2za9LvYJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFRdUqVZ2noB7qtsOVOWRbHUZHiTxFyMBc3R2DiarRniAiEArZ5d6yR4I6oJACJRldD085CQjK3W5AiOHiKAi+M/zBU="}]},"_from":".","_npmVersion":"1.2.25","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}]},"0.4.0":{"name":"grunt-markdown","description":"Compile markdown to html. GFM and code highlighting support!","version":"0.4.0","homepage":"https://github.com/treasonx/grunt-markdown","author":{"name":"James Morrin","email":"treasonx@gmail.com"},"contributors":[{"name":"Thomas Welton","email":"thomaswelton@me.com"},{"name":"Matt Dawson","email":"matthewtdawson@gmail.com"}],"repository":{"type":"git","url":"git://github.com/treasonx/grunt-markdown"},"bugs":{"url":"https://github.com/treasonx/grunt-markdown/issues"},"licenses":[{"type":"MIT","url":"https://github.com/treasonx/grunt-markdown/blob/master/LICENSE-MIT"}],"main":"grunt.js","engines":{"node":"*"},"scripts":{"test":"grunt nodeunit"},"devDependencies":{"grunt":"~0.4.0","grunt-contrib-jshint":"~0.3.0","grunt-contrib-nodeunit":"~0.1.2","grunt-contrib-watch":"~0.3.1","mocha":"~1.11.0","cheerio":"~0.12.0"},"keywords":["gruntplugin"],"dependencies":{"highlight.js":"~7.3.0","marked":"~0.2.5","grunt-lib-contrib":"~0.3.0","lodash":"~0.9.1"},"_id":"grunt-markdown@0.4.0","dist":{"shasum":"b333ca0c5637b0625a244b96eab8791350059602","tarball":"https://registry.npmjs.org/grunt-markdown/-/grunt-markdown-0.4.0.tgz","integrity":"sha512-g5BUc0xsSPbegGzRRSj311gtFPX5Nisfby8JiE/s5oBLnoSZvyzn75xlR7Hq9K+l1OwqiEbPHF1jXN4GIYRqoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF/gNJpUHVGkItVjfD8V7BPyPd4pwemWTy7w8CaB875vAiAKqjVyqvWHbQBgcwOqAvJg6JeK81D+5EOhbFgM9Bo4jA=="}]},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}]},"0.5.0":{"name":"grunt-markdown","description":"Compile markdown to html. GFM and code highlighting support!","version":"0.5.0","homepage":"https://github.com/treasonx/grunt-markdown","author":{"name":"James Morrin","email":"treasonx@gmail.com"},"contributors":[{"name":"Thomas Welton","email":"thomaswelton@me.com"},{"name":"Matt Dawson","email":"matthewtdawson@gmail.com"}],"repository":{"type":"git","url":"git://github.com/treasonx/grunt-markdown"},"bugs":{"url":"https://github.com/treasonx/grunt-markdown/issues"},"licenses":[{"type":"MIT","url":"https://github.com/treasonx/grunt-markdown/blob/master/LICENSE-MIT"}],"main":"grunt.js","engines":{"node":"*"},"scripts":{"test":"grunt nodeunit"},"devDependencies":{"grunt":"~0.4.0","grunt-contrib-jshint":"~0.3.0","grunt-contrib-nodeunit":"~0.1.2","grunt-contrib-watch":"~0.3.1","mocha":"~1.11.0","cheerio":"~0.12.0"},"keywords":["gruntplugin"],"dependencies":{"highlight.js":"~7.3.0","marked":"~0.2.5","grunt-lib-contrib":"~0.3.0","lodash":"~0.9.1"},"_id":"grunt-markdown@0.5.0","dist":{"shasum":"748b170b522357da2fbf750f86dd93b861dffde3","tarball":"https://registry.npmjs.org/grunt-markdown/-/grunt-markdown-0.5.0.tgz","integrity":"sha512-Zm2EmOuh9ztzLpemrvwGFTNrkoq6REC4yY9CCSQ3BOFefUuCRvjARNIbvlRSdYK+Y746A8kCYrqAbDLv5Cl9Nw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBB3zPt6Mra1XSngcHqfjcy0VN6mHnV9Q7hPXJPwgLNxAiEAqbwCCJga9gzxNeqPcP+hzCJxRo+S5X5V8F+3O54x8iM="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}]},"0.6.0":{"name":"grunt-markdown","description":"Compile markdown to html. GFM and code highlighting support!","version":"0.6.0","homepage":"https://github.com/treasonx/grunt-markdown","author":{"name":"James Morrin","email":"treasonx@gmail.com"},"contributors":[{"name":"Thomas Welton","email":"thomaswelton@me.com"},{"name":"Matt Dawson","email":"matthewtdawson@gmail.com"}],"repository":{"type":"git","url":"git://github.com/treasonx/grunt-markdown"},"bugs":{"url":"https://github.com/treasonx/grunt-markdown/issues"},"licenses":[{"type":"MIT","url":"https://github.com/treasonx/grunt-markdown/blob/master/LICENSE-MIT"}],"main":"grunt.js","engines":{"node":"*"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.0","grunt-contrib-jshint":"~0.3.0","grunt-contrib-nodeunit":"~0.1.2","grunt-contrib-watch":"~0.3.1","mocha":"~1.18.2","cheerio":"~0.12.0","grunt-mocha-test":"~0.10.2","chai":"~1.9.1","grunt-mocha-istanbul":"~1.4.1","grunt-contrib-connect":"~0.7.1"},"keywords":["gruntplugin"],"dependencies":{"highlight.js":"~7.3.0","marked":"~0.2.5","grunt-lib-contrib":"~0.3.0","lodash":"~0.9.1"},"_id":"grunt-markdown@0.6.0","dist":{"shasum":"3ab5e942439bdf44b72a89a52ed5903b887e71af","tarball":"https://registry.npmjs.org/grunt-markdown/-/grunt-markdown-0.6.0.tgz","integrity":"sha512-K2+1xjCNmeNLP4VwyN3BilyVoThae10jVWpHNBUW1erLuc5U8OSsI0iDs1U8OClcpd0cBJ8p9qOoyU5bwnORqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC9RbY6Weiy8tXOiRrMzOaICJ6GszJMZbHlUzsOi5OctAiEA+SoG5yTYG8Xhpt7sPjzbolOgjNnEhmqpm8Me2BK9RiM="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}]},"0.6.1":{"name":"grunt-markdown","description":"Compile markdown to html. GFM and code highlighting support!","version":"0.6.1","homepage":"https://github.com/treasonx/grunt-markdown","author":{"name":"James Morrin","email":"treasonx@gmail.com"},"contributors":[{"name":"Thomas Welton","email":"thomaswelton@me.com"},{"name":"Matt Dawson","email":"matthewtdawson@gmail.com"}],"repository":{"type":"git","url":"git://github.com/treasonx/grunt-markdown"},"bugs":{"url":"https://github.com/treasonx/grunt-markdown/issues"},"licenses":[{"type":"MIT","url":"https://github.com/treasonx/grunt-markdown/blob/master/LICENSE-MIT"}],"main":"grunt.js","engines":{"node":"*"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.0","grunt-contrib-jshint":"~0.3.0","grunt-contrib-nodeunit":"~0.1.2","grunt-contrib-watch":"~0.3.1","mocha":"~1.18.2","cheerio":"~0.12.0","grunt-mocha-test":"~0.10.2","chai":"~1.9.1","grunt-mocha-istanbul":"~1.4.1","grunt-contrib-connect":"~0.7.1"},"keywords":["gruntplugin"],"dependencies":{"highlight.js":"~7.3.0","marked":"~0.2.5","grunt-lib-contrib":"~0.3.0","lodash":"~0.9.1"},"_id":"grunt-markdown@0.6.1","dist":{"shasum":"0773351d8c98df64c4433d5f09cb6578643acb17","tarball":"https://registry.npmjs.org/grunt-markdown/-/grunt-markdown-0.6.1.tgz","integrity":"sha512-PrCkXRm5vTH5/V8dwZ5U5CFJJUjXtamwaD5nDGpIyl/h/cj3zEEJsNUS7u8+Lg09wavqd1SVw6M5tt5h9rELVQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDS4pTnLuD3tDAGfLNYocaLXY+yuH1Q/kHEYoGRfYKw3AIhAIDZVSrk1cTZ46HOF3hrDClKW4cNrE6+eWrvci2iJ5I0"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}]},"0.7.0":{"name":"grunt-markdown","description":"Compile markdown to html. GFM and code highlighting support!","version":"0.7.0","homepage":"https://github.com/treasonx/grunt-markdown","author":{"name":"James Morrin","email":"treasonx@gmail.com"},"contributors":[{"name":"Thomas Welton","email":"thomaswelton@me.com"},{"name":"Matt Dawson","email":"matthewtdawson@gmail.com"}],"repository":{"type":"git","url":"git://github.com/treasonx/grunt-markdown"},"bugs":{"url":"https://github.com/treasonx/grunt-markdown/issues"},"licenses":[{"type":"MIT","url":"https://github.com/treasonx/grunt-markdown/blob/master/LICENSE-MIT"}],"main":"grunt.js","engines":{"node":"*"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.0","grunt-contrib-jshint":"~0.3.0","grunt-contrib-nodeunit":"~0.1.2","grunt-contrib-watch":"~0.3.1","mocha":"~1.18.2","cheerio":"~0.12.0","grunt-mocha-test":"~0.10.2","chai":"~1.9.1","grunt-mocha-istanbul":"~1.4.1","grunt-contrib-connect":"~0.7.1"},"keywords":["gruntplugin"],"dependencies":{"highlight.js":"~8.4.0","marked":"~0.3.2","lodash":"~2.4.1"},"gitHead":"ef4a8fd7a4f0335e27e1abccaf61f44b56b253d9","_id":"grunt-markdown@0.7.0","_shasum":"05a3ee361b5cc73b646e9f5cdd2068645449aa66","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}],"dist":{"shasum":"05a3ee361b5cc73b646e9f5cdd2068645449aa66","tarball":"https://registry.npmjs.org/grunt-markdown/-/grunt-markdown-0.7.0.tgz","integrity":"sha512-BVWPG5D4b5kICw6KRVBfppbRhR49tcWOcSgn0eq5WGgUAkn3cx+zM3lMdpXtSQURK8o0xcjSUdplc2ws6jZDow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1uthceKR6szv/ZtirkyptUkoX/8MCFf6pEafWsrDDmQIgGA0bkchZ5hWBXrgWHEyJMMmLMy2fZK3nLHFpjOfkt30="}]}}},"readme":"# grunt-markdown\n\n[![Build Status](https://travis-ci.org/treasonx/grunt-markdown.png?branch=master)](https://travis-ci.org/treasonx/grunt-markdown)\n\nThis grunt task takes a set of markdown files and converts them to HTML. It supports [GFM](http://github.github.com/github-flavored-markdown/) with code highlighting. The code highlighting is done using [highlight.js](http://softwaremaniacs.org/soft/highlight/en/).\n\n## Getting Started\nInstall this grunt plugin next to your project's [grunt.js gruntfile](http://gruntjs.com/getting-started) with:\n\n```bash\nnpm install grunt-markdown --save-dev\n```\n\nThen add this line to your gruntfile:\n\n```javascript\ngrunt.loadNpmTasks('grunt-markdown');\n```\n\n## Documentation\nCreating a markdown task is simple. For the basic functionality add the following config in your gruntfile:\n\n```javascript\ngrunt.initConfig({\n  markdown: {\n    all: {\n      files: [\n        {\n          expand: true,\n          src: 'docs/src/*.md',\n          dest: 'docs/html/',\n          ext: '.html'\n        }\n      ]\n    }\n  }\n});\n\n```\n\nHere is an example config using all of the options:\n\n```javascript\ngrunt.initConfig({\n  markdown: {\n    all: {\n      files: [\n        {\n          expand: true,\n          src: 'docs/src/*.md',\n          dest: 'docs/html/',\n          ext: '.html'\n        }\n      ],\n      options: {\n        template: 'myTemplate.jst',\n        preCompile: function(src, context) {},\n        postCompile: function(src, context) {},\n        templateContext: {},\n        contextBinder: false,\n        contextBinderMark: '@@@',\n        autoTemplate: true,\n        autoTemplateFormat: 'jst',\n        markdownOptions: {\n          gfm: true,\n          highlight: 'manual',\n          codeLines: {\n            before: '<span>',\n            after: '</span>'\n          }\n        }\n      }\n    }\n  }\n});\n\n```\nThese are the properties that the `markdown` task accepts:\n\n* `files`: This plugin supports use of the [files API](http://gruntjs.com/configuring-tasks#files) introduced in Grunt 0.4.0. Files may be specified using any one of the [Compact Format](http://gruntjs.com/configuring-tasks#compact-format), [Files Objects Format](http://gruntjs.com/configuring-tasks#files-object-format), or [Files Array Format](http://gruntjs.com/configuring-tasks#files-array-format) (as in the above example).\n* `options`: options to be passed to the markdown parser \n    * `template`: If you wish to specify your own html template, use the `template` option. Include the following line: `<%=content%>` where you want the compiled markdown inserted in your template\n    * `markdownOptions`: Options passed directly to the markdown parser.\n    * `preCompile`: is run before the markdown is compiled\n    * `postCompile`: is run after the markdown has been compiled\n    * `templateContext`: the default context for template expansion\n    * `contextBinder`: this option is useful when we want to bind some parameters directly from markdown files. All data is stored in `templateContext` object.\n    * `contextBinderMark`: with this option we can pass any marker between which we can grab your special parameters from markdown templates.\n    * `autoTemplate`: if this option is set to true, script will search for template automatically. Template must be placed in this same catalog where markdown files are.\n    * `autoTemplateFormat`: the template format when `autoTemplate` is `true`.\n\n### modifying content with preCompile and postCompile\n\nSometimes there is a need to modify the markdown content prior to compilation.\nThis is most commonly used to augment the template context with meta data before\nexpanding the html template. \n\n#### preCompile\n\nThis function is run prior to the compilation of md to html. It has the\nfollowing format: \n\n```javascript\n  function(src, context) {\n    //do stuff to src and context\n    //optionally return the modified src\n  }\n```\n\n#### postCompile\n\nThis function is run after the md has been converted to html. It has the\nfollowing format:\n\n```javascript\n  function(src, context) {\n    //do stuff to src and context\n    //optionally return the modified src\n  }\n```\n### templateContext\n\nThis object is used to expand your html template. Any data added to this object\nwill be available in the template using the template syntax `<%=myAttr%>`. \n\nThis can also be a function which is expected to return a context object.\n\n### markdownOptions\n\nMost markdown options are passed as-is to the [marked](https://github.com/chjj/marked) markdown parser. The only option that is processed prior to compiling the markdown is the `highlight` option. If you specify 'auto' or 'manual' the task will handle highlighting code blocks for you using highlight.js. If you pass a custom function as the highlight option it will be used to highlight the code.\n\n* `auto`: Will try to detect the language\n* `manual`: will pass the language name from markdown to the highlight function\n* `codeLines`: specify text that should wrap code lines\n\n### contextBinder\n\nBelow you can see example how to use this option.\n\n```javascript\n  markdown: {\n    all: {\n      files: [\n        {\n          expand: true,\n          src: 'docs/src/*.md',\n          dest: 'docs/html/',\n          ext: '.html'\n        }\n      ],\n      options: {\n        template: 'myTemplate.jst',\n        preCompile: function(src, context) {},\n        postCompile: function(src, context) {},\n        templateContext: {},\n        contextBinder: true,\n        contextBinderMark: '@@@',\n        markdownOptions: {\n          gfm: true,\n          highlight: 'manual',\n          codeLines: {\n            before: '<span>',\n            after: '</span>'\n          }\n        }\n      }\n    }\n  }\n```\n\nThen inside markdown file we have to put: `<!-- @@@key:value@@@ -->` and it will be equal to:\n\n```javascript\ntemplateContext: {\n  key: 'value'\n}\n```\n\n## License\nCopyright (c) 2012-2013 James Morrin\nLicensed under the MIT license.\n","maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}],"time":{"modified":"2022-06-18T15:27:40.412Z","created":"2012-11-02T22:09:29.180Z","0.1.0":"2012-11-02T22:09:30.238Z","0.1.1":"2012-11-02T23:39:42.156Z","0.1.2":"2012-11-11T22:02:55.593Z","0.2.0":"2013-03-21T12:05:18.602Z","0.3.0":"2013-06-13T21:26:47.926Z","0.4.0":"2013-08-06T10:10:12.698Z","0.5.0":"2014-01-06T21:49:25.735Z","0.6.0":"2014-05-17T10:28:51.892Z","0.6.1":"2014-05-17T10:43:27.909Z","0.7.0":"2015-01-10T11:14:35.969Z"},"author":{"name":"James Morrin","email":"treasonx@gmail.com"},"repository":{"type":"git","url":"git://github.com/treasonx/grunt-markdown"},"homepage":"https://github.com/treasonx/grunt-markdown","keywords":["gruntplugin"],"contributors":[{"name":"Thomas Welton","email":"thomaswelton@me.com"},{"name":"Matt Dawson","email":"matthewtdawson@gmail.com"}],"bugs":{"url":"https://github.com/treasonx/grunt-markdown/issues"},"readmeFilename":"README.md","users":{"rbecheras":true,"louxiaojian":true,"danstocker":true,"mjasso":true}}