diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-05-09 14:39:27 +0200 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-05-09 15:15:53 +0200 |
commit | fb077570bd9103ec4c2a9435a2836a860536a902 (patch) | |
tree | 26c347f66291f1718fbbffd9c962a881b7b66ccb /sonar-markdown/src/test/java/org | |
parent | 2dfa1e9aa50829fd4d912ece7c38fc66787c233c (diff) | |
download | sonarqube-fb077570bd9103ec4c2a9435a2836a860536a902.tar.gz sonarqube-fb077570bd9103ec4c2a9435a2836a860536a902.zip |
SONAR-4681 Add support for documented links
Diffstat (limited to 'sonar-markdown/src/test/java/org')
-rw-r--r-- | sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java b/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java index 0f96cf2a59f..909fda8c539 100644 --- a/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java +++ b/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java @@ -32,6 +32,13 @@ public class MarkdownTest { } @Test + public void shouldDecorateDocumentedLink() { + assertThat(Markdown.convertToHtml("For more details, please [check online documentation](http://docs.codehaus.org/display/SONAR).")) + .isEqualTo("For more details, please <a href=\"http://docs.codehaus.org/display/SONAR\" target=\"_blank\">check online documentation</a>."); + } + + + @Test public void shouldDecorateEndOfLine() { assertThat(Markdown.convertToHtml("1\r2\r\n3\n")).isEqualTo("1<br/>2<br/>3<br/>"); } |