Directive

trait Directive

A directive that knows how to take a string identifier and turn it into a span link.

class Object
trait Matchable
class Any

Value members

Abstract methods

def apply(linkId: String, cursor: DocumentCursor): Either[String, SpanLink]

Turns the link identifier as specified by the user in text markup into a span link. If the link id is invalid this method should return a left with a textual description of the problem.

Turns the link identifier as specified by the user in text markup into a span link. If the link id is invalid this method should return a left with a textual description of the problem.

def name: String

The name of the directive, as it is used in text markup.

The name of the directive, as it is used in text markup.

Concrete methods

Turns the link directive into a regular span directive.

Turns the link directive into a regular span directive.