aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-markdown/src
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-markdown/src')
-rw-r--r--sonar-markdown/src/main/java/org/sonar/markdown/HtmlCodeChannel.java6
-rw-r--r--sonar-markdown/src/test/java/org/sonar/markdown/MarkdownEngineTest.java4
2 files changed, 5 insertions, 5 deletions
diff --git a/sonar-markdown/src/main/java/org/sonar/markdown/HtmlCodeChannel.java b/sonar-markdown/src/main/java/org/sonar/markdown/HtmlCodeChannel.java
index ed2591a0197..82215a62a85 100644
--- a/sonar-markdown/src/main/java/org/sonar/markdown/HtmlCodeChannel.java
+++ b/sonar-markdown/src/main/java/org/sonar/markdown/HtmlCodeChannel.java
@@ -22,14 +22,14 @@ package org.sonar.markdown;
import org.sonar.channel.RegexChannel;
/**
- * Markdown treats double simple quotes ('') as indicators of code. Text wrapped with two '' will be wrapped with an HTML {@literal <code>} tag.
+ * Markdown treats double backtick quote (``) as indicators of code. Text wrapped with two `` will be wrapped with an HTML {@literal <code>} tag.
*
- * E.g., the input ''printf()'' will produce {@literal<code>}printf(){@literal</code>}
+ * E.g., the input ``printf()`` will produce {@literal<code>}printf(){@literal</code>}
*/
class HtmlCodeChannel extends RegexChannel<MarkdownOutput> {
public HtmlCodeChannel() {
- super("''.+?''");
+ super("``.+?``");
}
@Override
diff --git a/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownEngineTest.java b/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownEngineTest.java
index cf4a0f1b726..123c64c9360 100644
--- a/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownEngineTest.java
+++ b/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownEngineTest.java
@@ -44,8 +44,8 @@ public class MarkdownEngineTest {
@Test
public void shouldDecorateCode() {
- assertThat(MarkdownEngine.convertToHtml("This is a ''line of code''"), is("This is a <code>line of code</code>"));
- assertThat(MarkdownEngine.convertToHtml("This is not a ''line of code"), is("This is not a ''line of code"));
+ assertThat(MarkdownEngine.convertToHtml("This is a ``line of code``"), is("This is a <code>line of code</code>"));
+ assertThat(MarkdownEngine.convertToHtml("This is not a ``line of code"), is("This is not a ``line of code"));
}
@Test