{"_id":"grunt-markdown","_rev":"4659420","name":"grunt-markdown","description":"Compile markdown to html. GFM and code highlighting support!","dist-tags":{"latest":"0.7.0"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}],"time":{"modified":"2026-04-10T21:48:26.000Z","created":"2012-11-02T22:09:30.238Z","0.7.0":"2015-01-10T11:14:35.969Z","0.6.1":"2014-05-17T10:43:27.909Z","0.6.0":"2014-05-17T10:28:51.892Z","0.5.0":"2014-01-06T21:49:25.735Z","0.4.0":"2013-08-06T10:10:12.698Z","0.3.0":"2013-06-13T21:26:47.926Z","0.2.0":"2013-03-21T12:05:18.602Z","0.1.2":"2012-11-11T22:02:55.593Z","0.1.1":"2012-11-02T23:39:42.156Z","0.1.0":"2012-11-02T22:09:30.238Z"},"users":{},"author":{"name":"James Morrin","email":"treasonx@gmail.com"},"repository":{"type":"git","url":"git://github.com/treasonx/grunt-markdown"},"versions":{"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","size":21624,"noattachment":false,"key":"/grunt-markdown/-/grunt-markdown-0.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/grunt-markdown/download/grunt-markdown-0.7.0.tgz"},"directories":{},"publish_time":1420888475969,"_hasShrinkwrap":false,"_cnpm_publish_time":1420888475969,"_cnpmcore_publish_time":"2021-12-16T19:20:03.540Z"},"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","size":20250,"noattachment":false,"key":"/grunt-markdown/-/grunt-markdown-0.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/grunt-markdown/download/grunt-markdown-0.6.1.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}],"directories":{},"publish_time":1400323407909,"_hasShrinkwrap":false,"_cnpm_publish_time":1400323407909,"_cnpmcore_publish_time":"2021-12-16T19:20:03.744Z"},"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","size":20208,"noattachment":false,"key":"/grunt-markdown/-/grunt-markdown-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/grunt-markdown/download/grunt-markdown-0.6.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}],"directories":{},"publish_time":1400322531892,"_hasShrinkwrap":false,"_cnpm_publish_time":1400322531892,"_cnpmcore_publish_time":"2021-12-16T19:20:04.379Z"},"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"},"readmeFilename":"README.md","_id":"grunt-markdown@0.5.0","dist":{"shasum":"748b170b522357da2fbf750f86dd93b861dffde3","size":6572,"noattachment":false,"key":"/grunt-markdown/-/grunt-markdown-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/grunt-markdown/download/grunt-markdown-0.5.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}],"directories":{},"publish_time":1389044965735,"_hasShrinkwrap":false,"_cnpm_publish_time":1389044965735,"_cnpmcore_publish_time":"2021-12-16T19:20:04.604Z"},"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"},"readmeFilename":"README.md","_id":"grunt-markdown@0.4.0","dist":{"shasum":"b333ca0c5637b0625a244b96eab8791350059602","size":6822,"noattachment":false,"key":"/grunt-markdown/-/grunt-markdown-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/grunt-markdown/download/grunt-markdown-0.4.0.tgz"},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}],"directories":{},"publish_time":1375783812698,"_hasShrinkwrap":false,"_cnpm_publish_time":1375783812698,"_cnpmcore_publish_time":"2021-12-16T19:20:04.835Z"},"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"},"readmeFilename":"README.md","_id":"grunt-markdown@0.3.0","dist":{"shasum":"38aa71bbb042e9c827e357cbbfa5d1af5eb49acf","size":5363,"noattachment":false,"key":"/grunt-markdown/-/grunt-markdown-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/grunt-markdown/download/grunt-markdown-0.3.0.tgz"},"_from":".","_npmVersion":"1.2.25","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}],"directories":{},"publish_time":1371158807926,"_hasShrinkwrap":false,"_cnpm_publish_time":1371158807926,"_cnpmcore_publish_time":"2021-12-16T19:20:05.217Z"},"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"},"readmeFilename":"README.md","_id":"grunt-markdown@0.2.0","dist":{"shasum":"76791421d6b664bad952b9f6e5b88910b9913eab","size":4698,"noattachment":false,"key":"/grunt-markdown/-/grunt-markdown-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/grunt-markdown/download/grunt-markdown-0.2.0.tgz"},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}],"directories":{},"publish_time":1363867518602,"_hasShrinkwrap":false,"_cnpm_publish_time":1363867518602,"_cnpmcore_publish_time":"2021-12-16T19:20:05.468Z"},"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","size":4847,"noattachment":false,"key":"/grunt-markdown/-/grunt-markdown-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/grunt-markdown/download/grunt-markdown-0.1.2.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}],"directories":{},"publish_time":1352671375593,"_hasShrinkwrap":false,"_cnpm_publish_time":1352671375593,"_cnpmcore_publish_time":"2021-12-16T19:20:05.658Z"},"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","size":4628,"noattachment":false,"key":"/grunt-markdown/-/grunt-markdown-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/grunt-markdown/download/grunt-markdown-0.1.1.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}],"directories":{},"publish_time":1351899582156,"_hasShrinkwrap":false,"_cnpm_publish_time":1351899582156,"_cnpmcore_publish_time":"2021-12-16T19:20:05.872Z"},"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","size":4618,"noattachment":false,"key":"/grunt-markdown/-/grunt-markdown-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/grunt-markdown/download/grunt-markdown-0.1.0.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"treasonx","email":"treasonx@gmail.com"},"maintainers":[{"name":"treasonx","email":"treasonx@gmail.com"}],"directories":{},"publish_time":1351894170238,"_hasShrinkwrap":false,"_cnpm_publish_time":1351894170238,"_cnpmcore_publish_time":"2021-12-16T19:20:06.074Z"}},"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","_attachments":{},"homepage":"https://github.com/treasonx/grunt-markdown","bugs":{"url":"https://github.com/treasonx/grunt-markdown/issues"}}