pamflet
package pamflet
Members list
Concise view
Type members
Classlikes
object BlockNames
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- BlockNames.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:
- def isDefinedAt(language: Option[String]): Boolean
- def toBlock(language: Option[String], content: String, position: Position, list: ListBuffer[Block]): Block
- 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])) => Blockclass Objecttrait Matchableclass Any
object FencePlugin
Attributes
- Companion:
- trait
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- FencePlugin.type
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Chunkclass Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class ChunkParsertrait StringExtrastrait RegexParserstrait Parsersclass Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Blockclass Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- trait XHTMLWritertrait Discountertrait TextWritertrait ChunkStreamFactoryclass Objecttrait Matchableclass Any
- Known subtypes
- trait MutableFencedDiscounterobject PamfletDiscounter.type
Attributes
- Graph
- Supertypes
- trait Discountertrait TextWritertrait ChunkStreamFactoryclass Objecttrait Matchableclass Any
- Known subtypes
- object PamfletDiscounter.type
- Self type
- XHTMLWriter
Attributes
- Graph
- Supertypes
- trait XHTMLWritertrait Discountertrait TextWritertrait ChunkStreamFactoryclass Objecttrait Matchableclass Any
- Known subtypes
- object PamfletDiscounter.type
- Self type
- TextWriter
Attributes
- Graph
- Supertypes
- trait FencedDiscountertrait XHTMLWritertrait Discountertrait TextWritertrait ChunkStreamFactoryclass Objecttrait Matchableclass Any
- Known subtypes
- object PamfletDiscounter.type
object PamfletDiscounter extends Discounter with MutableFencedDiscounter with SmartyDiscounter with IdentifiedHeaders with Html5Imgs
Attributes
- Graph
- Supertypes
- trait Html5Imgstrait IdentifiedHeaderstrait SmartyDiscountertrait MutableFencedDiscountertrait FencedDiscountertrait XHTMLWritertrait Discountertrait TextWritertrait ChunkStreamFactoryclass Objecttrait Matchableclass Any
- Self type
- PamfletDiscounter.type
Attributes
- Graph
- Supertypes
- trait Discountertrait TextWritertrait ChunkStreamFactoryclass Objecttrait Matchableclass Any
- Known subtypes
- object PamfletDiscounter.type
Attributes
- Graph
- Supertypes
- class SpanConvertertrait StringExtrastrait Chunk => Seq[Span]class Objecttrait Matchableclass Any