TagBasedFormats

laika.parse.code.common.TagBasedFormats

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

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object HTMLSyntax.type
object JSX.type
object XMLSyntax.type

Members list

Value members

Concrete methods

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. Assumes that the start tag has already been parsed.

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

def name(category: CodeCategory): CodeSpanParser

Parses a valid attribute, tag or entity name.

Parses a valid attribute, tag or entity name.

Attributes

Concrete fields

Parses a comment enclosed between ``.

Parses a comment enclosed between ``.

Attributes

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

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

Attributes

Parses an end tag.

Parses an end tag.

Attributes

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

Parses a start tag with optional attributes.

Parses a start tag with optional attributes.

Attributes