{"library":"remark-lint-media-style","title":"remark-lint-media-style","description":"Remark-lint rule to enforce consistent style for image and link URLs, either references (defined elsewhere) or resources (inline URLs). Current stable version is 1.0.1, part of the remark-lint monorepo. It supports three modes: 'consistent' (auto-detect first usage), 'reference', 'resource', and 'reference-reuse' (allow resources if used once). Only ESM, requires Node.js 16+. TypeScript types exported.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-media-style"],"cli":null},"imports":["import remarkLintMediaStyle from 'remark-lint-media-style'","import type {Options} from 'remark-lint-media-style'","import type {Style} from 'remark-lint-media-style'"],"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 remarkLintMediaStyle from 'remark-lint-media-style';\nimport {read} from 'to-vfile';\nimport {reporter} from 'vfile-reporter';\n\nconst file = await read('example.md');\nawait unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintMediaStyle, {style: 'resource'})\n  .use(remarkStringify)\n  .process(file);\nconsole.error(reporter(file));","lang":"typescript","description":"Shows ESM usage with unified, remark-lint, and the media-style rule configured to prefer resource-style URLs.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}