Skip to content

Commit d586c3b

Browse files
authored
feat: add support for rumdl fmt (#840)
* feat(tools): add support for rumdl fmt * refactor: format stdin
1 parent 4b713b9 commit d586c3b

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ You can view this list in vim with `:help conform-formatters`
366366
- [ruff_format](https://docs.astral.sh/ruff/) - An extremely fast Python linter, written in Rust. Formatter subcommand.
367367
- [ruff_organize_imports](https://docs.astral.sh/ruff/) - An extremely fast Python linter, written in Rust. Organize imports.
368368
- [rufo](https://github.com/ruby-formatter/rufo) - Rufo is an opinionated ruby formatter.
369+
- [rumdl](https://github.com/rvben/rumdl) - Markdown Linter and Formatter written in Rust.
369370
- [runic](https://github.com/fredrikekre/Runic.jl) - Julia code formatter.
370371
- [rustfmt](https://github.com/rust-lang/rustfmt) - A tool for formatting rust code according to style guidelines.
371372
- [rustywind](https://github.com/avencera/rustywind) - A tool for formatting Tailwind CSS classes.

doc/conform.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ FORMATTERS *conform-formatter
517517
`ruff_organize_imports` - An extremely fast Python linter, written in Rust.
518518
Organize imports.
519519
`rufo` - Rufo is an opinionated ruby formatter.
520+
`rumdl` - Markdown Linter and Formatter written in Rust.
520521
`runic` - Julia code formatter.
521522
`rustfmt` - A tool for formatting rust code according to style guidelines.
522523
`rustywind` - A tool for formatting Tailwind CSS classes.

lua/conform/formatters/rumdl.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---@type conform.FileFormatterConfig
2+
return {
3+
meta = {
4+
url = "https://github.com/rvben/rumdl",
5+
description = "Markdown Linter and Formatter written in Rust.",
6+
},
7+
command = "rumdl",
8+
args = { "fmt", "-" },
9+
stdin = true,
10+
}

0 commit comments

Comments
 (0)