pamflet

package pamflet

Members list

Concise view

Type members

Classlikes

object BlockNames

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait FencePlugin extends PartialFunction[(Option[String], String, Position, ListBuffer[Block]), Block]

A FencePlugin must implement the following methods:

A FencePlugin must implement the following methods:

  1. def isDefinedAt(language: Option[String]): Boolean
  2. def toBlock(language: Option[String], content: String, position: Position, list: ListBuffer[Block]): Block
  3. def blockToXHTML: PartialFunction[Block, xml.Node]

First, you have to declare what "language" your FencePlugin supports with isDefinedAt. Next, in toBlock evaluate the incoming content and store them in a custom case class that extends Block. Finally, in blockToXHTML turn your custom case class into an xml Node.

Attributes

Companion:
object
Graph
Supertypes
trait PartialFunction[(Option[String], String, Position, ListBuffer[Block]), Block]
trait ((Option[String], String, Position, ListBuffer[Block])) => Block
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class FencedChunk(content: String, language: Option[String]) extends Chunk

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Chunk
class Object
trait Matchable
class Any
trait FencedChunkParser extends ChunkParser

Attributes

Graph
Supertypes
class ChunkParser
trait StringExtras
trait RegexParsers
trait Parsers
class Object
trait Matchable
class Any
case class FencedCodeBlock(text: Text, position: Position, language: Option[String]) extends Block

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Block
class Object
trait Matchable
class Any
trait FencedDiscounter extends Discounter with XHTMLWriter

Attributes

Graph
Supertypes
trait XHTMLWriter
trait Discounter
trait TextWriter
trait ChunkStreamFactory
class Object
trait Matchable
class Any
Known subtypes
trait Html5Imgs extends Discounter

Attributes

Graph
Supertypes
trait Discounter
trait TextWriter
trait ChunkStreamFactory
class Object
trait Matchable
class Any
Known subtypes
object PamfletDiscounter.type
Self type
XHTMLWriter
trait IdentifiedHeaders extends Discounter with XHTMLWriter

Attributes

Graph
Supertypes
trait XHTMLWriter
trait Discounter
trait TextWriter
trait ChunkStreamFactory
class Object
trait Matchable
class Any
Known subtypes
object PamfletDiscounter.type
Self type
TextWriter

Attributes

Graph
Supertypes
trait XHTMLWriter
trait Discounter
trait TextWriter
trait ChunkStreamFactory
class Object
trait Matchable
class Any
Known subtypes
object PamfletDiscounter.type

Attributes

Graph
Supertypes
trait Html5Imgs
trait XHTMLWriter
trait Discounter
trait TextWriter
trait ChunkStreamFactory
class Object
trait Matchable
class Any
Self type
trait SmartyDiscounter extends Discounter

Attributes

Graph
Supertypes
trait Discounter
trait TextWriter
trait ChunkStreamFactory
class Object
trait Matchable
class Any
Known subtypes
object PamfletDiscounter.type
trait SmartySpanConverter extends SpanConverter

Attributes

Graph
Supertypes
class SpanConverter
trait StringExtras
trait Chunk => Seq[Span]
class Object
trait Matchable
class Any