{"name":"pretty-remarkable","description":"Plugin for prettifying markdown with Remarkable using custom renderer rules.","version":"0.4.1","homepage":"https://github.com/jonschlinkert/pretty-remarkable","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/pretty-remarkable.git"},"bugs":{"url":"https://github.com/jonschlinkert/pretty-remarkable/issues"},"license":"MIT","files":["index.js","lib"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"expand-reflinks":"^0.2.1","lazy-cache":"^2.0.1","list-item":"^1.1.1","markdown-utils":"^0.7.3","repeat-string":"^1.5.4"},"devDependencies":{"extend-shallow":"^2.0.1","gulp-format-md":"^0.1.9","mocha":"^2.5.3","remarkable":"^1.6.2"},"keywords":["beautify","format","markdown","marked","md","plugin","prettify","pretty","remarkable"],"verb":{"run":true,"toc":true,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["markdown-toc","markdown-utils","prettify-markdown","remarkable"]},"reflinks":["verb","verb-readme-generator"],"lint":{"reflinks":true}},"gitHead":"1ff9466caf5c1e483880c0aef5c496b4609e92d2","_id":"pretty-remarkable@0.4.1","_shasum":"437b53c8a7d4c47a5933c01bb25982f840560201","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"437b53c8a7d4c47a5933c01bb25982f840560201","tarball":"http://registry-npm.ywwl.com/pretty-remarkable/download/pretty-remarkable-0.4.1.tgz","integrity":"sha512-f37JqZwy+ZGtsPZDEmZ4mCYuSn91xrAXmVJC0cXNDJNVLfbKmMPd1a5V7yg/otBC9dvCuAJM4+/wmWiP5bNPWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQLhMUu/Wxs8Yim100aFtR9BsDlALh4DUlMHmnTNXJ2QIgXfUed2bTGSCzT2GK0KbG+gNL16myk2clDLsO8q1e2aA="}],"size":7265,"noattachment":false,"key":"/pretty-remarkable/-/pretty-remarkable-0.4.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pretty-remarkable-0.4.1.tgz_1491292255830_0.46761304093524814"},"directories":{},"readme":"# pretty-remarkable [![NPM version](https://img.shields.io/npm/v/pretty-remarkable.svg?style=flat)](https://www.npmjs.com/package/pretty-remarkable) [![NPM monthly downloads](https://img.shields.io/npm/dm/pretty-remarkable.svg?style=flat)](https://npmjs.org/package/pretty-remarkable) [![NPM total downloads](https://img.shields.io/npm/dt/pretty-remarkable.svg?style=flat)](https://npmjs.org/package/pretty-remarkable) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/pretty-remarkable.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/pretty-remarkable)\n\n> Plugin for prettifying markdown with Remarkable using custom renderer rules.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n- [Install](#install)\n- [Usage](#usage)\n- [Examples](#examples)\n- [Formatting](#formatting)\n  * [Tables](#tables)\n  * [Unordered lists](#unordered-lists)\n  * [Ordered lists](#ordered-lists)\n- [About](#about)\n\n_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save pretty-remarkable\n```\n\n## Usage\n\n```js\nvar prettify = require('pretty-remarkable');\n```\n\n## Examples\n\n```js\nvar prettify = require('pretty-remarkable');\nvar Remarkable = require('remarkable');\nvar md = new Remarkable();\n\n// register the plugin\nmd.use(prettify);\nvar result = md.render('\\n\\n\\n# foo\\n\\n\\nbar\\n# baz');\n//=> '# foo\\n\\nbar\\n\\n# baz'\n```\n\nOr create a function if you need to export it or need a more reusable format:\n\n```js\nvar prettify = require('pretty-remarkable');\nvar Remarkable = require('remarkable');\n\nfunction pretty(str, options) {\n  return new Remarkable()\n    .use(prettify)\n    .render(str);\n}\n\npretty('\\n\\n\\n# foo\\n\\n\\nbar\\n# baz');\n//=> '# foo\\n\\nbar\\n\\n# baz'\n```\n\n## Formatting\n\nIn addition to the formatting mentioned in the following sections:\n\n* does not modify `code` or gfm code blocks\n* ensures that an extra newline precedes gfm code blocks, since some text editors do not display proper hightlighting otherwise\n* unless `options.condense` is false, condenses 3+ newlines down to two\n\n### Tables\n\nNormalizes table formatting.\n\n**Example**\n\n```markdown\nBefore\n**A**|**B**|**C**\n|---:|:---|---|\na |b |c\nx |y |z\nAfter\n```\n\nIs normalized to:\n\n```markdown\nBefore\n\n| **A** | **B** | **C** | \n| ---: | :--- | --- |\n| a | b | c |\n| x | y | z |\n\nAfter\n```\n\n### Unordered lists\n\nNormalizes unordered lists.\n\n**Example**\n\n```markdown\n* a\n* b\n  * c\n  * d\n    * e\n    * f\n```\n\nIs normalized to:\n\n```markdown\n* a\n* b\n  - c\n  - d\n    + e\n    + f\n```\n\n### Ordered lists\n\nNormalizes ordered lists.\n\n**Example**\n\n```markdown\n1. foo\n  a. aaa\n  b. bbb\n  c. ccc\n1. bar\n1. baz\n\n```\n\nIs normalized to:\n\n```markdown\n1. foo\n  a. aaa\n  b. bbb\n  c. ccc\n2. bar\n3. baz\n\n```\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n</details>\n\n<details>\n<summary><strong>Building docs</strong></summary>\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n</details>\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [markdown-toc](https://www.npmjs.com/package/markdown-toc): Generate a markdown TOC (table of contents) with Remarkable. | [homepage](https://github.com/jonschlinkert/markdown-toc \"Generate a markdown TOC (table of contents) with Remarkable.\")\n* [markdown-utils](https://www.npmjs.com/package/markdown-utils): Tiny helpers for creating consistenly-formatted markdown snippets. | [homepage](https://github.com/jonschlinkert/markdown-utils \"Tiny helpers for creating consistenly-formatted markdown snippets.\")\n* [prettify-markdown](https://www.npmjs.com/package/prettify-markdown): Prettify, format or beautify your markdown. Whatever you want to call it, this does that… [more](https://github.com/jonschlinkert/prettify-markdown) | [homepage](https://github.com/jonschlinkert/prettify-markdown \"Prettify, format or beautify your markdown. Whatever you want to call it, this does that. Used on hundreds of projects by verb.\")\n* [remarkable](https://www.npmjs.com/package/remarkable): Markdown parser, done right. 100% Commonmark support, extensions, syntax plugins, high speed - all in… [more](https://github.com/jonschlinkert/remarkable) | [homepage](https://github.com/jonschlinkert/remarkable \"Markdown parser, done right. 100% Commonmark support, extensions, syntax plugins, high speed - all in one.\")\n\n### Author\n\n**Jon Schlinkert**\n\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on July 05, 2018._","publish_time":1491292257829,"_cnpm_publish_time":1491292257829,"dist-tags":{"latest":"1.0.0"}}