<classpathentry kind="lib" path="ext/lucene-queryparser-4.10.0.jar" sourcepath="ext/src/lucene-queryparser-4.10.0.jar" />
<classpathentry kind="lib" path="ext/lucene-sandbox-4.10.0.jar" sourcepath="ext/src/lucene-sandbox-4.10.0.jar" />
<classpathentry kind="lib" path="ext/jakarta-regexp-1.4.jar" />
- <classpathentry kind="lib" path="ext/pegdown-1.4.2.jar" sourcepath="ext/src/pegdown-1.4.2.jar" />
- <classpathentry kind="lib" path="ext/parboiled-java-1.1.6.jar" sourcepath="ext/src/parboiled-java-1.1.6.jar" />
- <classpathentry kind="lib" path="ext/parboiled-core-1.1.6.jar" sourcepath="ext/src/parboiled-core-1.1.6.jar" />
- <classpathentry kind="lib" path="ext/asm-4.1.jar" sourcepath="ext/src/asm-4.1.jar" />
- <classpathentry kind="lib" path="ext/asm-tree-4.1.jar" sourcepath="ext/src/asm-tree-4.1.jar" />
- <classpathentry kind="lib" path="ext/asm-analysis-4.1.jar" sourcepath="ext/src/asm-analysis-4.1.jar" />
- <classpathentry kind="lib" path="ext/asm-util-4.1.jar" sourcepath="ext/src/asm-util-4.1.jar" />
+ <classpathentry kind="lib" path="ext/pegdown-1.5.0.jar" sourcepath="ext/src/pegdown-1.5.0.jar" />
+ <classpathentry kind="lib" path="ext/parboiled-java-1.1.7.jar" sourcepath="ext/src/parboiled-java-1.1.7.jar" />
+ <classpathentry kind="lib" path="ext/parboiled-core-1.1.7.jar" sourcepath="ext/src/parboiled-core-1.1.7.jar" />
+ <classpathentry kind="lib" path="ext/asm-5.0.3.jar" sourcepath="ext/src/asm-5.0.3.jar" />
+ <classpathentry kind="lib" path="ext/asm-tree-5.0.3.jar" sourcepath="ext/src/asm-tree-5.0.3.jar" />
+ <classpathentry kind="lib" path="ext/asm-analysis-5.0.3.jar" sourcepath="ext/src/asm-analysis-5.0.3.jar" />
+ <classpathentry kind="lib" path="ext/asm-util-5.0.3.jar" sourcepath="ext/src/asm-util-5.0.3.jar" />
<classpathentry kind="lib" path="ext/wikitext-core-1.4.jar" sourcepath="ext/src/wikitext-core-1.4.jar" />
<classpathentry kind="lib" path="ext/twiki-core-1.4.jar" sourcepath="ext/src/twiki-core-1.4.jar" />
<classpathentry kind="lib" path="ext/textile-core-1.4.jar" sourcepath="ext/src/textile-core-1.4.jar" />
</library>
</orderEntry>
<orderEntry type="module-library">
- <library name="pegdown-1.4.2.jar">
+ <library name="pegdown-1.5.0.jar">
<CLASSES>
- <root url="jar://$MODULE_DIR$/ext/pegdown-1.4.2.jar!/" />
+ <root url="jar://$MODULE_DIR$/ext/pegdown-1.5.0.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
- <root url="jar://$MODULE_DIR$/ext/src/pegdown-1.4.2.jar!/" />
+ <root url="jar://$MODULE_DIR$/ext/src/pegdown-1.5.0.jar!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
- <library name="parboiled-java-1.1.6.jar">
+ <library name="parboiled-java-1.1.7.jar">
<CLASSES>
- <root url="jar://$MODULE_DIR$/ext/parboiled-java-1.1.6.jar!/" />
+ <root url="jar://$MODULE_DIR$/ext/parboiled-java-1.1.7.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
- <root url="jar://$MODULE_DIR$/ext/src/parboiled-java-1.1.6.jar!/" />
+ <root url="jar://$MODULE_DIR$/ext/src/parboiled-java-1.1.7.jar!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
- <library name="parboiled-core-1.1.6.jar">
+ <library name="parboiled-core-1.1.7.jar">
<CLASSES>
- <root url="jar://$MODULE_DIR$/ext/parboiled-core-1.1.6.jar!/" />
+ <root url="jar://$MODULE_DIR$/ext/parboiled-core-1.1.7.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
- <root url="jar://$MODULE_DIR$/ext/src/parboiled-core-1.1.6.jar!/" />
+ <root url="jar://$MODULE_DIR$/ext/src/parboiled-core-1.1.7.jar!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
- <library name="asm-4.1.jar">
+ <library name="asm-5.0.3.jar">
<CLASSES>
- <root url="jar://$MODULE_DIR$/ext/asm-4.1.jar!/" />
+ <root url="jar://$MODULE_DIR$/ext/asm-5.0.3.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
- <root url="jar://$MODULE_DIR$/ext/src/asm-4.1.jar!/" />
+ <root url="jar://$MODULE_DIR$/ext/src/asm-5.0.3.jar!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
- <library name="asm-tree-4.1.jar">
+ <library name="asm-tree-5.0.3.jar">
<CLASSES>
- <root url="jar://$MODULE_DIR$/ext/asm-tree-4.1.jar!/" />
+ <root url="jar://$MODULE_DIR$/ext/asm-tree-5.0.3.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
- <root url="jar://$MODULE_DIR$/ext/src/asm-tree-4.1.jar!/" />
+ <root url="jar://$MODULE_DIR$/ext/src/asm-tree-5.0.3.jar!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
- <library name="asm-analysis-4.1.jar">
+ <library name="asm-analysis-5.0.3.jar">
<CLASSES>
- <root url="jar://$MODULE_DIR$/ext/asm-analysis-4.1.jar!/" />
+ <root url="jar://$MODULE_DIR$/ext/asm-analysis-5.0.3.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
- <root url="jar://$MODULE_DIR$/ext/src/asm-analysis-4.1.jar!/" />
+ <root url="jar://$MODULE_DIR$/ext/src/asm-analysis-5.0.3.jar!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
- <library name="asm-util-4.1.jar">
+ <library name="asm-util-5.0.3.jar">
<CLASSES>
- <root url="jar://$MODULE_DIR$/ext/asm-util-4.1.jar!/" />
+ <root url="jar://$MODULE_DIR$/ext/asm-util-5.0.3.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
- <root url="jar://$MODULE_DIR$/ext/src/asm-util-4.1.jar!/" />
+ <root url="jar://$MODULE_DIR$/ext/src/asm-util-5.0.3.jar!/" />
</SOURCES>
</library>
</orderEntry>
package com.gitblit.utils;\r
\r
import static org.pegdown.Extensions.ALL;\r
+import static org.pegdown.Extensions.ANCHORLINKS;\r
import static org.pegdown.Extensions.SMARTYPANTS;\r
\r
import java.io.IOException;\r
*/\r
public static String transformMarkdown(String markdown, LinkRenderer linkRenderer) {\r
try {\r
- PegDownProcessor pd = new PegDownProcessor(ALL & ~SMARTYPANTS);\r
+ PegDownProcessor pd = new PegDownProcessor(ALL & ~SMARTYPANTS & ~ANCHORLINKS);\r
RootNode astRoot = pd.parseMarkdown(markdown.toCharArray());\r
return new WorkaroundHtmlSerializer(linkRenderer == null ? new LinkRenderer() : linkRenderer).toHtml(astRoot);\r
} catch (ParsingTimeoutException e) {\r