Bump markedj to 1.0.1

This commit is contained in:
Naoki Takezoe
2015-09-20 14:39:20 +09:00
parent 1ea1e74a0c
commit a0f684cfdf
2 changed files with 1 additions and 51 deletions

View File

@@ -51,8 +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",
// "org.pegdown" % "pegdown" % "1.5.0",
"io.github.gitbucket" % "markedj" % "1.0.1-SNAPSHOT",
"io.github.gitbucket" % "markedj" % "1.0.1",
"org.apache.commons" % "commons-compress" % "1.9",
"org.apache.commons" % "commons-email" % "1.3.3",
"org.apache.httpcomponents" % "httpclient" % "4.3.6",

View File

@@ -117,12 +117,6 @@ class GitBucketMarkedRenderer(options: Options, repository: RepositoryService.Re
}
//class GitBucketLinkRender(
// context: Context,
// repository: RepositoryService.RepositoryInfo,
// enableWikiLink: Boolean,
// pages: List[String]) extends LinkRenderer with WikiService {
//
//class GitBucketHtmlSerializer(
// markdown: String,
// repository: RepositoryService.RepositoryInfo,
@@ -146,10 +140,6 @@ class GitBucketMarkedRenderer(options: Options, repository: RepositoryService.Re
// printer.print('>').print(rendering.text).print("</a>")
// }
//
// private def printAttribute(name: String, value: String): Unit = {
// printer.print(' ').print(name).print('=').print('"').print(value).print('"')
// }
//
// private def printHeaderTag(node: HeaderNode): Unit = {
// val tag = s"h${node.getLevel}"
// val child = node.getChildren.asScala.headOption
@@ -171,19 +161,6 @@ class GitBucketMarkedRenderer(options: Options, repository: RepositoryService.Re
// printer.print(s"</$tag>")
// }
//
// private def extractText(node: Node): String = {
// val sb = new StringBuilder()
// node.getChildren.asScala.map {
// case x: TextNode => sb.append(x.getText)
// case x: Node => sb.append(extractText(x))
// }
// sb.toString()
// }
//
// override def visit(node: HeaderNode): Unit = {
// printHeaderTag(node)
// }
//
// override def visit(node: TextNode): Unit = {
// // convert commit id and username to link.
// val t = if(enableRefsLink) convertRefsLinks(node.getText, repository, "issue:") else node.getText
@@ -231,32 +208,6 @@ class GitBucketMarkedRenderer(options: Options, repository: RepositoryService.Re
// printTag(node, "li")
// }
// }
//
// override def visit(node: ExpLinkNode) {
// printLink(linkRenderer.render(node, printLinkChildrenToString(node)))
// }
//
// def printLinkChildrenToString(node: SuperNode) = {
// val priorPrinter = printer
// printer = new Printer()
// visitLinkChildren(node)
// val result = printer.getString()
// printer = priorPrinter
// result
// }
//
// def visitLinkChildren(node: SuperNode) {
// import scala.collection.JavaConversions._
// node.getChildren.foreach(child => child match {
// case node: ExpImageNode => visitLinkChild(node)
// case node: SuperNode => visitLinkChildren(node)
// case _ => child.accept(this)
// })
// }
//
// def visitLinkChild(node: ExpImageNode) {
// printer.print("<img src=\"").print(fixUrl(node.url, true)).print("\" alt=\"").printEncoded(printChildrenToString(node)).print("\"/>")
// }
//}
object GitBucketHtmlSerializer {