Like gofmt
, but for Markdown with front matter.
mdfmt
is a fork of markdownfmt that simply adds support for TOML, YAML, and JSON front matter.
usage: mdfmt [flags] [path ...]
-d display diffs instead of rewriting files
-l list files whose formatting differs from mdfmt's
-w write result to (source) file instead of stdout
- markdownfmt for the actual markdown formatting.
- Hugo for front matter parsing.
- Go Authors for writing
gofmt
.
Released under the MIT License. See LICENSE file for details.