Skip to content

Commit 06da4a0

Browse files
authored
Add mdformat formatter (#47)
1 parent 9df35c9 commit 06da4a0

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
- [ ] [ktlint](https://github.com/pinterest/ktlint)
2828
- [ ] [ktfmt](https://github.com/facebook/ktfmt)
2929
- [x] [latexindent](https://github.com/cmhughes/latexindent.pl)
30+
- [ ] [mdformat](https://github.com/executablebooks/mdformat)
3031
- [ ] [mixformat](https://github.com/elixir-lang/elixir/)
3132
- [ ] [nixfmt](https://github.com/serokell/nixfmt)
3233
- [ ] [ormolu](https://hackage.haskell.org/package/ormolu)

lua/guard-collection/formatter.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ M.latexindent = {
118118
stdin = true,
119119
}
120120

121+
M.mdformat = {
122+
cmd = 'mdformat',
123+
args = { '-' },
124+
stdin = true,
125+
}
126+
121127
M.mixformat = {
122128
cmd = 'mix',
123129
args = { 'format', '-', '--stdin-filename' },

0 commit comments

Comments
 (0)