Skip to content

Commit f9c8c3f

Browse files
committed
feat: Add comrak formatter
1 parent b084b2c commit f9c8c3f

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
@@ -359,6 +359,7 @@ use nix
359359

360360
### Markdown
361361

362+
- [comrak](https://github.com/kivikakk/comrak)
362363
- [markdownlint](https://github.com/DavidAnson/markdownlint)
363364
- [mdformat](https://github.com/hukkin/mdformat)
364365
- [mdl](https://github.com/markdownlint/markdownlint/)

modules/hooks.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2464,6 +2464,13 @@ in
24642464
entry = "${hooks.commitizen.package}/bin/cz check --allow-abort --commit-msg-file";
24652465
stages = [ "commit-msg" ];
24662466
};
2467+
comrak = {
2468+
name = "comrak";
2469+
description = "A 100% CommonMark-compatible GitHub Flavored Markdown formatter";
2470+
package = tools.comrak;
2471+
entry = "${lib.getExe hooks.comrak.package} --inplace";
2472+
types = [ "markdown" ];
2473+
};
24672474
conform = {
24682475
name = "conform enforce";
24692476
description = "Policy enforcement for commits.";

nix/tools.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
, cljfmt
1818
, cmake-format
1919
, commitizen
20+
, comrak
2021
, conform
2122
, convco
2223
, crystal
@@ -121,6 +122,7 @@ in
121122
clippy
122123
cljfmt
123124
cmake-format
125+
comrak
124126
conform
125127
convco
126128
crystal

0 commit comments

Comments
 (0)