Getting Started
Installation
From crates.io (Recommended)
Install panache with Cargo:
cargo install panachePre-built Binaries
Download platform-specific binaries from the releases page:
- Linux: x86_64 and ARM64 (available as
.deb,.rpm, or.tar.gz) - macOS: Intel and Apple Silicon (
.tar.gz) - Windows: x86_64 (
.zip)
Debian/Ubuntu
wget https://github.com/jolars/panache/releases/latest/download/panache_<VERSION>_amd64.deb
sudo dpkg -i panache_*.debFedora/RHEL/openSUSE
wget https://github.com/jolars/panache/releases/latest/download/panache-<VERSION>.x86_64.rpm
sudo rpm -i panache-*.rpmFrom Source
Clone the repository and build:
git clone https://github.com/jolars/panache.git
cd panache
cargo install --path .Verify Installation
Check that panache is installed correctly:
panache --versionBasic Usage
Format a File
Format a Quarto or Markdown document to stdout:
panache format document.qmdFormat a file in place:
panache format --write document.qmdFormat from stdin
Pipe content through panache:
cat document.qmd | panache formatOr use input redirection:
panache format < document.qmdCheck Formatting
Check if a file is already formatted (exits with non-zero code if changes needed):
panache format --check document.qmdThis is useful in CI/CD pipelines:
# Check all Quarto files
find . -name "*.qmd" -exec panache format --check {} \;Configuration
panache looks for configuration files in this order:
- Explicit
--configpath .panache.tomlorpanache.tomlin current/parent directories~/.config/panache/config.toml(XDG config directory)- Built-in defaults
Create a Config File
Create .panache.toml in your project root:
# Basic configuration
flavor = "quarto" # Options: pandoc, quarto, rmarkdown, gfm, commonmark
line_width = 80 # Characters per line
wrap = "reflow" # Options: reflow, preserve
blank_lines = "collapse" # Options: collapse, preserveUse a Custom Config
Specify a config file explicitly:
panache format --config custom.toml document.qmdSee the Configuration guide for all options.
Next Steps
- Configure panache: See Configuration for detailed options
- Set up editor integration: See LSP for Language Server setup
- Learn formatting rules: See Formatting for examples
- Explore CLI options: See CLI Reference for all commands
Getting Help
- GitHub Issues: github.com/jolars/panache/issues
- Discussions: github.com/jolars/panache/discussions