HTMLParsers

laika.markdown.HTMLParsers$
object HTMLParsers

Parses verbatim HTML elements which may interleave with standard Markdown markup. Extends the Markdown block and inline parsers, overriding several of their parsers to add the HTML functionality.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Parses an HTML element without the leading '<', but including all the nested HTML and Text elements, as well as any nested Markdown spans.

Parses an HTML element without the leading '<', but including all the nested HTML and Text elements, as well as any nested Markdown spans.

Attributes

def htmlEndTag(tagName: String): DelimitedText

Parses an HTML end tag if it matches the specified tag name.

Parses an HTML end tag if it matches the specified tag name.

Attributes

def htmlQuotedAttributeValue(c: String): Parser[(List[TextContainer], Option[Char])]

Parses an attribute value enclosed by the specified character.

Parses an attribute value enclosed by the specified character.

Attributes

Concrete fields

Parses a single attribute, consisting of the name and (optional) equals sign and value.

Parses a single attribute, consisting of the name and (optional) equals sign and value.

Attributes

val htmlAttributeName: Parser[String]
val htmlAttributeValue: Parser[(List[TextContainer], Option[Char])]

Parses quoted and unquoted attribute values.

Parses quoted and unquoted attribute values.

Attributes

Parses a full HTML block, with the root element being a block-level HTML element and without parsing any standard Markdown markup.

Parses a full HTML block, with the root element being a block-level HTML element and without parsing any standard Markdown markup.

Attributes

val htmlBlockElements: Set[String]

Elements that the HTML specification does not define as "Phrasing Content". These elements can serve as the root of a Block instance in the Document model. For an HTML renderer this means that it can avoid to wrap these blocks inside p tags as it would do with a normal paragraph.

Elements that the HTML specification does not define as "Phrasing Content". These elements can serve as the root of a Block instance in the Document model. For an HTML renderer this means that it can avoid to wrap these blocks inside p tags as it would do with a normal paragraph.

Attributes

Parses the start tag of an HTML block, only matches when the tag name is an actual block-level HTML tag.

Parses the start tag of an HTML block, only matches when the tag name is an actual block-level HTML tag.

Attributes

Parses a numeric or named character reference.

Parses a numeric or named character reference.

Attributes

Parses a numeric or named character reference without the leading '&'.

Parses a numeric or named character reference without the leading '&'.

Attributes

Parses an HTML comment without the leading '<'.

Parses an HTML comment without the leading '<'.

Attributes

val htmlDecReference: Parser[String]

Parses an HTML element without the leading '<', but including all the nested HTML and Text elements.

Parses an HTML element without the leading '<', but including all the nested HTML and Text elements.

Attributes

Parses an empty HTML element without the leading '<'. Only recognizes empty tags explicitly closed.

Parses an empty HTML element without the leading '<'. Only recognizes empty tags explicitly closed.

Attributes

Parses an HTML end tag without the leading '<'.

Parses an HTML end tag without the leading '<'.

Attributes

val htmlHexReference: Parser[String]
val htmlNamedReference: Parser[String]

Parses a numeric character reference (decimal or hexadecimal) without the leading '&'.

Parses a numeric character reference (decimal or hexadecimal) without the leading '&'.

Attributes

Parses an HTML comment without the leading '<'.

Parses an HTML comment without the leading '<'.

Attributes

Parses any of the HTML span elements supported by this trait, plus standard markdown inside HTML elements.

Parses any of the HTML span elements supported by this trait, plus standard markdown inside HTML elements.

Attributes

Parses any of the HTML span elements supported by this trait, but no standard markdown inside HTML elements.

Parses any of the HTML span elements supported by this trait, but no standard markdown inside HTML elements.

Attributes

Parses an HTML start tag without the leading '<'. Only recognizes empty tags explicitly closed.

Parses an HTML start tag without the leading '<'. Only recognizes empty tags explicitly closed.

Attributes

val htmlTagContent: Parser[String ~ List[HTMLAttribute]]

Parses an HTML tag without the enclosing '<' and '>' characters.

Parses an HTML tag without the enclosing '<' and '>' characters.

Attributes

val htmlTagName: Parser[String]
val htmlUnquotedAttributeValue: Parser[(List[TextContainer], Option[Char])]
val htmlWS: Parser[String]

Parses and consumes optional whitespace, always succeeds.

Parses and consumes optional whitespace, always succeeds.

Attributes