Skip to content

Commit e52e75e

Browse files
committed
languages/markdown: add mdformat
1 parent bd265fe commit e52e75e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/manual/release-notes/rl-0.9.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@
165165
- Added [Selenen](https://github.com/kampfkarren/selene) for more diagnostics in
166166
`languages.lua`.
167167
168+
- Added [`mdformat`](https://mdformat.rtfd.io/) support to `languages.python`.
169+
168170
- Added XML syntax highlighting, LSP support and formatting
169171
170172
- Added [tera](https://keats.github.io/tera/) language support (syntax

modules/plugins/languages/markdown.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
...
66
}: let
77
inherit (builtins) attrNames;
8-
inherit (lib.meta) getExe;
8+
inherit (lib.meta) getExe getExe';
99
inherit (lib.modules) mkIf mkMerge;
1010
inherit (lib.options) mkEnableOption mkOption;
1111
inherit (lib.types) bool enum listOf str nullOr;
@@ -55,6 +55,14 @@
5555
prettierd = {
5656
command = getExe pkgs.prettierd;
5757
};
58+
mdformat = {
59+
command = getExe' (pkgs.python313Packages.python.withPackages (p:
60+
with p; [
61+
mdformat
62+
mdformat-gfm
63+
mdformat-frontmatter
64+
])) "mdformat";
65+
};
5866
};
5967
defaultDiagnosticsProvider = ["markdownlint-cli2"];
6068
diagnosticsProviders = {

0 commit comments

Comments
 (0)