gofmt, but for Markdown.
markdownfmt works with pure Markdown files. If you want to use it with Markdown files that have front matter, consider one of alternatives that supports that.
go get -u github.com/shurcooL/markdownfmt
$GOPATH/bin to your
$PATH or copy
$GOPATH/bin/markdownfmt to your
usage: markdownfmt [flags] [path ...] -d=false: display diffs instead of rewriting files -l=false: list files whose formatting differs from markdownfmt's -w=false: write result to (source) file instead of stdout
- markdown-format for Atom.
- vim-markdownfmt for Vim.
- Built-in in Conception.
- Add a plugin for your favorite editor here?
mdfmt- Fork of
markdownfmtthat adds front matter support.
tidy-markdown- Project with similar goals, but written in JS and based on a slightly different styleguide.