File tree 2 files changed +27
-0
lines changed
2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ lib('kotlin.KtLintStep') +'{{yes}} | {{yes}}
64
64
lib('kotlin.KtfmtStep') +'{{yes}} | {{yes}} | {{no}} | {{no}} |',
65
65
lib('kotlin.DiktatStep') +'{{yes}} | {{yes}} | {{no}} | {{no}} |',
66
66
lib('markdown.FreshMarkStep') +'{{yes}} | {{no}} | {{no}} | {{no}} |',
67
+ lib('markdown.FlexmarkStep') +'{{no}} | {{yes}} | {{no}} | {{no}} |',
67
68
lib('npm.PrettierFormatterStep') +'{{yes}} | {{yes}} | {{no}} | {{no}} |',
68
69
lib('npm.TsFmtFormatterStep') +'{{yes}} | {{yes}} | {{no}} | {{no}} |',
69
70
lib('pom.SortPomStepStep') +'{{no}} | {{yes}} | {{no}} | {{no}} |',
@@ -103,6 +104,7 @@ extra('wtp.EclipseWtpFormatterStep') +'{{yes}} | {{yes}}
103
104
| [ ` kotlin.KtfmtStep ` ] ( lib/src/main/java/com/diffplug/spotless/kotlin/KtfmtStep.java ) | :+1 : | :+1 : | :white_large_square : | :white_large_square : |
104
105
| [ ` kotlin.DiktatStep ` ] ( lib/src/main/java/com/diffplug/spotless/kotlin/DiktatStep.java ) | :+1 : | :+1 : | :white_large_square : | :white_large_square : |
105
106
| [ ` markdown.FreshMarkStep ` ] ( lib/src/main/java/com/diffplug/spotless/markdown/FreshMarkStep.java ) | :+1 : | :white_large_square : | :white_large_square : | :white_large_square : |
107
+ | [ ` markdown.FlexmarkStep ` ] ( lib/src/main/java/com/diffplug/spotless/markdown/FlexmarkStep.java ) | :white_large_square : | :+1 : | :white_large_square : | :white_large_square : |
106
108
| [ ` npm.PrettierFormatterStep ` ] ( lib/src/main/java/com/diffplug/spotless/npm/PrettierFormatterStep.java ) | :+1 : | :+1 : | :white_large_square : | :white_large_square : |
107
109
| [ ` npm.TsFmtFormatterStep ` ] ( lib/src/main/java/com/diffplug/spotless/npm/TsFmtFormatterStep.java ) | :+1 : | :+1 : | :white_large_square : | :white_large_square : |
108
110
| [ ` pom.SortPomStepStep ` ] ( lib/src/main/java/com/diffplug/spotless/pom/SortPomStepStep.java ) | :white_large_square : | :+1 : | :white_large_square : | :white_large_square : |
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ user@machine repo % mvn spotless:check
56
56
- [ Antlr4] ( #antlr4 ) ([ antlr4formatter] ( #antlr4formatter ) )
57
57
- [ Sql] ( #sql ) ([ dbeaver] ( #dbeaver ) )
58
58
- [ Maven Pom] ( #maven-pom ) ([ sortPom] ( #sortpom ) )
59
+ - [ Markdown] ( #markdown ) ([ flexmark] ( #flexmark ) )
59
60
- [ Typescript] ( #typescript ) ([ tsfmt] ( #tsfmt ) , [ prettier] ( #prettier ) )
60
61
- Multiple languages
61
62
- [ Prettier] ( #prettier ) ([ plugins] ( #prettier-plugins ) , [ npm detection] ( #npm-detection ) , [ ` .npmrc ` detection] ( #npmrc-detection ) )
@@ -585,6 +586,30 @@ All configuration settings are optional, they are described in detail [here](htt
585
586
</sortPom >
586
587
```
587
588
589
+ ## Markdown
590
+
591
+ [ code] ( https://github.com/diffplug/spotless/blob/main/plugin-maven/src/main/java/com/diffplug/spotless/maven/markdown/Markdown.java ) . [ available steps] ( https://github.com/diffplug/spotless/tree/main/plugin-maven/src/main/java/com/diffplug/spotless/maven/markdown ) .
592
+
593
+ ``` xml
594
+ <configuration >
595
+ <markdown >
596
+ <!-- These are the defaults, you can override if you want -->
597
+ <includes >
598
+ <include >*.md</include >
599
+ <include >**/*.md</include >
600
+ </includes >
601
+
602
+ <flexmark /> <!-- has its own section below -->
603
+ </markdown >
604
+ </configuration >
605
+ ```
606
+
607
+ ### Flexmark
608
+
609
+ [ homepage] ( https://github.com/vsch/flexmark-java ) . [ code] ( https://github.com/diffplug/spotless/blob/main/plugin-maven/src/main/java/com/diffplug/spotless/maven/markdown/Flexmark.java ) .
610
+
611
+ None of the available options can be configured yet. Currently it uses only the default options together with ` COMMONMARK ` as ` FORMATTER_EMULATION_PROFILE ` . All options are described in detail [ here] ( https://github.com/vsch/flexmark-java/wiki/Markdown-Formatter#options ) .
612
+
588
613
<a name =" applying-to-typescript-source " ></a >
589
614
590
615
## Typescript
You can’t perform that action at this time.
0 commit comments