Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1847,6 +1847,43 @@ class Test {}
doFormatTest(input, expected);
}

@Test
public void markdownMoeComments() {
assume().that(MARKDOWN_JAVADOC_SUPPORTED).isTrue();
String input =
"""
/// This is the first line.
///
/// <!-- moe:begin_intracomment_strip -->
/// This is a comment that should be stripped
///
/// ```
/// this is a code block
/// ```
/// <!-- moe:end_intracomment_strip -->
class Test {}
"""
.replace("moe", "MOE");
// TODO(kak): Ideally the extra blank lines would not be inserted after the code block
String expected =
"""
/// This is the first line.
///
/// <!-- moe:begin_intracomment_strip -->
/// This is a comment that should be stripped
///
/// ```
/// this is a code block
/// ```
///
///
/// <!-- moe:end_intracomment_strip -->
class Test {}
"""
.replace("moe", "MOE");
doFormatTest(input, expected);
}

@Test
public void markdownBackslashes() {
assume().that(MARKDOWN_JAVADOC_SUPPORTED).isTrue();
Expand Down