{"library":"remark-lint-no-emphasis-as-heading","title":"remark-lint-no-emphasis-as-heading","description":"remark-lint rule to warn when emphasis or strong is used instead of a heading. Current stable version: 4.0.1. Part of the remark-lint ecosystem, released as needed with other lint rules. Differentiator: specifically targets faux headings created with emphasis/strong, promoting proper heading usage. ESM-only, ships TypeScript types.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-no-emphasis-as-heading"],"cli":null},"imports":["import remarkLintNoEmphasisAsHeading from 'remark-lint-no-emphasis-as-heading'","import remarkLint from 'remark-lint'","import { unified } from 'unified'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import remarkLint from 'remark-lint'\nimport remarkLintNoEmphasisAsHeading from 'remark-lint-no-emphasis-as-heading'\nimport remarkParse from 'remark-parse'\nimport remarkStringify from 'remark-stringify'\nimport { unified } from 'unified'\nimport { reporter } from 'vfile-reporter'\n\nconst file = await unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintNoEmphasisAsHeading)\n  .use(remarkStringify)\n  .process('# Hello\\n\\n**World**\\n\\nThis is a paragraph.')\n\nconsole.error(reporter(file))","lang":"typescript","description":"Sets up unified with remark-lint and the no-emphasis-as-heading rule, processes a markdown file, and reports lint messages.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}