Mdformat plugin to beautify Bash scripts
Project description
mdformat-beautysh
Mdformat plugin to beautify Bash scripts
Description
mdformat-beautysh is an mdformat plugin that makes mdformat format Bash scripts with Beautysh.
Usage
Install with:
pip install mdformat-beautysh
When using mdformat on the command line, Beautysh formatting will be automatically enabled after install.
When using mdformat Python API, code formatting for Bash scripts will have to be enabled explicitly:
import mdformat
unformatted = """```bash
function bad_func()
{
echo "test"
}
```
"""
formatted = mdformat.text(unformatted, codeformatters={"bash", "sh"})
assert formatted == """```bash
function bad_func()
{
echo "test"
}
```
"""
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mdformat_beautysh-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23e52dc93ce4cdee12033766a6146f656c72095f74bc80a2bdfde1974a50ee72 |
|
MD5 | 637b9e862846c819f96c840d3777618c |
|
BLAKE2b-256 | dd0579f8253b4206e7bc00d7ba201c32b0c7668d03c142dacf37d981dfb225df |