Skip to content

Mdformat plugin to gofmt Go code blocks

License

Notifications You must be signed in to change notification settings

hukkin/mdformat-gofmt

Repository files navigation

Build Status PyPI version

mdformat-gofmt

Mdformat plugin to gofmt Go code blocks

Description

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.

Installing

  1. Install Go
  2. Install mdformat-gofmt
    pip install mdformat-gofmt

Usage

mdformat YOUR_MARKDOWN_FILE.md