mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-12-29 19:59:55 +01:00
Add Scaladoc
This commit is contained in:
@@ -44,7 +44,6 @@ object Markdown {
|
||||
val renderer = new GitBucketMarkedRenderer(options, repository,
|
||||
enableWikiLink, enableRefsLink, enableAnchor, enableTaskList, hasWritePermission, pages)
|
||||
|
||||
//helpers.decorateHtml(Marked.marked(source, options, renderer), repository)
|
||||
Marked.marked(source, options, renderer)
|
||||
}
|
||||
|
||||
|
||||
@@ -365,6 +365,10 @@ object helpers extends AvatarImageProvider with LinkConverter with RequestCache
|
||||
decorateHtml(HtmlFormat.fill(out).toString, repository)
|
||||
}
|
||||
|
||||
/**
|
||||
* Decorate a given HTML by TextDecorators which are provided by plug-ins.
|
||||
* TextDecorators are applied to only text parts of a given HTML.
|
||||
*/
|
||||
def decorateHtml(html: String, repository: RepositoryInfo)(implicit context: Context): String = {
|
||||
PluginRegistry().getTextDecorators.foldLeft(html){ case (html, decorator) =>
|
||||
val text = new StringBuilder()
|
||||
|
||||
Reference in New Issue
Block a user