SmartySpanConverter

pamflet.SmartySpanConverter
trait SmartySpanConverter extends SpanConverter

Attributes

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

Members list

Concise view

Type members

Inherited classlikes

class DelimMatcher(delim: String, toSpan: Seq[Span] => Span, recursive: Boolean, escape: Option[Char]) extends String => Option[SpanMatch]

Attributes

delim

The delimiter string to match the next 2 sequences of.

escape

If set, how you can escape this sequence.

recursive

If you want the contained element to be reconverted.

toSpan

Factory to create the actual SpanMatch.

Inherited from:
SpanConverter
Graph
Supertypes
trait String => Option[SpanMatch]
class Object
trait Matchable
class Any
case class SpanMatch(index: Int, before: Option[Text], current: Span, after: Option[String])

Attributes

Inherited from:
SpanConverter
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

override def apply(chunk: Chunk): Seq[Span]

Attributes

Definition Classes
SpanConverter -> Function1
override def matchers: List[String => Option[SpanMatch]]

Attributes

Definition Classes
SpanConverter
def smartyMatchers: List[String => Option[SpanMatch]]

Inherited methods

def andThen[A](g: Seq[Span] => A): T1 => A

Attributes

Inherited from:
Function1
def compose[A](g: A => Chunk): A => R

Attributes

Inherited from:
Function1
def findAutomaticMatch(source: String): Option[SpanMatch]

Attributes

Inherited from:
SpanConverter
def findNormalMatch(source: String): Option[SpanMatch]

Attributes

Inherited from:
SpanConverter
def findReferenceMatch(source: String): Option[SpanMatch]

We have to match parens, to support this stuff: [wr [app] ed] [thing]

We have to match parens, to support this stuff: [wr [app] ed] [thing]

Attributes

Inherited from:
SpanConverter
def matchEntity(source: String): Option[SpanMatch]

Attributes

Inherited from:
SpanConverter
def matchHTMLComment(source: String): Option[SpanMatch]

Attributes

Inherited from:
SpanConverter
def matchHTMLSpan(source: String): Option[SpanMatch]

Attributes

Inherited from:
SpanConverter
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1

Concrete fields

val closeClass: String
val punctClass: String

Inherited fields

Attributes

Inherited from:
SpanConverter

Attributes

Inherited from:
SpanConverter

Attributes

Inherited from:
SpanConverter

Attributes

Inherited from:
SpanConverter

Attributes

Inherited from:
SpanConverter

Attributes

Inherited from:
SpanConverter

Attributes

Inherited from:
SpanConverter

Attributes

Inherited from:
SpanConverter

Implicits

Inherited implicits

implicit def KnockoffString(s: CharSequence): KnockoffString

Attributes

Inherited from:
StringExtras