Skip to content

Commit 302af50

Browse files
authored
Merge pull request #626 from benjamb/comrak
feat: Add comrak formatter
2 parents 2ebe80e + f9c8c3f commit 302af50

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
@@ -2545,6 +2545,13 @@ in
25452545
entry = "${hooks.commitizen.package}/bin/cz check --allow-abort --commit-msg-file";
25462546
stages = [ "commit-msg" ];
25472547
};
2548+
comrak = {
2549+
name = "comrak";
2550+
description = "A 100% CommonMark-compatible GitHub Flavored Markdown formatter";
2551+
package = tools.comrak;
2552+
entry = "${lib.getExe hooks.comrak.package} --inplace";
2553+
types = [ "markdown" ];
2554+
};
25482555
conform = {
25492556
name = "conform enforce";
25502557
description = "Policy enforcement for commits.";

nix/tools.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
, cljfmt
1919
, cmake-format
2020
, commitizen
21+
, comrak
2122
, conform
2223
, convco
2324
, crystal
@@ -125,6 +126,7 @@ in
125126
clippy
126127
cljfmt
127128
cmake-format
129+
comrak
128130
conform
129131
convco
130132
crystal

0 commit comments

Comments
 (0)