summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2015-09-18 08:19:36 -0400
committerJames Moger <james.moger@gitblit.com>2015-09-18 08:19:36 -0400
commit2694044566a28eff4dfe1ec4af7a946d28a78791 (patch)
tree645be3badd0c9c1689d3426c3314bc4102c99ef5 /src/main/java
parent60110f769bb442494f6472d5ff3e39d596bf4130 (diff)
downloadgitblit-2694044566a28eff4dfe1ec4af7a946d28a78791.tar.gz
gitblit-2694044566a28eff4dfe1ec4af7a946d28a78791.zip
Update to Pegdown 1.5.0
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/gitblit/utils/MarkdownUtils.java3
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 2ebfdb26..e0c9dd4e 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.ANCHORLINKS;
import static org.pegdown.Extensions.SMARTYPANTS;
import java.io.IOException;
@@ -76,7 +77,7 @@ public class MarkdownUtils {
*/
public static String transformMarkdown(String markdown, LinkRenderer linkRenderer) {
try {
- PegDownProcessor pd = new PegDownProcessor(ALL & ~SMARTYPANTS);
+ PegDownProcessor pd = new PegDownProcessor(ALL & ~SMARTYPANTS & ~ANCHORLINKS);
RootNode astRoot = pd.parseMarkdown(markdown.toCharArray());
return new WorkaroundHtmlSerializer(linkRenderer == null ? new LinkRenderer() : linkRenderer).toHtml(astRoot);
} catch (ParsingTimeoutException e) {