{"name":"remark-lint-blockquote-indentation","version":"2.0.1","description":"remark-lint rule to warn when block quotes are either indented too much or too little","license":"MIT","keywords":["remark","lint","rule","remark-lint-rule","blockquote","indentation","indent"],"repository":{"type":"git","url":"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-blockquote-indentation"},"bugs":{"url":"https://github.com/remarkjs/remark-lint/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"mdast-util-to-string":"^1.0.2","pluralize":"^8.0.0","unified-lint-rule":"^1.0.0","unist-util-generated":"^1.1.0","unist-util-position":"^3.0.0","unist-util-visit":"^2.0.0"},"xo":false,"_id":"remark-lint-blockquote-indentation@2.0.1","_nodeVersion":"14.0.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-uJ9az/Ms9AapnkWpLSCJfawBfnBI2Tn1yUsPNqIFv6YM98ymetItUMyP6ng9NFPqDvTQBbiarulkgoEo0wcafQ==","shasum":"27347959acf42a6c3e401488d8210e973576b254","tarball":"http://registry-npm.ywwl.com/remark-lint-blockquote-indentation/download/remark-lint-blockquote-indentation-2.0.1.tgz","fileCount":3,"unpackedSize":7152,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/bnvCRA9TVsSAnZWagAAB6AP/2W5B6qgzycO9ea/K/Nb\nlHXCEMjRUSrzOmKF4zeebGIgvCJudirAz0HT/+f+DJcUbFZ/b8C3mDwvNIRy\nputBkvwn87HsmA0jHcGYCKRtHjpDDSfR/j6LzbOLH9YAjjrYO9voTjm6E6gs\niQX1ufiRq/beJzXbzpqpnZa9SA4h+x87n6B6xN0wUQlS9TZU4BhfZLAKSxtV\nTIkJhHlRWTfomKMB7+pBrwacSTu/SDE66KS2kgm1Muxk7WhqEI7StHaBW7ax\nCvA+yKGY1r3W5cD6MRARdpcgnUTqk1u1bEb++e7qYwT/BemkyaMEiWhjjgO/\nAlWP8rrgQuxJTe5u96YP1Nt7n0iDfSTcd7kFstc78pOMOZG2yxA81iEIvAuy\nUgSbMC7IvdiF7fnPekM0DuTRPEigl/lFrZqWY65hoNMiurJucdpuUz0oYzUw\ncN+jwN0V3/BfF+WqtoFYjHim2iB/ntPajp7/uBqagGurQcTNCpoIhDjjWqKm\nMnn4u65WMdKc5uC4eJ+JJ6KSh3j+uPXxe88yBIi/0nbsRfvmZq/VGFbZlAuu\nhc9gr6kJME3iSjdBuCXJk2RCY/AUjATTDEeBVHtDPGIQu2Ip9bVvJx7I2jIq\nOzeSBXru7J3UZE9T1I4YLO6vGewIYynsczux+4gRZxF+Mf2KiR5PpaSjpy54\nhKoS\r\n=C51M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEQDqIFE/MBlj20DF2TrFYMOlw3kJDuSqkKNv2xZESmwIhAI02KDKFkWkA8mZyx2+tLpVoIh1ZXIx1FyOVv/kRBcbz"}],"size":2454,"noattachment":false,"key":"/remark-lint-blockquote-indentation/-/remark-lint-blockquote-indentation-2.0.1.tgz"},"maintainers":[{"email":"johnotander@gmail.com","name":"johno"},{"email":"tituswormer@gmail.com","name":"wooorm"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-lint-blockquote-indentation_2.0.1_1593686510611_0.874546087850079"},"_hasShrinkwrap":false,"readme":"<!--This file is generated-->\n\n# remark-lint-blockquote-indentation\n\n[![Build][badge-build-image]][badge-build-url]\n[![Coverage][badge-coverage-image]][badge-coverage-url]\n[![Downloads][badge-downloads-image]][badge-downloads-url]\n[![Size][badge-size-image]][badge-size-url]\n[![Sponsors][badge-funding-sponsors-image]][badge-funding-url]\n[![Backers][badge-funding-backers-image]][badge-funding-url]\n[![Chat][badge-chat-image]][badge-chat-url]\n\n[`remark-lint`][github-remark-lint] rule to warn when block quotes are indented too much or\ntoo little.\n\n## Contents\n\n* [What is this?](#what-is-this)\n* [When should I use this?](#when-should-i-use-this)\n* [Presets](#presets)\n* [Install](#install)\n* [Use](#use)\n* [API](#api)\n  * [`unified().use(remarkLintBlockquoteIndentation[, options])`](#unifieduseremarklintblockquoteindentation-options)\n  * [`Options`](#options)\n* [Recommendation](#recommendation)\n* [Examples](#examples)\n* [Compatibility](#compatibility)\n* [Contribute](#contribute)\n* [License](#license)\n\n## What is this?\n\nThis package checks the “indent” of block quotes: the `>` (greater than)\nmarker *and* the spaces before content.\n\n## When should I use this?\n\nYou can use this rule to check markdown code style.\n\n## Presets\n\nThis plugin is included in the following presets:\n\n| Preset | Options |\n| - | - |\n| [`remark-preset-lint-consistent`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-preset-lint-consistent) | `'consistent'` |\n| [`remark-preset-lint-markdown-style-guide`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-preset-lint-markdown-style-guide) | `2` |\n\n## Install\n\nThis package is [ESM only][github-gist-esm].\nIn Node.js (version 16+),\ninstall with [npm][npm-install]:\n\n```sh\nnpm install remark-lint-blockquote-indentation\n```\n\nIn Deno with [`esm.sh`][esm-sh]:\n\n```js\nimport remarkLintBlockquoteIndentation from 'https://esm.sh/remark-lint-blockquote-indentation@4'\n```\n\nIn browsers with [`esm.sh`][esm-sh]:\n\n```html\n<script type=\"module\">\n  import remarkLintBlockquoteIndentation from 'https://esm.sh/remark-lint-blockquote-indentation@4?bundle'\n</script>\n```\n\n## Use\n\nOn the API:\n\n```js\nimport remarkLint from 'remark-lint'\nimport remarkLintBlockquoteIndentation from 'remark-lint-blockquote-indentation'\nimport remarkParse from 'remark-parse'\nimport remarkStringify from 'remark-stringify'\nimport {read} from 'to-vfile'\nimport {unified} from 'unified'\nimport {reporter} from 'vfile-reporter'\n\nconst file = await read('example.md')\n\nawait unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintBlockquoteIndentation)\n  .use(remarkStringify)\n  .process(file)\n\nconsole.error(reporter(file))\n```\n\nOn the CLI:\n\n```sh\nremark --frail --use remark-lint --use remark-lint-blockquote-indentation .\n```\n\nOn the CLI in a config file (here a `package.json`):\n\n```diff\n …\n \"remarkConfig\": {\n   \"plugins\": [\n     …\n     \"remark-lint\",\n+    \"remark-lint-blockquote-indentation\",\n     …\n   ]\n }\n …\n```\n\n## API\n\nThis package exports no identifiers.\nIt exports the [TypeScript][typescript] type\n[`Options`][api-options].\nThe default export is\n[`remarkLintBlockquoteIndentation`][api-remark-lint-blockquote-indentation].\n\n### `unified().use(remarkLintBlockquoteIndentation[, options])`\n\nWarn when block quotes are indented too much or too little.\n\n###### Parameters\n\n* `options` ([`Options`][api-options], default: `'consistent'`)\n  — either a preferred indent or whether to detect the first style\n  and warn for further differences\n\n###### Returns\n\nTransform ([`Transformer` from `unified`][github-unified-transformer]).\n\n### `Options`\n\nConfiguration (TypeScript type).\n\n###### Type\n\n```ts\ntype Options = number | 'consistent'\n```\n\n## Recommendation\n\nCommonMark specifies that when block quotes are used the `>` markers can be\nfollowed by an optional space.\nNo space at all arguably looks rather ugly:\n\n```markdown\n>Mars and\n>Venus.\n```\n\nThere is no specific handling of more that one space, so if 5 spaces were\nused after `>`, then indented code kicks in:\n\n```markdown\n>     neptune()\n```\n\nDue to this, it’s recommended to configure this rule with `2`.\n\n## Examples\n\n##### `ok-2.md`\n\nWhen configured with `2`.\n\n###### In\n\n```markdown\n> Mercury.\n\nVenus.\n\n> Earth.\n```\n\n###### Out\n\nNo messages.\n\n##### `ok-4.md`\n\nWhen configured with `4`.\n\n###### In\n\n```markdown\n>   Mercury.\n\nVenus.\n\n>   Earth.\n```\n\n###### Out\n\nNo messages.\n\n##### `ok-tab.md`\n\n###### In\n\n```markdown\n>␉Mercury.\n```\n\n###### Out\n\nNo messages.\n\n##### `not-ok.md`\n\n###### In\n\n```markdown\n>  Mercury.\n\nVenus.\n\n>   Earth.\n\nMars.\n\n> Jupiter\n```\n\n###### Out\n\n```text\n5:5: Unexpected `4` spaces between block quote marker and content, expected `3` spaces, remove `1` space\n9:3: Unexpected `2` spaces between block quote marker and content, expected `3` spaces, add `1` space\n```\n\n##### `not-ok-options.md`\n\nWhen configured with `'🌍'`.\n\n###### Out\n\n```text\n1:1: Unexpected value `🌍` for `options`, expected `number` or `'consistent'`\n```\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line,\n`remark-lint-blockquote-indentation@4`,\ncompatible with Node.js 16.\n\n## Contribute\n\nSee [`contributing.md`][github-dotfiles-contributing] in [`remarkjs/.github`][github-dotfiles-health] for ways\nto get started.\nSee [`support.md`][github-dotfiles-support] for ways to get help.\n\nThis project has a [code of conduct][github-dotfiles-coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][file-license] © [Titus Wormer][author]\n\n[api-options]: #options\n\n[api-remark-lint-blockquote-indentation]: #unifieduseremarklintblockquoteindentation-options\n\n[author]: https://wooorm.com\n\n[badge-build-image]: https://github.com/remarkjs/remark-lint/workflows/main/badge.svg\n\n[badge-build-url]: https://github.com/remarkjs/remark-lint/actions\n\n[badge-chat-image]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[badge-chat-url]: https://github.com/remarkjs/remark/discussions\n\n[badge-coverage-image]: https://img.shields.io/codecov/c/github/remarkjs/remark-lint.svg\n\n[badge-coverage-url]: https://codecov.io/github/remarkjs/remark-lint\n\n[badge-downloads-image]: https://img.shields.io/npm/dm/remark-lint-blockquote-indentation.svg\n\n[badge-downloads-url]: https://www.npmjs.com/package/remark-lint-blockquote-indentation\n\n[badge-funding-backers-image]: https://opencollective.com/unified/backers/badge.svg\n\n[badge-funding-sponsors-image]: https://opencollective.com/unified/sponsors/badge.svg\n\n[badge-funding-url]: https://opencollective.com/unified\n\n[badge-size-image]: https://img.shields.io/bundlejs/size/remark-lint-blockquote-indentation\n\n[badge-size-url]: https://bundlejs.com/?q=remark-lint-blockquote-indentation\n\n[esm-sh]: https://esm.sh\n\n[file-license]: https://github.com/remarkjs/remark-lint/blob/main/license\n\n[github-dotfiles-coc]: https://github.com/remarkjs/.github/blob/main/code-of-conduct.md\n\n[github-dotfiles-contributing]: https://github.com/remarkjs/.github/blob/main/contributing.md\n\n[github-dotfiles-health]: https://github.com/remarkjs/.github\n\n[github-dotfiles-support]: https://github.com/remarkjs/.github/blob/main/support.md\n\n[github-gist-esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[github-remark-lint]: https://github.com/remarkjs/remark-lint\n\n[github-unified-transformer]: https://github.com/unifiedjs/unified#transformer\n\n[npm-install]: https://docs.npmjs.com/cli/install\n\n[typescript]: https://www.typescriptlang.org\n","publish_time":1593686510768,"_cnpm_publish_time":1593686510768,"dist-tags":{"latest":"4.0.1"}}