{"library":"remark-lint-code-block-style","title":"remark-lint-code-block-style","description":"remark-lint rule to enforce a consistent code block style (indented or fenced) in Markdown. Version 4.0.1 is the current stable release. Part of the remark-lint ecosystem, it allows 'consistent' (auto-detect first style), 'indented', or 'fenced'. It is ESM-only since v4 and ships TypeScript definitions. Unlike other lint rules, this focuses solely on code block style, making it minimal and composable with other remark plugins. Frequently used in presets like remark-preset-lint-consistent.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-code-block-style"],"cli":null},"imports":["import remarkLintCodeBlockStyle from 'remark-lint-code-block-style'","import type { Options } from 'remark-lint-code-block-style'","import type { Style } from 'remark-lint-code-block-style'","const remarkLintCodeBlockStyle = require('remark-lint-code-block-style').default"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import remarkLint from 'remark-lint'\nimport remarkLintCodeBlockStyle from 'remark-lint-code-block-style'\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(remarkLintCodeBlockStyle, { style: 'fenced' })\n  .use(remarkStringify)\n  .process(file)\n\nconsole.error(reporter(file))","lang":"typescript","description":"Shows how to set up remark-lint with this rule to enforce fenced code blocks and report lint warnings.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}