Mdformat plugin to gofmt Go code blocks
mdformat-gofmt is an mdformat plugin that makes mdformat format Go code blocks with gofmt. The plugin invokes gofmt in a subprocess so having Go installed is a requirement.
- Install Go
- Install mdformat-gofmt
pip install mdformat-gofmt
mdformat YOUR_MARKDOWN_FILE.md