Skip to content

Commit 532812e

Browse files
sieuwertsChristoffer Pettersson
authored andcommitted
feat: add support for markdownfmt (nvim-lua#511)
Co-authored-by: Christoffer Pettersson <[email protected]>
1 parent 19822b0 commit 532812e

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ You can view this list in vim with `:help conform-formatters`
273273
- [llf](https://repo.or.cz/llf.git) - A LaTeX reformatter / beautifier.
274274
- [lua-format](https://github.com/Koihik/LuaFormatter) - Code formatter for Lua.
275275
- [markdown-toc](https://github.com/jonschlinkert/markdown-toc) - API and CLI for generating a markdown TOC (table of contents) for a README or any markdown files.
276+
- [markdownfmt](https://github.com/shurcooL/markdownfmt) - Like gofmt, but for Markdown.
276277
- [markdownlint](https://github.com/DavidAnson/markdownlint) - A Node.js style checker and lint tool for Markdown/CommonMark files.
277278
- [markdownlint-cli2](https://github.com/DavidAnson/markdownlint-cli2) - A fast, flexible, configuration-based command-line interface for linting Markdown/CommonMark files with the markdownlint library.
278279
- [mdformat](https://github.com/executablebooks/mdformat) - An opinionated Markdown formatter.

doc/conform.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ FORMATTERS *conform-formatter
378378
`lua-format` - Code formatter for Lua.
379379
`markdown-toc` - API and CLI for generating a markdown TOC (table of contents)
380380
for a README or any markdown files.
381+
`markdownfmt` - Like gofmt, but for Markdown.
381382
`markdownlint` - A Node.js style checker and lint tool for Markdown/CommonMark
382383
files.
383384
`markdownlint-cli2` - A fast, flexible, configuration-based command-line
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---@type conform.FileFormatterConfig
2+
return {
3+
meta = {
4+
url = "https://github.com/shurcooL/markdownfmt",
5+
description = "Like gofmt, but for Markdown.",
6+
},
7+
command = "markdownfmt",
8+
}

0 commit comments

Comments
 (0)