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 @@ -1831,6 +1831,25 @@ class Test {}
doFormatTest(input, expected);
}

@Test
public void markdownLinkWrapping() {
assume().that(MARKDOWN_JAVADOC_SUPPORTED).isTrue();
String input =
"""
/// enough text to cause the following link to need to be wrapped [foo](http://very.long/url/that/will/need/to/be/wrapped)
class Test {}
""";
// It would be wrong to wrap between the ] and the (, and fortunately we don't.
// https://spec.commonmark.org/0.31.2/#example-511
String expected =
"""
/// enough text to cause the following link to need to be wrapped
/// [foo](http://very.long/url/that/will/need/to/be/wrapped)
class Test {}
""";
doFormatTest(input, expected);
}

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