{"library":"remark-lint-no-html","title":"remark-lint-no-html","description":"A remark-lint rule that warns when raw HTML is used in Markdown documents. Version 4.0.1 is the current stable release, compatible with Node.js 16+. It is part of the remark-lint monorepo, which is maintained by the unified collective and releases updates alongside other lint rules. This rule helps enforce a pure Markdown writing style by disallowing inline HTML elements and comments, with an option to allow or disallow HTML comments. It is ESM-only and ships TypeScript types.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-no-html"],"cli":{"name":"remark","version":null}},"imports":["import remarkLintNoHtml from 'remark-lint-no-html'","import type { Options } from 'remark-lint-no-html'","import remarkLintNoHtml from 'remark-lint-no-html'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { unified } from 'unified';\nimport remarkParse from 'remark-parse';\nimport remarkLint from 'remark-lint';\nimport remarkLintNoHtml from 'remark-lint-no-html';\nimport remarkStringify from 'remark-stringify';\nimport { reporter } from 'vfile-reporter';\n\nconst file = await unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintNoHtml, { allowComments: false })\n  .use(remarkStringify)\n  .process('<h1>Hello</h1> <!-- comment -->');\n\nconsole.error(reporter(file));\n// 1:1-1:20: Unexpected HTML, use markdown instead\n// 1:21-1:34: Unexpected HTML, use markdown instead","lang":"typescript","description":"Shows how to set up a unified pipeline with remark-lint-no-html, disallowing HTML comments, and process a Markdown string.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}