{"library":"prettier-plugin-marko","title":"prettier-plugin-marko","description":"Prettier plugin for formatting Marko template files. Current stable version is 4.0.9, released February 2026. This plugin is maintained by the Marko team and is the official formatter for Marko files. It supports both HTML-like and concise syntax, auto-detecting the syntax used. It integrates with Prettier's CLI and editor plugins. Breaking change in v4.0.0: text adjacent to tags now prints on the same line when possible. Requires prettier v3 or later; for prettier@2, use version 2.x. Ships TypeScript types and has active patch releases.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-marko"],"cli":{"name":"prettier","version":null}},"imports":["// In .prettierrc: { \"plugins\": [\"prettier-plugin-marko\"] }","npx prettier --write \"**/*.marko\" --plugin=prettier-plugin-marko","// .prettierrc\n{ \"plugins\": [\"prettier-plugin-marko\"] }"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Install dependencies\nnpm install --save-dev prettier prettier-plugin-marko\n\n// Create .prettierrc\ncat << EOF > .prettierrc\n{\n  \"plugins\": [\"prettier-plugin-marko\"],\n  \"markoSyntax\": \"auto\"\n}\nEOF\n\n// Create a sample Marko file\ncat << EOF > example.marko\n<div>\n    <p>  Hello World  </p>\n</div>\nEOF\n\n// Format the file\nnpx prettier --write example.marko","lang":"typescript","description":"Shows minimal setup: install packages, configure Prettier, create a Marko file, and format it.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}