Awesome Open Source
Awesome Open Source

Build Status PyPI version


Mdformat plugin to format shell code blocks


mdformat-shfmt is an mdformat plugin that makes mdformat format shell code blocks embedded in Markdown with shfmt. The plugin invokes shfmt in a subprocess so having either shfmt or Docker installed is a requirement.


  1. Install either shfmt or Docker
  2. Install mdformat-shfmt
    pip install mdformat-shfmt




The Docker fallback is only tested on Linux. If you experience issues with it on Windows or macOS, please install shfmt.

Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Python (822,298
Markdown (28,324
Bash (18,790
Mdformat (10
Shfmt (9