{"library":"prettier-plugin-mdc","title":"Prettier Plugin for MDC Syntax","description":"A Prettier plugin for formatting MDC (Markdown Components) syntax, as used in Nuxt Content. Current stable version is 0.2.1, released with bug fixes for extra newlines after frontmatter and fallback to mdast embed logic. Requires Prettier >=3.6.0. Ships TypeScript types. Differentiators: supports YAML front matter in components, nested components, GFM, and math syntax. Plugin must be added to Prettier config with the 'mdc' parser explicitly set via overrides. Works with .mdc and .md files.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-mdc"],"cli":null},"imports":["plugins: ['prettier-plugin-mdc']","parser: 'mdc'","import type { Options, Plugin } from 'prettier'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// .prettierrc or prettier.config.js\n{\n  \"plugins\": [\"prettier-plugin-mdc\"],\n  \"overrides\": [\n    {\n      \"files\": [\"*.md\", \"*.mdc\"],\n      \"options\": {\n        \"parser\": \"mdc\"\n      }\n    }\n  ]\n}\n\n// CLI: prettier --write \"**/*.mdc\" \"**/*.md\"\n// Example MDC file (before formatting):\n// ::component{prop=value}\n// content\n// ::\n// After formatting: proper indentation and spacing","lang":"typescript","description":"Shows how to configure Prettier with the MDC plugin, including required overrides for parser, and example CLI usage.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}