net.liftweb.markdown

BlockParsers

trait BlockParsers extends Parsers

A parser for the markdown language. Works on pre-parsed lines that can be created by a LineParser.

Linear Supertypes
Parsers, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BlockParsers
  2. Parsers
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class Blockquote extends MarkdownBlock

    Represents a quoted text block.

  2. class CodeBlock extends MarkdownBlock

    Represents a block of verbatim qouted code

  3. type Elem = MarkdownLine

    Definition Classes
    BlockParsers → Parsers
  4. case class Error extends NoSuccess with Product with Serializable

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

    Definition Classes
    Parsers
  6. class FencedCodeBlock extends MarkdownBlock

  7. case class Header(content: String, headerLevel: Int, lookup: Map[String, LinkDefinition]) extends MarkdownBlock with Product with Serializable

    Represents a header

  8. type Input = Reader[Elem]

    Definition Classes
    Parsers
  9. abstract class ListBlock extends MarkdownBlock

    Base class for ordered and unordered lists, allows for correct handling of paragraphs in lists.

  10. class ListItem extends LineParsers

    Helper class to build lists.

  11. sealed abstract class MarkdownBlock extends InlineParsers

    A markdown block element.

  12. sealed abstract class NoSuccess extends ParseResult[Nothing]

    Definition Classes
    Parsers
  13. class OList extends ListBlock

    An ordered (i.

  14. trait OnceParser[+T] extends Parser[T]

    Definition Classes
    Parsers
  15. class Paragraph extends MarkdownBlock

    Represents a paragraph of text

  16. sealed abstract class ParseResult[+T] extends AnyRef

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

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

    Definition Classes
    Parsers
  19. class UList extends ListBlock

    An unordered list of items.

  20. class VerbatimXml extends MarkdownBlock

    :? Represents a block of verbatim xml

  21. case class ~[+a, +b] extends Product with Serializable

    Definition Classes
    Parsers

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def OnceParser[T](f: (Input) ⇒ ParseResult[T]): Parser[T] with OnceParser[T]

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

    Definition Classes
    Parsers
  8. object Ruler extends MarkdownBlock

    Represents a horizontal ruler

  9. def accept[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]

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

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

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

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

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

    Definition Classes
    Parsers
  15. def anyLine: Parser[MarkdownLine]

    Parses any line.

  16. def apply(in: MarkdownLineReader): String

    Parses the given input as a markdown document and returns the string result

  17. def apply[T](p: Parser[T], list: List[MarkdownLine]): T

    Generic apply method to test a single parser

  18. def apply[T](p: Parser[T], in: MarkdownLineReader): T

    Generic apply method to run one of our pasers on the given input.

  19. def applyBlocks(in: MarkdownLineReader): List[MarkdownBlock]

    parses all blocks from the given reader

  20. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  21. def atxHeader: Parser[Header]

  22. def blockquote: Parser[Blockquote]

    Parses a quoted block.

    Parses a quoted block. A quoted block starts with a line starting with "> " followed by more blockquote lines, paragraph lines following blockqoute lines and may be interspersed with empty lines

  23. def blockquoteFragment: Parser[List[MarkdownLine]]

    Parses a blockquote fragment: a block starting with a blockquote line followed by more blockquote or paragraph lines, ends optionally with empty lines

  24. def chainl1[T, U](first: ⇒ Parser[T], p: ⇒ Parser[U], q: ⇒ Parser[(T, U) ⇒ T]): Parser[T]

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

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

    Definition Classes
    Parsers
  27. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def codeBlock: Parser[CodeBlock]

    parses a code block

  29. def commit[T](p: ⇒ Parser[T]): Parser[T]

    Definition Classes
    Parsers
  30. def deco(): Decorator

    Used to define the output format of parsed blocks and whether verbatim xml blocks are allowed.

  31. def elem(e: Elem): Parser[Elem]

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

    Definition Classes
    Parsers
  33. def emptyLine: Parser[EmptyLine]

  34. def emptyLines: Parser[List[MarkdownLine]]

    accepts one or more empty lines

  35. final def eq(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Parsers
  38. def failure(msg: String): Parser[Nothing]

    Definition Classes
    Parsers
  39. def fastBlock: Parser[MarkdownBlock]

    speed up block processing by looking ahead

  40. def fencedCodeBlock: Parser[FencedCodeBlock]

    Parses a fenced code block: a line starting a fenced code block with "", followed by any lines that do not stop it, optionally followed by the ending line. Optionally parsing the stopping line causes the code block to extend to the end of the document. (This is the github behavior, where omitting the line closing the code block causes the block to extend to the end of the document as well)

  41. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  42. final def getClass(): Class[_]

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

    Definition Classes
    Parsers
  44. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  45. def indent(level: Int): String

    returns the current indentation string repeated the given number of levels

  46. def innerBlock: Parser[MarkdownBlock]

    parses inner blocks (everything excluding xml)

  47. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  48. def itemContinuation: Parser[List[MarkdownLine]]

    The continuation of a list item: A line indented by four spaces or a tab (a continuation line), followed by more continuation or paragraph lines followed by empty lines

  49. def itemLines: Parser[List[MarkdownLine]]

    parses a list of lines that may make up the body of a list item

  50. def line[T](c: Class[T]): Parser[T]

    Parses a line of the given type T

  51. def log[T](p: ⇒ Parser[T])(name: String): Parser[T]

    Definition Classes
    Parsers
  52. def lookup: Parser[Map[String, LinkDefinition]]

    returns the current link lookup from the reader always succeeds, never consumes input

  53. def markdown: Parser[List[MarkdownBlock]]

    a markdown parser

  54. def mkList[T]: (~[T, List[T]]) ⇒ List[T]

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

    Definition Classes
    AnyRef
  56. def not[T](p: ⇒ Parser[T]): Parser[Unit]

    Definition Classes
    Parsers
  57. def notLine[T](c: Class[T]): Parser[MarkdownLine]

    Parses a line of any type *but* T

  58. final def notify(): Unit

    Definition Classes
    AnyRef
  59. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  60. def oItem: Parser[ListItem]

    parses an item in a sorted list

  61. def oList: Parser[OList]

    parses an ordered list

  62. def opt[T](p: ⇒ Parser[T]): Parser[Option[T]]

    Definition Classes
    Parsers
  63. def optEmptyLines: Parser[List[MarkdownLine]]

    accepts zero or more empty lines

  64. def outerBlock: Parser[MarkdownBlock]

    parses first level blocks (all blocks, including xml)

  65. def paragraph: Parser[Paragraph]

    a consecutive block of paragraph lines returns the content of the matched block wrapped in

    a consecutive block of paragraph lines returns the content of the matched block wrapped in

    tags

  66. def phrase[T](p: Parser[T]): Parser[T]

    Definition Classes
    Parsers
  67. def positioned[T <: Positional](p: ⇒ Parser[T]): Parser[T]

    Definition Classes
    Parsers
  68. def rep[T](p: ⇒ Parser[T]): Parser[List[T]]

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

    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.

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

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

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

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

    Definition Classes
    Parsers
  74. def ruler: Parser[MarkdownBlock]

    parses a horizontal ruler

  75. def setExtHeader: Parser[Header]

  76. def success[T](v: T): Parser[T]

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

    Definition Classes
    AnyRef
  78. def toString(): String

    Definition Classes
    AnyRef → Any
  79. def uItem: Parser[ListItem]

    parses an item in an unsorted list

  80. def uList: Parser[UList]

    parses an unordered list

  81. def verbatimXml: Parser[VerbatimXml]

    parses a verbatim xml block

  82. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def lastNoSuccess: NoSuccess

    Definition Classes
    Parsers
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0

  2. def lastNoSuccess_=(x: NoSuccess): Unit

    Definition Classes
    Parsers
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0

Inherited from Parsers

Inherited from AnyRef

Inherited from Any

Ungrouped