laika.markdown.ast

Members list

Type members

Classlikes

case class HTMLAttribute(name: String, value: List[TextContainer], quotedWith: Option[Char])

Represents a single HTML attribute. The value is provided as a list of TextContainers as it may contain HTML character references alongside regular Text elements.

Represents a single HTML attribute. The value is provided as a list of TextContainers as it may contain HTML character references alongside regular Text elements.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class HTMLBlock(root: HTMLElement, options: Options) extends Block

A top level HTML block as defined by the Markdown syntaxt description. It is surrounded by blank lines and has a block-level element (one that is not classified as "phrasing content" in the HTML specification) as its root element. It may contain other nested HTML elements and tags, but no spans produced by standard Markdown markup.

A top level HTML block as defined by the Markdown syntaxt description. It is surrounded by blank lines and has a block-level element (one that is not classified as "phrasing content" in the HTML specification) as its root element. It may contain other nested HTML elements and tags, but no spans produced by standard Markdown markup.

Attributes

Supertypes
trait Block
class Element
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class HTMLCharacterReference(content: String, options: Options) extends HTMLSpan, TextContainer

Represents a numerical or named character reference.

Represents a numerical or named character reference.

Attributes

Supertypes
trait Container[String]
class HTMLSpan
trait Span
class Element
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class HTMLComment(content: String, options: Options) extends HTMLSpan, Block, TextContainer

Represents a standard HTML comment.

Represents a standard HTML comment.

Attributes

Supertypes
trait Container[String]
trait Block
class HTMLSpan
trait Span
class Element
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class HTMLElement(startTag: HTMLStartTag, content: Seq[Span], options: Options) extends HTMLSpan, SpanContainer

Represents a full HTML element with matching start and end tags. The content of this span container may contain further nested HTML elements and tags as well as simple text elements.

Represents a full HTML element with matching start and end tags. The content of this span container may contain further nested HTML elements and tags as well as simple text elements.

Attributes

Supertypes
trait Container[Seq[Span]]
class HTMLSpan
trait Span
class Element
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class HTMLEmptyElement(name: String, attributes: List[HTMLAttribute], options: Options) extends HTMLSpan, Block

Represents an empty element (like <br/> or <hr/>) in case it contains the explicit slash to mark it as closed. Otherwise it will be classified as a start tag.

Represents an empty element (like <br/> or <hr/>) in case it contains the explicit slash to mark it as closed. Otherwise it will be classified as a start tag.

Attributes

Supertypes
trait Block
class HTMLSpan
trait Span
class Element
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class HTMLEndTag(name: String, options: Options) extends HTMLSpan

Represents an orphaned end tag without matching start tag.

Represents an orphaned end tag without matching start tag.

Attributes

Supertypes
class HTMLSpan
trait Span
class Element
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class HTMLScriptElement(attributes: List[HTMLAttribute], content: String, options: Options) extends HTMLSpan, TextContainer

Represents a script element.

Represents a script element.

Attributes

Supertypes
trait Container[String]
class HTMLSpan
trait Span
class Element
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
abstract class HTMLSpan extends Span

Base class for all verbatim HTML span elements.

Base class for all verbatim HTML span elements.

Attributes

Supertypes
trait Span
class Element
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
case class HTMLStartTag(name: String, attributes: List[HTMLAttribute], options: Options) extends HTMLSpan, Block

Represent a start tag. When this element is part of a final document tree, it represents an orphaned start tag without matching end tag. In HTML this may be legal (some tags like the p tag are defined as "auto-closing" under certain circumstances). This library however does not implement the full logic of a proper HTML parser to distinguish between legal and faulty occurrences of unmatched start tags.

Represent a start tag. When this element is part of a final document tree, it represents an orphaned start tag without matching end tag. In HTML this may be legal (some tags like the p tag are defined as "auto-closing" under certain circumstances). This library however does not implement the full logic of a proper HTML parser to distinguish between legal and faulty occurrences of unmatched start tags.

Attributes

Supertypes
trait Block
class HTMLSpan
trait Span
class Element
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all