{"id":15138649,"url":"https://github.com/g-plane/markup_fmt","last_synced_at":"2025-05-16T03:02:11.690Z","repository":{"id":204860836,"uuid":"704471893","full_name":"g-plane/markup_fmt","owner":"g-plane","description":"Configurable HTML, Vue, Svelte, Astro, Angular, Jinja, Twig, Nunjucks and Vento formatter with dprint integration.","archived":false,"fork":false,"pushed_at":"2025-05-11T12:28:13.000Z","size":822,"stargazers_count":132,"open_issues_count":10,"forks_count":11,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-11T13:31:00.136Z","etag":null,"topics":["astro","dprint","dprint-plugin","formatter","formatting","html","jinja","jinja2","nunjucks","prettier","svelte","twig","vento","vue"],"latest_commit_sha":null,"homepage":"https://dprint.dev/plugins/markup_fmt/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/g-plane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"g-plane"}},"created_at":"2023-10-13T10:27:16.000Z","updated_at":"2025-05-11T12:28:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab4e16fd-c0fe-4d46-8d44-4a6b1266552d","html_url":"https://github.com/g-plane/markup_fmt","commit_stats":{"total_commits":342,"total_committers":6,"mean_commits":57.0,"dds":"0.032163742690058506","last_synced_commit":"a548a251f832e4307e2371e0c856d93d57682c4d"},"previous_names":["g-plane/markup_fmt"],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-plane%2Fmarkup_fmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-plane%2Fmarkup_fmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-plane%2Fmarkup_fmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-plane%2Fmarkup_fmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/g-plane","download_url":"https://codeload.github.com/g-plane/markup_fmt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253574588,"owners_count":21930023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astro","dprint","dprint-plugin","formatter","formatting","html","jinja","jinja2","nunjucks","prettier","svelte","twig","vento","vue"],"created_at":"2024-09-26T07:43:01.307Z","updated_at":"2025-05-16T03:02:11.676Z","avatar_url":"https://github.com/g-plane.png","language":"Rust","funding_links":["https://github.com/sponsors/g-plane"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\u003cimg src=\"./media/markup_fmt.svg\" width=\"160\"\u003e\u003c/div\u003e\n\u003ch1 align=\"center\"\u003emarkup_fmt\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\nmarkup_fmt is a configurable HTML, Vue, Svelte, Astro, Angular, Jinja, Twig, Nunjucks and Vento formatter.\n\u003c/p\u003e\n\n## Notes for Vue and Svelte Users\n\nThis formatter provides some options such as `vBindStyle`, `vOnStyle` and more for Vue and\n`svelteAttrShorthand` and `svelteDirectiveShorthand` for Svelte.\n\nIt's recommended to enable these options in this formatter and disable the corresponding\nrules in [eslint-plugin-vue](https://eslint.vuejs.org) and [eslint-plugin-svelte](https://sveltejs.github.io/eslint-plugin-svelte) if you used.\nThis will make ESLint faster because less rules will be executed.\n\n## Getting Started\n\n### dprint\n\nWe've provided [dprint](https://dprint.dev/) integration.\n\nThis plugin only formats HTML syntax of your HTML, Vue, Svelte, Astro, Angular, Jinja, Twig, Nunjucks and Vento files.\nYou also need other dprint plugins to format the code in `\u003cscript\u003e` and `\u003cstyle\u003e` tags.\nYou can use [dprint-plugin-typescript](https://github.com/dprint/dprint-plugin-typescript) to\nformat TypeScript/JavaScript code and [Malva](https://github.com/g-plane/malva) to format CSS/SCSS/Sass/Less code.\n\nRun the commands below to add plugins:\n\n```bash\ndprint config add g-plane/markup_fmt\ndprint config add g-plane/malva\ndprint config add typescript\n```\n\nIf you also want to format JSON in `\u003cscript\u003e` tag whose `\"type\"` is `\"importmap\"`, `\"application/json\"`, or `\"application/ld+json\"`,\nyou can add dprint-plugin-json:\n\n```bash\ndprint config add json\n```\n\nOr Biome:\n\n```diff\n- dprint config add typescript\n- dprint config add json\n+ dprint config add biome\n```\n\nAfter adding the dprint plugins, update your `dprint.json` and add configuration:\n\n```jsonc\n{\n  // ...\n  \"plugins\": [\n    // ... other plugins URL\n    \"https://plugins.dprint.dev/g-plane/markup_fmt-v0.20.0.wasm\"\n  ],\n  \"markup\": { // \u003c-- the key name here is \"markup\", not \"markup_fmt\"\n    // config comes here\n  }\n}\n```\n\nYou can also read [dprint CLI documentation](https://dprint.dev/cli/) for using dprint to format files.\n\n### Use as a Rust crate\n\nPlease read the [documentation](https://docs.rs/markup_fmt).\n\n## Configuration\n\nPlease refer to [Configuration](https://markup-fmt.netlify.app/).\n\n## Credit\n\nTests come from:\n\n- [Prettier](https://github.com/prettier/prettier/tree/main/tests/format)\n- [prettier-plugin-svelte](https://github.com/sveltejs/prettier-plugin-svelte)\n- [prettier-plugin-astro](https://github.com/withastro/prettier-plugin-astro)\n\n## License\n\nMIT License\n\nCopyright (c) 2023-present Pig Fang\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg-plane%2Fmarkup_fmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg-plane%2Fmarkup_fmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg-plane%2Fmarkup_fmt/lists"}