{"id":16728771,"url":"https://github.com/hukkin/mdformat-beautysh","last_synced_at":"2026-03-13T16:34:26.662Z","repository":{"id":39887320,"uuid":"297190687","full_name":"hukkin/mdformat-beautysh","owner":"hukkin","description":"Mdformat plugin to beautify Bash scripts","archived":false,"fork":false,"pushed_at":"2025-10-31T21:12:35.000Z","size":32,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-31T23:21:06.417Z","etag":null,"topics":["bash","beautysh","commonmark","markdown","mdformat","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/hukkin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-21T00:40:17.000Z","updated_at":"2025-10-31T21:12:39.000Z","dependencies_parsed_at":"2022-09-12T00:12:12.710Z","dependency_job_id":null,"html_url":"https://github.com/hukkin/mdformat-beautysh","commit_stats":null,"previous_names":["hukkinj1/mdformat-beautysh"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hukkin/mdformat-beautysh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hukkin%2Fmdformat-beautysh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hukkin%2Fmdformat-beautysh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hukkin%2Fmdformat-beautysh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hukkin%2Fmdformat-beautysh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hukkin","download_url":"https://codeload.github.com/hukkin/mdformat-beautysh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hukkin%2Fmdformat-beautysh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30471103,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T11:00:43.441Z","status":"ssl_error","status_checked_at":"2026-03-13T11:00:23.173Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bash","beautysh","commonmark","markdown","mdformat","python"],"created_at":"2024-10-12T23:11:39.404Z","updated_at":"2026-03-13T16:34:26.647Z","avatar_url":"https://github.com/hukkin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://github.com/hukkin/mdformat-beautysh/actions/workflows/tests.yml/badge.svg?branch=master)](\u003chttps://github.com/hukkin/mdformat-beautysh/actions?query=workflow%3ATests+branch%3Amaster+event%3Apush\u003e)\n[![PyPI version](https://badge.fury.io/py/mdformat-beautysh.svg)](\u003chttps://pypi.org/project/mdformat-beautysh\u003e)\n\n# mdformat-beautysh\n\n\u003e Mdformat plugin to beautify Bash scripts\n\n## Description\n\nmdformat-beautysh is an [mdformat](\u003chttps://github.com/executablebooks/mdformat\u003e) plugin\nthat makes mdformat format Bash scripts with [Beautysh](\u003chttps://github.com/lovesegfault/beautysh\u003e).\nFenced code blocks labeled as either `sh` or `bash` are formatted.\n\n## Usage\n\nInstall with:\n\n```bash\npip install mdformat-beautysh\n```\n\nWhen using mdformat on the command line, Beautysh formatting will be automatically enabled after install.\n\nWhen using mdformat Python API, code formatting for Bash scripts will have to be enabled explicitly:\n\n````python\nimport mdformat\n\n\nunformatted = \"\"\"```bash\nfunction bad_func()\n {\necho \"test\"\n}\n```\n\"\"\"\n\nformatted = mdformat.text(unformatted, codeformatters={\"bash\", \"sh\"})\n\nassert formatted == \"\"\"```bash\nfunction bad_func()\n{\n    echo \"test\"\n}\n```\n\"\"\"\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhukkin%2Fmdformat-beautysh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhukkin%2Fmdformat-beautysh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhukkin%2Fmdformat-beautysh/lists"}