@@ -238,6 +238,7 @@ public static DefaultCodeFormatterOptions getJavaConventionsSettings() {
238238 public boolean comment_new_lines_at_javadoc_boundaries ;
239239 public boolean comment_javadoc_do_not_separate_block_tags ;
240240 public boolean comment_format_javadoc_comment ;
241+ public boolean comment_format_markdown_comment ;
241242 public boolean comment_format_line_comment ;
242243 public boolean comment_format_line_comment_starting_on_first_column ;
243244 public boolean comment_format_block_comment ;
@@ -667,6 +668,7 @@ public Map<String, String> getMap() {
667668 options .put (DefaultCodeFormatterConstants .FORMATTER_COMMENT_FORMAT_HEADER , this .comment_format_header ? DefaultCodeFormatterConstants .TRUE : DefaultCodeFormatterConstants .FALSE );
668669 options .put (DefaultCodeFormatterConstants .FORMATTER_COMMENT_FORMAT_HTML , this .comment_format_html ? DefaultCodeFormatterConstants .TRUE : DefaultCodeFormatterConstants .FALSE );
669670 options .put (DefaultCodeFormatterConstants .FORMATTER_COMMENT_FORMAT_JAVADOC_COMMENT , this .comment_format_javadoc_comment ? DefaultCodeFormatterConstants .TRUE : DefaultCodeFormatterConstants .FALSE );
671+ options .put (DefaultCodeFormatterConstants .FORMATTER_COMMENT_FORMAT_MARKDOWN_COMMENT , this .comment_format_markdown_comment ? DefaultCodeFormatterConstants .TRUE : DefaultCodeFormatterConstants .FALSE );
670672 options .put (DefaultCodeFormatterConstants .FORMATTER_COMMENT_FORMAT_LINE_COMMENT , this .comment_format_line_comment ? DefaultCodeFormatterConstants .TRUE : DefaultCodeFormatterConstants .FALSE );
671673 options .put (DefaultCodeFormatterConstants .FORMATTER_COMMENT_FORMAT_LINE_COMMENT_STARTING_ON_FIRST_COLUMN , this .comment_format_line_comment_starting_on_first_column ? DefaultCodeFormatterConstants .TRUE : DefaultCodeFormatterConstants .FALSE );
672674 options .put (DefaultCodeFormatterConstants .FORMATTER_COMMENT_FORMAT_SOURCE , this .comment_format_source ? DefaultCodeFormatterConstants .TRUE : DefaultCodeFormatterConstants .FALSE );
@@ -1570,6 +1572,10 @@ public void set(Map<String, String> settings) {
15701572 if (commentFormatJavadocCommentOption != null ) {
15711573 this .comment_format_javadoc_comment = DefaultCodeFormatterConstants .TRUE .equals (commentFormatJavadocCommentOption );
15721574 }
1575+ final Object commentFormatMarkdownCommentOption = settings .get (DefaultCodeFormatterConstants .FORMATTER_COMMENT_FORMAT_MARKDOWN_COMMENT );
1576+ if (commentFormatMarkdownCommentOption != null ) {
1577+ this .comment_format_markdown_comment = DefaultCodeFormatterConstants .TRUE .equals (commentFormatMarkdownCommentOption );
1578+ }
15731579 final Object commentFormatBlockCommentOption = settings .get (DefaultCodeFormatterConstants .FORMATTER_COMMENT_FORMAT_BLOCK_COMMENT );
15741580 if (commentFormatBlockCommentOption != null ) {
15751581 this .comment_format_block_comment = DefaultCodeFormatterConstants .TRUE .equals (commentFormatBlockCommentOption );
@@ -3063,6 +3069,7 @@ public void setDefaultSettings() {
30633069 this .comment_clear_blank_lines_in_javadoc_comment = false ;
30643070 this .comment_format_block_comment = true ;
30653071 this .comment_format_javadoc_comment = true ;
3072+ this .comment_format_markdown_comment = true ;
30663073 this .comment_format_line_comment = true ;
30673074 this .comment_format_line_comment_starting_on_first_column = true ;
30683075 this .comment_format_header = false ;
@@ -3468,6 +3475,7 @@ public void setJavaConventionsSettings() {
34683475 this .comment_clear_blank_lines_in_javadoc_comment = false ;
34693476 this .comment_format_block_comment = true ;
34703477 this .comment_format_javadoc_comment = true ;
3478+ this .comment_format_markdown_comment = true ;
34713479 this .comment_format_line_comment = true ;
34723480 this .comment_format_line_comment_starting_on_first_column = false ;
34733481 this .comment_format_header = false ;
0 commit comments