{"library":"remark-lint-mdash-style","title":"remark-lint-mdash-style","description":"A remark-lint rule to enforce a consistent style for em dashes (mdash) in Markdown files. Version 1.1.1 is the current stable release, with no fixed release cadence. It offers three style options: '―' (Unicode em dash, default), '-' (single hyphen), and '--' (double hyphen). Unlike general-purpose linters, this package specifically targets mdash usage, a common typographic inconsistency. It is a lightweight plugin for the remark-lint ecosystem, primarily used in Node.js environments for CI or text processing pipelines. The package has no dependencies and is ESM-compatible but requires a CommonJS or ESM project that uses remark-lint.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-mdash-style"],"cli":null},"imports":["import remarkLintMdashStyle from 'remark-lint-mdash-style'",".use(remarkLintMdashStyle, { style: '--' })","import type { Options } from 'remark-lint-mdash-style'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { remark } from 'remark';\nimport remarkLint from 'remark-lint';\nimport remarkLintMdashStyle from 'remark-lint-mdash-style';\n\nconst result = await remark()\n  .use(remarkLint)\n  .use(remarkLintMdashStyle, { style: '--' })\n  .process('Some text - with hyphen instead of dash.');\n\nif (result.messages.length > 0) {\n  console.log(result.messages[0].reason);\n} else {\n  console.log('No lint errors');\n}","lang":"typescript","description":"Shows how to use remark-lint-mdash-style with remark-lint in an ESM environment, including configuration and processing of a Markdown string.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}