{"_id":"grunt-md2pdf","_rev":"27-0ee051ffd827ec38c97076e23ef8969a","name":"grunt-md2pdf","description":"Converts markdown file(s) to pdf","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"grunt-md2pdf","description":"Converts markdown file(s) to pdf","version":"0.1.0","homepage":"https://github.com/bgerrissen/grunt-md2pdf","author":{"name":"Ben Gerrissen","email":"bgerrissen@gmail.com"},"repository":{"type":"git","url":"https://github.com/bgerrissen/grunt-md2pdf.git"},"bugs":{"url":"https://github.com/bgerrissen/grunt-md2pdf/issues"},"licenses":[{"type":"MIT","url":"https://github.com/ben/tmp/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-clean":"^0.5.0","grunt-contrib-nodeunit":"^0.3.3","grunt":"^0.4.5","grunt-contrib-jshint":"~0.10.0"},"peerDependencies":{"grunt":"^0.4.5"},"keywords":["gruntplugin","markdown","marked","marked-toc","html-to-pdf","pdf","convert"],"dependencies":{"html-to-pdf":"^0.1.11","marked":"^0.3.2","marked-toc":"^0.2.8"},"_id":"grunt-md2pdf@0.1.0","dist":{"shasum":"4511061a18992f5803d6ee315b743cebfe2782da","tarball":"https://registry.npmjs.org/grunt-md2pdf/-/grunt-md2pdf-0.1.0.tgz","integrity":"sha512-IKCBStRs1Li0HDW5Bf4/W2V1ixchhoNFlWY6xLaF3sf7fWTkBku57Ut/XfKnz1ZOPEQ1pWs9PVNKrz59GxkdIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoT2AfjPfSWgkaMmlXbgBulPsNAFqpW8WsiTOe5WWHgQIgA+OYGhxKoQ9iJc6TFVN8m6FNolFA/gwRdWPr7YxbYcM="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"greyb24","email":"bgerrissen@gmail.com"},"maintainers":[{"name":"greyb24","email":"bgerrissen@gmail.com"}]},"0.2.0":{"name":"grunt-md2pdf","description":"Converts markdown file(s) to pdf","version":"0.2.0","homepage":"https://github.com/bgerrissen/grunt-md2pdf","author":{"name":"Ben Gerrissen","email":"bgerrissen@gmail.com"},"repository":{"type":"git","url":"https://github.com/bgerrissen/grunt-md2pdf.git"},"bugs":{"url":"https://github.com/bgerrissen/grunt-md2pdf/issues"},"licenses":[{"type":"MIT","url":"https://github.com/ben/tmp/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-clean":"^0.5.0","grunt-contrib-nodeunit":"^0.3.3","grunt":"^0.4.5","grunt-contrib-jshint":"~0.10.0"},"peerDependencies":{"grunt":"^0.4.5"},"keywords":["gruntplugin","markdown","marked","marked-toc","html-to-pdf","pdf","convert"],"dependencies":{"html-to-pdf":"^0.1.11","marked":"^0.3.2","marked-toc":"^0.2.8"},"_id":"grunt-md2pdf@0.2.0","dist":{"shasum":"1db8147e0b32bc800672ac042597a6cbf68344fb","tarball":"https://registry.npmjs.org/grunt-md2pdf/-/grunt-md2pdf-0.2.0.tgz","integrity":"sha512-sYyN8MHMXfTSGHnj0+pUX9ZmXoHAfOBEX+FF1I3dXwaMopgxE30adBTt51rFmDGBodQUNofUHflZKwoC9nNx8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrfmo2w/zxcN3rgXj5Ews0vgMZCBFL2xFmNMAMGKY5FgIhAKgCARdL+SgeDUowtAgyxUUA14OYylr0BlWM35F+gU5p"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"greyb24","email":"bgerrissen@gmail.com"},"maintainers":[{"name":"greyb24","email":"bgerrissen@gmail.com"}]},"0.2.1":{"name":"grunt-md2pdf","description":"Converts markdown file(s) to pdf","version":"0.2.1","homepage":"https://github.com/bgerrissen/grunt-md2pdf","author":{"name":"Ben Gerrissen","email":"bgerrissen@gmail.com"},"repository":{"type":"git","url":"https://github.com/bgerrissen/grunt-md2pdf.git"},"bugs":{"url":"https://github.com/bgerrissen/grunt-md2pdf/issues"},"licenses":[{"type":"MIT","url":"https://github.com/ben/tmp/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-clean":"^0.5.0","grunt-contrib-nodeunit":"^0.3.3","grunt":"^0.4.5","grunt-contrib-jshint":"~0.10.0"},"peerDependencies":{"grunt":"^0.4.5"},"keywords":["gruntplugin","markdown","marked","marked-toc","html-to-pdf","pdf","convert"],"dependencies":{"html-to-pdf":"^0.1.11","marked":"^0.3.2","marked-toc":"^0.2.8","image-size":"~0.3.5"},"_id":"grunt-md2pdf@0.2.1","dist":{"shasum":"e49e1b569d7c8fb86c4576d55957243c76fa01b9","tarball":"https://registry.npmjs.org/grunt-md2pdf/-/grunt-md2pdf-0.2.1.tgz","integrity":"sha512-hxZY+CV2f3YeqDuxD+PZdk83Nf2k42OJTDndoGORfgLHvuPb1HHKT2P0pcEoNMvcNgd4Z5b0dUHeQpY6sN7Czw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAlmKr9gINqRWonR+dxAWNue13fyLFYy6Vw87YxyJaJIAiEA9BVP1RHon/UH9D5VlN76txPXTZhDTf/CXPlh5gRMVF8="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"greyb24","email":"bgerrissen@gmail.com"},"maintainers":[{"name":"greyb24","email":"bgerrissen@gmail.com"}]},"0.2.2":{"name":"grunt-md2pdf","description":"Converts markdown file(s) to pdf","version":"0.2.2","homepage":"https://github.com/bgerrissen/grunt-md2pdf","author":{"name":"Ben Gerrissen","email":"bgerrissen@gmail.com"},"repository":{"type":"git","url":"https://github.com/bgerrissen/grunt-md2pdf.git"},"bugs":{"url":"https://github.com/bgerrissen/grunt-md2pdf/issues"},"licenses":[{"type":"MIT","url":"https://github.com/ben/tmp/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-clean":"^0.5.0","grunt-contrib-nodeunit":"^0.3.3","grunt":"^0.4.5","grunt-contrib-jshint":"~0.10.0"},"peerDependencies":{"grunt":"^0.4.5"},"keywords":["gruntplugin","markdown","marked","marked-toc","html-to-pdf","pdf","convert"],"dependencies":{"html-to-pdf":"^0.1.11","marked":"^0.3.2","marked-toc":"^0.2.8","image-size":"~0.3.5"},"_id":"grunt-md2pdf@0.2.2","dist":{"shasum":"b90808392a719bb98269c04b17752575febe5b8d","tarball":"https://registry.npmjs.org/grunt-md2pdf/-/grunt-md2pdf-0.2.2.tgz","integrity":"sha512-kfgxaSrUyVPhGo2brgWy+fjpUxFZaz2zSn50XqjL0j4Ue0oN+z+9ryi3tR/UminZvceSQIKKm/OY2EBZDP4RWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiMrXlCn4h3VtiP+XqYiKup8QecIEzBQplFMj1xTCXgQIgfow6LhI27+RgcxBHxhU69HuQA16rwrSz9PrpmVavEds="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"greyb24","email":"bgerrissen@gmail.com"},"maintainers":[{"name":"greyb24","email":"bgerrissen@gmail.com"}]},"0.2.3":{"name":"grunt-md2pdf","description":"Converts markdown file(s) to pdf","version":"0.2.3","homepage":"https://github.com/bgerrissen/grunt-md2pdf","author":{"name":"Ben Gerrissen","email":"bgerrissen@gmail.com"},"repository":{"type":"git","url":"https://github.com/bgerrissen/grunt-md2pdf.git"},"bugs":{"url":"https://github.com/bgerrissen/grunt-md2pdf/issues"},"licenses":[{"type":"MIT","url":"https://github.com/ben/tmp/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-clean":"^0.5.0","grunt-contrib-nodeunit":"^0.3.3","grunt":"^0.4.5","grunt-contrib-jshint":"~0.10.0"},"peerDependencies":{"grunt":"^0.4.5"},"keywords":["gruntplugin","markdown","marked","marked-toc","html-to-pdf","pdf","convert"],"dependencies":{"html-to-pdf":"^0.1.11","marked":"^0.3.2","marked-toc":"^0.2.8"},"_id":"grunt-md2pdf@0.2.3","dist":{"shasum":"ad757ce8593084d73b0706aadb148252532dc1c2","tarball":"https://registry.npmjs.org/grunt-md2pdf/-/grunt-md2pdf-0.2.3.tgz","integrity":"sha512-Vh1iaS7pjRcGdaByk2sSIFKzsVW1AzfjrF5RYKojaxVYTKfEU+uQfe/xmZNDmiZAtP3lAeLpVn9qAOkPpPNHNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4jlhbiF3kw3EZbVs0BH+Y8V7SEFFLH4XvUxp6iSyRawIhAK0VJqPiVTYr41CcAyXYC5CVLv8DfYxjUi99cjccJH/o"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"greyb24","email":"bgerrissen@gmail.com"},"maintainers":[{"name":"greyb24","email":"bgerrissen@gmail.com"}]},"0.3.0":{"name":"grunt-md2pdf","description":"Converts markdown file(s) to pdf","version":"0.3.0","homepage":"https://github.com/bgerrissen/grunt-md2pdf","author":{"name":"Ben Gerrissen","email":"bgerrissen@gmail.com"},"repository":{"type":"git","url":"https://github.com/bgerrissen/grunt-md2pdf.git"},"bugs":{"url":"https://github.com/bgerrissen/grunt-md2pdf/issues"},"licenses":[{"type":"MIT","url":"https://github.com/ben/tmp/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-clean":"^0.5.0","grunt-contrib-nodeunit":"^0.3.3","grunt":"^0.4.5","grunt-contrib-jshint":"~0.10.0"},"peerDependencies":{"grunt":"^0.4.5"},"keywords":["gruntplugin","markdown","marked","marked-toc","html-to-pdf","pdf","convert"],"dependencies":{"html-to-pdf":"^0.1.11","marked":"^0.3.2","marked-toc":"^0.2.8"},"_id":"grunt-md2pdf@0.3.0","dist":{"shasum":"58c8ab375cc2af58bc87111e9578592c5d79462d","tarball":"https://registry.npmjs.org/grunt-md2pdf/-/grunt-md2pdf-0.3.0.tgz","integrity":"sha512-aO8yTnHPhzmMkTbcm4RAU52VaP1nbrFVEes6x5EU2hp3BKXhrd9L0uskTzDzYcmY5Mjj7nCZMSmIJpixOHEbIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdchPy/LHYTjiTLog1Aws0uDiy81gul0qRff6IzSD4RgIhAP0jpQ+TyPAfIARJPhOcSoCca2rqQ/cbenvQymYfUAB2"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"greyb24","email":"bgerrissen@gmail.com"},"maintainers":[{"name":"greyb24","email":"bgerrissen@gmail.com"}]}},"readme":"# grunt-md2pdf\r\n\r\n> A simple plugin to converts markdown file(s) to pdf.\r\n\r\n## Getting Started\r\nThis plugin requires Grunt `~0.4.5`\r\n\r\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\r\n\r\n```shell\r\nnpm install grunt-md2pdf\r\n```\r\n\r\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\r\n\r\n```js\r\ngrunt.loadNpmTasks('grunt-md2pdf');\r\n```\r\n\r\n## The \"md2pdf\" task\r\n\r\n### Overview\r\nIn your project's Gruntfile, add a section named `md2pdf` to the data object passed into `grunt.initConfig()`.\r\n\r\n```js\r\ngrunt.initConfig({\r\n  md2pdf: {\r\n    make: {\r\n      options: {\r\n        // configuration options\r\n      },\r\n      'TARGET_DESTINATION.PDF': [\r\n        'FIRST_FILE.MD',\r\n        'SECOND_FILE.MD''\r\n      ]\r\n    }\r\n  },\r\n});\r\n```\r\n\r\n### Options\r\n\r\n#### options.toc\r\nType: `boolean`\r\nDefault value: false\r\n\r\nWhether or not to include a table of contents.\r\n\r\n#### options.tocDepth\r\nType: `Number`\r\nDefault value: null\r\n\r\nHow many levels deep the table of contents could be.\r\n\r\n#### options.tocTitle\r\nType: `String`\r\nDefault value: 'Table of contents'\r\n\r\nTitle to display above table of contents.\r\n\r\n#### options.stylesheet\r\nType: `String`\r\nDefault value: PATH_TO_PLUGIN_STYLESHEET\r\n\r\nCSS styling, defaults to a file included in the plugin that breaks `<h1>` tags to a new page in the PDF.\r\n\r\n#### options.titlePage\r\nType: `String`\r\nDefault value: null\r\n\r\nPath to a markdown/html title page. Will be wrapped in a `<div>` with className \"title-page\".\r\n\r\n\r\n### Usage Examples\r\n\r\n#### Default Options\r\nIn this example, we generate 2 pdf's for documentation with different styling each.\r\n\r\n```js\r\ngrunt.initConfig({\r\n  md2pdf: {\r\n    options:{\r\n      toc: true,\r\n      tocDepth: 2,\r\n      stylesheet: 'documentation/css/branding.css'\r\n    },\r\n    documentation_1: [\r\n      'documentation/docs1/chapter1.md',\r\n      'documentation/docs1/chapter2.md',\r\n      'documentation/docs1/chapter3.md'\r\n    ],\r\n    documentation_2: {\r\n      options:{\r\n        stylesheet: 'documentation/css/other_branding.css'\r\n      },\r\n      'documentation/docs2/chapter1.md',\r\n      'documentation/docs2/chapter2.md',\r\n      'documentation/docs2/chapter3.md',\r\n      'documentation/docs2/chapter4.md'\r\n    }\r\n  },\r\n});\r\n```\r\n\r\n## CSS\r\n\r\nThe default styling included is quite simple:\r\n\r\n```css\r\nh1 {\r\n    page-break-before:always;\r\n}\r\nh1.toc, .title-page h1 {\r\n    page-break-before: avoid;\r\n}\r\n.break-page, .title-page {\r\n    page-break-after:always;\r\n}\r\n\r\n.toc ul {\r\n    list-style: none;\r\n    padding: 0;\r\n}\r\n.toc ul ul {\r\n    padding: 0 0 0 20px;\r\n}\r\n\r\n.title-page {\r\n    text-align: center;\r\n}\r\n```\r\n\r\n## Important notes:\r\n\r\n- html-to-pdf makes use of a java library, that means you need java installed to use this plugin.\r\n\r\n## Roadmap:\r\n\r\n- 0.2.0 Title page\r\n\r\n## Dependencies:\r\n\r\n- [html-to-pdf](https://github.com/ChaosEvoker/html-to-pdf)\r\n- [marked](https://github.com/chjj/marked)\r\n- [marked-toc](https://github.com/jonschlinkert/marked-toc)\r\n\r\n## Contributing\r\nIn lieu of a formal styleguide, take care to maintain the existing coding style.\r\nAdd unit tests for any new or changed functionality.\r\nLint and test your code using [Grunt](http://gruntjs.com/).\r\n\r\n## Release History\r\n- 0.1.0\r\n","maintainers":[{"name":"greyb24","email":"bgerrissen@gmail.com"}],"time":{"modified":"2022-06-18T15:28:39.471Z","created":"2014-11-17T13:57:42.175Z","0.1.0":"2014-11-17T13:57:44.029Z","0.2.0":"2014-11-17T15:39:58.767Z","0.2.1":"2014-11-17T16:11:31.032Z","0.2.2":"2014-11-17T16:14:21.705Z","0.2.3":"2014-11-17T16:22:46.635Z","0.3.0":"2014-11-18T10:35:56.319Z"},"readmeFilename":"README.md","homepage":"https://github.com/bgerrissen/grunt-md2pdf","keywords":["gruntplugin","markdown","marked","marked-toc","html-to-pdf","pdf","convert"],"repository":{"type":"git","url":"https://github.com/bgerrissen/grunt-md2pdf.git"},"author":{"name":"Ben Gerrissen","email":"bgerrissen@gmail.com"},"bugs":{"url":"https://github.com/bgerrissen/grunt-md2pdf/issues"}}