Class

net.liftweb.markdown.BlockParsers

OList

Related Doc: package BlockParsers

Permalink

class OList extends ListBlock

An ordered (i.e. numbered) list of items.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. OList
  2. ListBlock
  3. MarkdownBlock
  4. InlineParsers
  5. BaseParsers
  6. RegexParsers
  7. Parsers
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OList(items: List[ListItem])

    Permalink

Type Members

  1. type Elem = Char

    Permalink
    Definition Classes
    RegexParsers → Parsers
  2. case class Error extends NoSuccess with Product with Serializable

    Permalink
    Definition Classes
    Parsers
  3. case class Failure extends NoSuccess with Product with Serializable

    Permalink
    Definition Classes
    Parsers
  4. case class InlineContext(map: LinkMap, tags: VisitedTags) extends Product with Serializable

    Permalink

    Keeps track of visited tags and provides a lookup for link ids.

    Keeps track of visited tags and provides a lookup for link ids.

    Definition Classes
    InlineParsers
  5. type Input = Reader[Elem]

    Permalink
    Definition Classes
    Parsers
  6. type LinkMap = Map[String, LinkDefinition]

    Permalink

    Defines a lookup map for link definitions.

    Defines a lookup map for link definitions.

    Definition Classes
    InlineParsers
  7. sealed abstract class NoSuccess extends ParseResult[Nothing]

    Permalink
    Definition Classes
    Parsers
  8. trait OnceParser[+T] extends Parser[T]

    Permalink
    Definition Classes
    Parsers
  9. sealed abstract class ParseResult[+T] extends AnyRef

    Permalink
    Definition Classes
    Parsers
  10. abstract class Parser[+T] extends (Input) ⇒ ParseResult[T]

    Permalink
    Definition Classes
    Parsers
  11. case class Success[+T] extends ParseResult[T] with Product with Serializable

    Permalink
    Definition Classes
    Parsers
  12. type VisitedTags = Set[String]

    Permalink

    A set of tags we have already created.

    A set of tags we have already created. Used to prevent nesting a link in a link or an emphasis in an emphasis.

    Definition Classes
    InlineParsers
  13. case class ~[+a, +b] extends Product with Serializable

    Permalink
    Definition Classes
    Parsers

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def OnceParser[T](f: (Input) ⇒ ParseResult[T]): Parser[T] with OnceParser[T]

    Permalink
    Definition Classes
    Parsers
  5. def Parser[T](f: (Input) ⇒ ParseResult[T]): Parser[T]

    Permalink
    Definition Classes
    Parsers
  6. def aChar: Parser[String]

    Permalink
    Definition Classes
    BaseParsers
  7. def accept[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]

    Permalink
    Definition Classes
    Parsers
  8. def accept[ES](es: ES)(implicit arg0: (ES) ⇒ List[Elem]): Parser[List[Elem]]

    Permalink
    Definition Classes
    Parsers
  9. implicit def accept(e: Elem): Parser[Elem]

    Permalink
    Definition Classes
    Parsers
  10. def acceptIf(p: (Elem) ⇒ Boolean)(err: (Elem) ⇒ String): Parser[Elem]

    Permalink
    Definition Classes
    Parsers
  11. def acceptMatch[S, T](f: PartialFunction[S, T])(p: Parser[S]): Parser[T]

    Permalink

    Succeeds if the given parsers succeeds and the given function is defined at the parse result.

    Succeeds if the given parsers succeeds and the given function is defined at the parse result. Returns the result of the method applied to the given parsers result.

    Definition Classes
    BaseParsers
  12. def acceptMatch[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]

    Permalink
    Definition Classes
    Parsers
  13. def acceptSeq[ES](es: ES)(implicit arg0: (ES) ⇒ Iterable[Elem]): Parser[List[Elem]]

    Permalink
    Definition Classes
    Parsers
  14. def addResult(level: Int, out: StringBuilder): Unit

    Permalink

    calls recursive handling of nested items

    calls recursive handling of nested items

    Definition Classes
    OListListBlockMarkdownBlock
  15. def addResult(level: Int, out: StringBuilder, list: List[ListItem]): Unit

    Permalink

    This method recursively goes through the given list and adds the items contents.

    This method recursively goes through the given list and adds the items contents. It checks the previous item if it ends with empty lines. If it does, it signals the current item to create paragraphs. In order for this method to work it has to be called with the first item prepended twice in front of the list. So if the list is a::b::c, call this method with a::a::b::c

    Attributes
    protected
    Definition Classes
    ListBlock
  16. def any: Parser[String]

    Permalink

    Matches exactly one char, no matter which.

    Matches exactly one char, no matter which. This differs from "elem" as it returns a string consisting of that char.

    Definition Classes
    BaseParsers
  17. def apply[T](p: Parser[T], in: String): T

    Permalink

    Runs the given parser on the given input.

    Runs the given parser on the given input. Expects the parser to succeed and consume all input. Throws an IllegalArgumentException if parsing failed.

    Definition Classes
    BaseParsers
  18. def applyInline(s: String, m: LinkMap): String

    Permalink

    Runs the inline parser on the given input and returns the result

    Runs the inline parser on the given input and returns the result

    Definition Classes
    InlineParsers
  19. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  20. val br: Parser[String]

    Permalink

    Parses two spaces at the end of a line to a manual break (
    )

    Parses two spaces at the end of a line to a manual break (
    )

    Definition Classes
    InlineParsers
  21. def chainl1[T, U](first: ⇒ Parser[T], p: ⇒ Parser[U], q: ⇒ Parser[(T, U) ⇒ T]): Parser[T]

    Permalink
    Definition Classes
    Parsers
  22. def chainl1[T](p: ⇒ Parser[T], q: ⇒ Parser[(T, T) ⇒ T]): Parser[T]

    Permalink
    Definition Classes
    Parsers
  23. def chainr1[T, U](p: ⇒ Parser[T], q: ⇒ Parser[(T, U) ⇒ U], combine: (T, U) ⇒ U, first: U): Parser[U]

    Permalink
    Definition Classes
    Parsers
  24. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. val code: Parser[String]

    Permalink

    Parses an inline code element.

    Parses an inline code element. An inline code element is surrounded by single backticks ("") or double backticks ("").

    Definition Classes
    InlineParsers
  26. def commit[T](p: ⇒ Parser[T]): Parser[T]

    Permalink
    Definition Classes
    Parsers
  27. def deco(): Decorator

    Permalink

    Defines how the output is formatted and whether inline xml elements are allowed.

    Defines how the output is formatted and whether inline xml elements are allowed.

    Definition Classes
    MarkdownBlockInlineParsers
  28. val directImg: Parser[String]

    Permalink

    An image with an explicit path.

    An image with an explicit path.

    Definition Classes
    InlineParsers
  29. def elem(e: Elem): Parser[Elem]

    Permalink
    Definition Classes
    Parsers
  30. def elem(kind: String, p: (Elem) ⇒ Boolean): Parser[Elem]

    Permalink
    Definition Classes
    Parsers
  31. def elementParsers(ctx: InlineContext): Parser[String]

    Permalink

    Hand rolled parser that parses a chunk of special inline markdown (like links or emphasis) based on a one char lookahead.

    Hand rolled parser that parses a chunk of special inline markdown (like links or emphasis) based on a one char lookahead.

    Definition Classes
    InlineParsers
  32. def emAsterisk(ctx: InlineContext): Parser[String]

    Permalink

    Parses emphasized text wrapped in asterisks: *foo*

    Parses emphasized text wrapped in asterisks: *foo*

    Definition Classes
    InlineParsers
  33. def emUnderscore(ctx: InlineContext): Parser[String]

    Permalink

    Parses emphasized text wrapped in underscores: _foo_

    Parses emphasized text wrapped in underscores: _foo_

    Definition Classes
    InlineParsers
  34. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  35. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  36. def err(msg: String): Parser[Nothing]

    Permalink
    Definition Classes
    Parsers
  37. def escapeFastForXml(c: Char): String

    Permalink

    Either returns the XML escape sequence for the given char or null.

    Either returns the XML escape sequence for the given char or null. This does not return Option[String] on purpose. While Option[String] would be a much cleaner solution, this is actually called so often that it is a noticeable difference if we use Option here.

    Definition Classes
    BaseParsers
  38. def escapeForXml(c: Char): String

    Permalink

    Escapes the given char for XML.

    Escapes the given char for XML. Returns Either the necessary XML escape Sequence or the same char in a String.

    Definition Classes
    BaseParsers
  39. def escapeXml(s: String): String

    Permalink

    Escapes the given string so it it can be embedded in xml.

    Escapes the given string so it it can be embedded in xml. Markdown escapes are not processed.

    Definition Classes
    InlineParsers
  40. def failure(msg: String): Parser[Nothing]

    Permalink
    Definition Classes
    Parsers
  41. def fastLink(ctx: InlineContext): Parser[String]

    Permalink

    A shortcut markdown link of the form <http://example.com>

    A shortcut markdown link of the form <http://example.com>

    Definition Classes
    InlineParsers
  42. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  43. def fullLink(ctx: InlineContext): Parser[String]

    Permalink

    A markdown link with the full url given.

    A markdown link with the full url given.

    Definition Classes
    InlineParsers
  44. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  45. def guard[T](p: ⇒ Parser[T]): Parser[T]

    Permalink
    Definition Classes
    Parsers
  46. def handleWhiteSpace(source: CharSequence, offset: Int): Int

    Permalink
    Attributes
    protected
    Definition Classes
    RegexParsers
  47. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  48. def idReference(ctx: InlineContext): Parser[(String, LinkDefinition)]

    Permalink

    Parses an id reference.

    Parses an id reference. (Any text that is not a square bracket) Succeeds only if the parsed id is found in the given lookup. Returns the found link definition and the matched text.

    Definition Classes
    InlineParsers
  49. def img(ctx: InlineContext): Parser[String]

    Permalink

    Parses either a referenced or a directly defined image.

    Parses either a referenced or a directly defined image.

    Definition Classes
    InlineParsers
  50. def inline(m: LinkMap): Parser[String]

    Permalink

    Parser for inline markdown, always consumes all input, returns the resulting HTML.

    Parser for inline markdown, always consumes all input, returns the resulting HTML.

    Definition Classes
    InlineParsers
  51. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  52. def link(ctx: InlineContext): Parser[String]

    Permalink

    A link started by square brackets, either a reference or a a link with the full URL.

    A link started by square brackets, either a reference or a a link with the full URL.

    Definition Classes
    InlineParsers
  53. def linkInline(ctx: InlineContext): Parser[String]

    Permalink

    Inline markdown in a link.

    Inline markdown in a link. Like normal inline stuff but stops when it reaches a closing square bracket.

    Definition Classes
    InlineParsers
  54. implicit def literal(s: String): Parser[String]

    Permalink
    Definition Classes
    RegexParsers
  55. def log[T](p: ⇒ Parser[T])(name: String): Parser[T]

    Permalink
    Definition Classes
    Parsers
  56. def lookbehind(cs: Set[Char]): Parser[Unit]

    Permalink

    Looks if the preceding char was one of the given chars.

    Looks if the preceding char was one of the given chars. Never consumes any input.

    Definition Classes
    BaseParsers
  57. def markdownText(special: Set[Char], markdownEscapes: Boolean): Parser[String]

    Permalink

    Parses markdown text up to any of the chars defined in the given map.

    Parses markdown text up to any of the chars defined in the given map. used to quickly escape any text between special inline markdown like emphasis.

    Definition Classes
    InlineParsers
  58. def mkList[T]: (~[T, List[T]]) ⇒ List[T]

    Permalink
    Definition Classes
    Parsers
  59. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  60. def nl: Parser[String]

    Permalink

    Accepts a unix newline and returns a string containing a single newline.

    Accepts a unix newline and returns a string containing a single newline.

    Definition Classes
    BaseParsers
  61. def not[T](p: ⇒ Parser[T]): Parser[Unit]

    Permalink
    Definition Classes
    Parsers
  62. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  63. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  64. def oneInline(ctx: InlineContext): Parser[String]

    Permalink

    Parses a single inline token.

    Parses a single inline token. Either a span element or a chunk of text.

    Definition Classes
    InlineParsers
  65. def oneOf(lookup: Map[Char, String]): Parser[String]

    Permalink

    Matches one of the given char keys in the map.

    Matches one of the given char keys in the map. Returns the string value for the matched char in the given map.

    Definition Classes
    BaseParsers
  66. def oneOf(lookup: Set[Char]): Parser[String]

    Permalink

    Matches one of the chars in the given set.

    Matches one of the chars in the given set. Returns a string with the matched char.

    Definition Classes
    BaseParsers
  67. def opt[T](p: ⇒ Parser[T]): Parser[Option[T]]

    Permalink
    Definition Classes
    Parsers
  68. def ows: Parser[String]

    Permalink

    accepts zero or more spaces or tabs returns the matched whitespace

    accepts zero or more spaces or tabs returns the matched whitespace

    Definition Classes
    BaseParsers
  69. def parse[T](p: Parser[T], in: Reader): ParseResult[T]

    Permalink
    Definition Classes
    RegexParsers
  70. def parse[T](p: Parser[T], in: CharSequence): ParseResult[T]

    Permalink
    Definition Classes
    RegexParsers
  71. def parse[T](p: Parser[T], in: Reader[Char]): ParseResult[T]

    Permalink
    Definition Classes
    RegexParsers
  72. def parseAll[T](p: Parser[T], in: CharSequence): ParseResult[T]

    Permalink
    Definition Classes
    RegexParsers
  73. def parseAll[T](p: Parser[T], in: Reader): ParseResult[T]

    Permalink
    Definition Classes
    RegexParsers
  74. def parseAll[T](p: Parser[T], in: Reader[Char]): ParseResult[T]

    Permalink
    Definition Classes
    RegexParsers
  75. def phrase[T](p: Parser[T]): Parser[T]

    Permalink
    Definition Classes
    RegexParsers → Parsers
  76. def positioned[T <: Positional](p: ⇒ Parser[T]): Parser[T]

    Permalink
    Definition Classes
    RegexParsers → Parsers
  77. def range(begin: Char, end: Char): Parser[Char]

    Permalink

    Matches one char in the given range, returns the matched char.

    Matches one char in the given range, returns the matched char.

    Definition Classes
    BaseParsers
  78. def ranges(rs: SortedMap[Char, Char]): Parser[Char]

    Permalink
    Definition Classes
    BaseParsers
  79. def ref(ctx: InlineContext): Parser[(LinkDefinition, String)]

    Permalink

    A markdown reference of the form [text][id], [idText][] or [idText] Parser returns a tuple with the link definition first and the text to display second.

    A markdown reference of the form [text][id], [idText][] or [idText] Parser returns a tuple with the link definition first and the text to display second.

    Definition Classes
    InlineParsers
  80. def refImg(ctx: InlineContext): Parser[String]

    Permalink

    Parses a referenced image.

    Parses a referenced image.

    Definition Classes
    InlineParsers
  81. val refText: Parser[String]

    Permalink

    Plaintext variant to refInline.

    Plaintext variant to refInline. Escapable text until a square bracket is hit.

    Definition Classes
    InlineParsers
  82. def referenceLink(ctx: InlineContext): Parser[String]

    Permalink

    A markdown link which references an url by id.

    A markdown link which references an url by id.

    Definition Classes
    InlineParsers
  83. implicit def regex(r: Regex): Parser[String]

    Permalink
    Definition Classes
    RegexParsers
  84. def rep[T](p: ⇒ Parser[T]): Parser[List[T]]

    Permalink
    Definition Classes
    Parsers
  85. def rep1[T](first: ⇒ Parser[T], p0: ⇒ Parser[T]): Parser[List[T]]

    Permalink
    Definition Classes
    Parsers
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The p0 call-by-name arguments is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.

  86. def rep1[T](p: ⇒ Parser[T]): Parser[List[T]]

    Permalink
    Definition Classes
    Parsers
  87. def rep1sep[T](p: ⇒ Parser[T], q: ⇒ Parser[Any]): Parser[List[T]]

    Permalink
    Definition Classes
    Parsers
  88. def repN[T](num: Int, p: ⇒ Parser[T]): Parser[List[T]]

    Permalink
    Definition Classes
    Parsers
  89. def repsep[T](p: ⇒ Parser[T], q: ⇒ Parser[Any]): Parser[List[T]]

    Permalink
    Definition Classes
    Parsers
  90. def rest: Parser[String]

    Permalink

    Matches everything in the parsed string up to the end.

    Matches everything in the parsed string up to the end. Also matches the empty String. Returns the matched String.

    Definition Classes
    BaseParsers
  91. def result(): String

    Permalink

    returns the resulting xhtml snippet as a string

    returns the resulting xhtml snippet as a string

    Definition Classes
    MarkdownBlock
  92. def skipWhitespace: Boolean

    Permalink

    Whitespace is sometimes important in markdown parsing, we handle it manually.

    Whitespace is sometimes important in markdown parsing, we handle it manually. So this returns false.

    Definition Classes
    BaseParsers → RegexParsers
  93. def span(limiter: String, ctx: InlineContext): Parser[String]

    Permalink

    Parses a span element like foo or *bar*

    Parses a span element like foo or *bar*

    Definition Classes
    InlineParsers
  94. def spanAsterisk(ctx: InlineContext): Parser[String]

    Permalink

    Either an emphasis or a strong text wrapped in asterisks.

    Either an emphasis or a strong text wrapped in asterisks.

    Definition Classes
    InlineParsers
  95. def spanInline(end: Parser[Any], ctx: InlineContext): Parser[String]

    Permalink

    Parses inline in a span element like bold or emphasis or link up until the given end marker

    Parses inline in a span element like bold or emphasis or link up until the given end marker

    Definition Classes
    InlineParsers
  96. def spanUnderscore(ctx: InlineContext): Parser[String]

    Permalink

    Either an emphasis or strong text wrapped in underscores.

    Either an emphasis or strong text wrapped in underscores.

    Definition Classes
    InlineParsers
  97. val specialInlineChars: Set[Char]

    Permalink

    Chars that may indicate the start of a special Markdown inline sequence.

    Chars that may indicate the start of a special Markdown inline sequence.

    Definition Classes
    InlineParsers
  98. val specialLinkInlineChars: Set[Char]

    Permalink

    Chars that may indicate the start of a special markdown inline sequence or the end of a link text.

    Chars that may indicate the start of a special markdown inline sequence or the end of a link text.

    Definition Classes
    InlineParsers
  99. def strongAsterisk(ctx: InlineContext): Parser[String]

    Permalink

    Parses strong text in asterisks: **foo**

    Parses strong text in asterisks: **foo**

    Definition Classes
    InlineParsers
  100. def strongUnderscore(ctx: InlineContext): Parser[String]

    Permalink

    Parses strong text in underscores: foo

    Parses strong text in underscores: foo

    Definition Classes
    InlineParsers
  101. def success[T](v: T): Parser[T]

    Permalink
    Definition Classes
    Parsers
  102. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  103. val title: Parser[Option[String]]

    Permalink

    A title is everything in quotation marks.

    A title is everything in quotation marks. We allow even quotation marks in quotation marks. We look ahead if we hit the closing brace after the quotation marks to detect if the title ends or not.

    Definition Classes
    InlineParsers
  104. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  105. val url: Parser[String]

    Permalink

    We parse everything as a link/img url until we hit whitespace or a closing brace.

    We parse everything as a link/img url until we hit whitespace or a closing brace.

    Definition Classes
    InlineParsers
  106. def verboseString(c: Char): String

    Permalink

    Returns a verbose description of a char (printed char & hex code).

    Returns a verbose description of a char (printed char & hex code). Used for debugging.

    Definition Classes
    BaseParsers
  107. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  108. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  109. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  110. val whiteSpace: Regex

    Permalink
    Attributes
    protected
    Definition Classes
    RegexParsers
  111. def ws: Parser[String]

    Permalink

    accepts one or more spaces or tabs returns the matched whitespace

    accepts one or more spaces or tabs returns the matched whitespace

    Definition Classes
    BaseParsers
  112. def xmlAttr: Parser[String]

    Permalink

    Parses an XML Attribute with simplified value handling like xmlAttrVal.

    Parses an XML Attribute with simplified value handling like xmlAttrVal.

    Definition Classes
    BaseParsers
  113. def xmlAttrVal: Parser[String]

    Permalink

    Parses a Simplified xml attribute: everything between quotes ("foo") everything between the quotes is run through the escape handling That way you can omit xml escaping when writing inline XML in markdown.

    Parses a Simplified xml attribute: everything between quotes ("foo") everything between the quotes is run through the escape handling That way you can omit xml escaping when writing inline XML in markdown.

    Definition Classes
    BaseParsers
  114. def xmlEndTag: Parser[String]

    Permalink

    Parses closing xml tags.

    Parses closing xml tags.

    Definition Classes
    BaseParsers
  115. def xmlName: Parser[String]

    Permalink

    Parses an XML name (tag or attribute name)

    Parses an XML name (tag or attribute name)

    Definition Classes
    BaseParsers
  116. def xmlNameChar: Parser[Char]

    Permalink

    Parses an XML name char according to W3C spec except that range #x10000 to #xEFFFF is excluded

    Parses an XML name char according to W3C spec except that range #x10000 to #xEFFFF is excluded

    Definition Classes
    BaseParsers
  117. val xmlNameCharRanges: SortedMap[Char, Char]

    Permalink
    Definition Classes
    BaseParsers
  118. def xmlNameStartChar: Parser[Char]

    Permalink

    Parser for one char that starts an XML name.

    Parser for one char that starts an XML name. According to W3C specs except that range #x10000 to #xEFFFF is excluded (cannot be expressed by char literals)

    Definition Classes
    BaseParsers
  119. val xmlNameStartCharRanges: SortedMap[Char, Char]

    Permalink
    Definition Classes
    BaseParsers
  120. def xmlStartOrEmptyTag: Parser[String]

    Permalink

    Parses an xml start or empty tag, attribute values are escaped.

    Parses an xml start or empty tag, attribute values are escaped.

    Definition Classes
    BaseParsers
  121. val xmlTag: Parser[String]

    Permalink

    Parses any xml tag and escapes attribute values.

    Parses any xml tag and escapes attribute values.

    Definition Classes
    InlineParsers

Inherited from ListBlock

Inherited from MarkdownBlock

Inherited from InlineParsers

Inherited from BaseParsers

Inherited from RegexParsers

Inherited from Parsers

Inherited from AnyRef

Inherited from Any

Ungrouped