Sanitize in markdown

This commit is contained in:
Naoki Takezoe
2015-09-29 01:20:10 +09:00
parent 6d69a52292
commit d07624bdc1
2 changed files with 2 additions and 1 deletions

View File

@@ -51,7 +51,7 @@ object MyBuild extends Build {
"org.json4s" %% "json4s-jackson" % "3.2.11",
"jp.sf.amateras" %% "scalatra-forms" % "0.1.0",
"commons-io" % "commons-io" % "2.4",
"io.github.gitbucket" % "markedj" % "1.0.2",
"io.github.gitbucket" % "markedj" % "1.0.3",
"org.apache.commons" % "commons-compress" % "1.9",
"org.apache.commons" % "commons-email" % "1.3.3",
"org.apache.httpcomponents" % "httpclient" % "4.3.6",

View File

@@ -42,6 +42,7 @@ object Markdown {
} else s
val options = new Options()
options.setSanitize(true)
val renderer = new GitBucketMarkedRenderer(options, repository, enableWikiLink, enableRefsLink, enableAnchor, enableTaskList, hasWritePermission, pages)
Marked.marked(source, options, renderer)
}