mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-05-07 20:36:45 +02:00
Sanitize in markdown
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user