TagFormats

laika.parse.code.common.TagFormats
object TagFormats

Configurable base parsers for tag based formats like HTML or XML.

Attributes

Source
TagFormats.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TagFormats.type

Members list

Type members

Classlikes

class TagParser

Configurable parser for tags in formats like HTML or XML.

Configurable parser for tags in formats like HTML or XML.

Attributes

Source
TagFormats.scala
Supertypes
trait PrefixedParser[Seq[CodeSpan]]
class Parser[Seq[CodeSpan]]
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apply(tagCategory: CodeCategory, start: String, end: String): TagParser

Attributes

Source
TagFormats.scala
def customTag(start: String, end: String): TagParser

Creates a parser for a tag that does not follow the basic format for start or end tags.

Creates a parser for a tag that does not follow the basic format for start or end tags. This can be used for entities like DTD nodes, for example. The specified start and end strings represent the delimiters, e.g. <! and >

Attributes

Source
TagFormats.scala
def elementRest(tagName: String, embedded: Seq[CodeSpanParser], tagNameCategory: CodeCategory): Parser[Seq[CodeSpan]]

Parses the content and the end tag of an element, with optionally embedding syntax for the content of the element.

Parses the content and the end tag of an element, with optionally embedding syntax for the content of the element. Assumes that the start tag has already been parsed.

Attributes

Source
TagFormats.scala
def name(category: CodeCategory): CodeSpanParser

Parses a valid attribute, tag or entity name.

Parses a valid attribute, tag or entity name.

Attributes

Source
TagFormats.scala

Concrete fields

Parses a comment enclosed between .

Parses a comment enclosed between .

Attributes

Source
TagFormats.scala

Parses an empty tag (closed by />) with optional attributes.

Parses an empty tag (closed by />) with optional attributes.

Attributes

Source
TagFormats.scala

Parses an end tag.

Parses an end tag.

Attributes

Source
TagFormats.scala

Parses a named entity reference like < or a numeric character reference like &#xff.

Parses a named entity reference like < or a numeric character reference like &#xff.

Attributes

Source
TagFormats.scala

Parses a start tag with optional attributes.

Parses a start tag with optional attributes.

Attributes

Source
TagFormats.scala

Attributes

Source
TagFormats.scala