Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
TiarkRompf committed Aug 24, 2014
1 parent 3344655 commit eb6fb7e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/scala/me/grison/scalocco/Scalocco.scala
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ case class Section(doc: String, code: String)
class Markdown {
class MarkdownableString(s: String) {
// *Markdownify* the given text.
def markdown = new Markdown4jProcessor().process(s)
def markdown = {
// FIXME: customize processor!!
val pc = new Markdown4jProcessor()
//pc.asInstanceOf[{}]
pc.process(s)
}
// *Markdownify* the given text but removes the `<p/>` tags from the result
def mkdNoP = markdown.replaceAll("</?p>", "").trim()
// Creates a *Mustache* object whose template is the given String
Expand Down Expand Up @@ -172,7 +177,7 @@ object Scalocco extends Markdown {
// will hold the sections in the file
var sections = List[Section]()
// the `hasCode` variable remembers if we were reading code before a comment
var (hasCode, inScalaDoc) = (false, false)
var (hasCode, inScalaDoc, inString) = (false, false, false)
// the two buffers, one for documentation, the other for scala code
var (doc, code) = (new StringBuilder, new StringBuilder)
// for each line in the source code
Expand Down

0 comments on commit eb6fb7e

Please sign in to comment.