Merge pull request #192 from xuwei-k/issue191

add HARDWRAPS option
This commit is contained in:
Naoki Takezoe
2013-11-09 09:17:26 -08:00

View File

@@ -23,7 +23,7 @@ object Markdown {
} else markdown
val rootNode = new PegDownProcessor(
Extensions.AUTOLINKS | Extensions.WIKILINKS | Extensions.FENCED_CODE_BLOCKS | Extensions.TABLES
Extensions.AUTOLINKS | Extensions.WIKILINKS | Extensions.FENCED_CODE_BLOCKS | Extensions.TABLES | Extensions.HARDWRAPS
).parseMarkdown(source.toCharArray)
new GitBucketHtmlSerializer(markdown, repository, enableWikiLink, enableRefsLink).toHtml(rootNode)