{"library":"remark-lint-no-heading-content-indent","title":"remark-lint-no-heading-content-indent","description":"A remark-lint rule that warns when there is extra whitespace between the opening hashes and the content of headings (ATX headings) in Markdown. It enforces a single space after the `#` markers and before the closing `#`s. This package is part of the remark-lint ecosystem, version 5.0.1, ESM-only, ships TypeScript type definitions. It has no dependencies and is recommended for ensuring consistent heading formatting. The rule is included in the `remark-preset-lint-recommended` preset.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-no-heading-content-indent"],"cli":null},"imports":["import remarkLintNoHeadingContentIndent from 'remark-lint-no-heading-content-indent'","import { unified } from 'unified'","import remarkParse from 'remark-parse'","import remarkStringify from 'remark-stringify'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { unified } from 'unified'\nimport remarkParse from 'remark-parse'\nimport remarkStringify from 'remark-stringify'\nimport remarkLint from 'remark-lint'\nimport remarkLintNoHeadingContentIndent from 'remark-lint-no-heading-content-indent'\nimport { reporter } from 'vfile-reporter'\n\nconst file = await unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintNoHeadingContentIndent)\n  .use(remarkStringify)\n  .process('#  Bad heading\\n\\n## Good heading')\n\nconsole.error(reporter(file))\n// 1:4: Unexpected `2` spaces between hashes and content, expected `1` space, remove `1` space","lang":"typescript","description":"Shows how to set up the lint rule with unified, parse a Markdown string with an extra space after the hash, and report the linting error.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}