diff options
author | James Moger <james.moger@gitblit.com> | 2013-10-25 17:55:49 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-10-25 18:32:24 -0400 |
commit | ba297061e7f5e1f447435d09fd121be0008cee8e (patch) | |
tree | f9d5dd64a1a07562b6f575f638717056b0154342 /src/main/java | |
parent | 6c4be170559efa112bb92cd1676543e86850e976 (diff) | |
download | gitblit-ba297061e7f5e1f447435d09fd121be0008cee8e.tar.gz gitblit-ba297061e7f5e1f447435d09fd121be0008cee8e.zip |
Disable the SMARTYPANTS Markdown extension
Change-Id: I3b1c43186d88a30238213983dd702601eb3a6172
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/gitblit/utils/MarkdownUtils.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/utils/MarkdownUtils.java b/src/main/java/com/gitblit/utils/MarkdownUtils.java index 1595f654..11a5e340 100644 --- a/src/main/java/com/gitblit/utils/MarkdownUtils.java +++ b/src/main/java/com/gitblit/utils/MarkdownUtils.java @@ -16,6 +16,7 @@ package com.gitblit.utils;
import static org.pegdown.Extensions.ALL;
+import static org.pegdown.Extensions.SMARTYPANTS;
import java.io.IOException;
import java.io.Reader;
@@ -67,7 +68,7 @@ public class MarkdownUtils { * @throws java.text.ParseException
*/
public static String transformMarkdown(String markdown, LinkRenderer linkRenderer) {
- PegDownProcessor pd = new PegDownProcessor(ALL);
+ PegDownProcessor pd = new PegDownProcessor(ALL & ~SMARTYPANTS);
String html = pd.markdownToHtml(markdown, linkRenderer == null ? new LinkRenderer() : linkRenderer);
return html;
}
|