{"library":"prettier-plugin-markdown-html","title":"prettier-plugin-markdown-html","description":"A Prettier plugin that formats raw HTML fragments inside Markdown files (e.g., README.md), including those split by Markdown syntax. Version 1.4.0, stable, actively maintained. Released under MIT, ships TypeScript types. Key differentiators: respects Prettier's built-in HTML options, has no additional dependencies, and offers fragment-specific options like htmlFragmentPrintWidth and htmlFragmentSingleAttributePerLine that override global Prettier settings without affecting code blocks.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-markdown-html"],"cli":null},"imports":["Add 'prettier-plugin-markdown-html' to plugins array in Prettier config."],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// .prettierrc\n{\n  \"plugins\": [\"prettier-plugin-markdown-html\"],\n  \"htmlFragmentPrintWidth\": 80,\n  \"htmlFragmentSingleAttributePerLine\": false,\n  \"htmlFragmentWhitespaceSensitivity\": \"css\"\n}\n\n// Example input.md:\n// # Title\n// <div   class=\"container\"   ><p>Hello</p></div>\n\n// Run: npx prettier --write input.md\n// Output:\n// # Title\n// <div class=\"container\">\n//   <p>Hello</p>\n// </div>","lang":"javascript","description":"Minimal Prettier config enabling the plugin with custom fragment options, plus example input/output showing HTML formatting in Markdown.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}