Permalink
Browse files

Clean up markdown support

  • Loading branch information...
1 parent 6576ff1 commit f7d19c3326eb0e2e41ae0c3d0434b6af1ce568cb @jroper jroper committed Apr 10, 2013
Showing with 5 additions and 7 deletions.
  1. +5 −7 framework/src/sbt-plugin/src/main/scala/play/markdown/MarkdownSupport.scala
@@ -1,16 +1,14 @@
package play.markdown
-import java.io.File
-import org.pegdown.plugins.{PegDownPlugins, ToHtmlSerializerPlugin}
-import org.pegdown.ast.{VerbatimNode, Visitor, Node}
-import org.pegdown.Printer
+import java.io.{IOException, File}
+import org.pegdown.plugins._
+import org.pegdown.ast._
+import org.pegdown._
import scalax.file.Path
import java.util
object MarkdownSupport {
def markdownToHtml(markdown: String, pagePath: String, root: File): String = {
- import org.pegdown._
- import org.pegdown.ast._
val link:(String => (String, String)) = _ match {
case link if link.contains("|") => {
@@ -67,7 +65,7 @@ object MarkdownSupport {
}
if (!sourceFile.exists()) {
- throw new IllegalArgumentException("Could not find source file: " + sourceFile)
+ throw new IOException("Could not find source file: " + sourceFile)
}
// Find the code segment

0 comments on commit f7d19c3

Please sign in to comment.