Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moorereason/mdfmt
Like gofmt, but for Markdown with front matter.
https://github.com/moorereason/mdfmt
Last synced: 11 days ago
JSON representation
Like gofmt, but for Markdown with front matter.
- Host: GitHub
- URL: https://github.com/moorereason/mdfmt
- Owner: moorereason
- License: mit
- Created: 2015-12-14T04:08:35.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-23T15:23:06.000Z (almost 6 years ago)
- Last Synced: 2024-10-13T19:50:57.369Z (26 days ago)
- Language: Go
- Size: 9.77 KB
- Stars: 65
- Watchers: 6
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - moorereason/mdfmt - Like gofmt, but for Markdown with front matter. (others)
README
mdfmt
=====Like `gofmt`, but for Markdown with front matter.
`mdfmt` is a fork of [markdownfmt](https://github.com/shurcooL/markdownfmt) that simply adds support for TOML, YAML, and JSON front matter.
Usage
-----```
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
```Acknowledgements
----------------- [markdownfmt](https://github.com/shurcooL/markdownfmt) for the actual markdown formatting.
- [Hugo](https://gohugo.io) for front matter parsing.
- [Go Authors](https://golang.org) for writing `gofmt`.License
-------Released under the MIT License. See LICENSE file for details.