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.

    Represents a quoted text block. Text in the block is recursively evaluated.

  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.

    Helper class to build lists. Allows easy checking if an item ends with empty lines and recursively builds the content of an item.

  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.

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

  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: Any): Boolean

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

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

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

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

    Definition Classes
    Parsers
  6. object Ruler extends MarkdownBlock

    Represents a horizontal ruler

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

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

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

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

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

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

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

    Parses any line.

  14. def apply(in: MarkdownLineReader): String

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

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

    Generic apply method to test a single parser

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

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

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

    parses all blocks from the given reader

  18. final def asInstanceOf[T0]: T0

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

  20. 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

  21. 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

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

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

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

    Definition Classes
    Parsers
  25. def clone(): AnyRef

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

    parses a code block

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

    Definition Classes
    Parsers
  28. def deco(): Decorator

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

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

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

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

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

    accepts one or more empty lines

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

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

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

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

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

    speed up block processing by looking ahead

  38. 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)

  39. def finalize(): Unit

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

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

    Definition Classes
    Parsers
  42. def hashCode(): Int

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

    returns the current indentation string repeated the given number of levels

  44. def innerBlock: Parser[MarkdownBlock]

    parses inner blocks (everything excluding xml)

  45. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  46. 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

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

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

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

    Parses a line of the given type T

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

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

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

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

    a markdown parser

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

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

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

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

    Parses a line of any type *but* T

  56. final def notify(): Unit

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

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

    parses an item in a sorted list

  59. def oList: Parser[OList]

    parses an ordered list

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

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

    accepts zero or more empty lines

  62. def outerBlock: Parser[MarkdownBlock]

    parses first level blocks (all blocks, including xml)

  63. 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

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

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

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

    Definition Classes
    Parsers
  67. 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.

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

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

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

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

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

    parses a horizontal ruler

  73. def setExtHeader: Parser[Header]

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

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

    Definition Classes
    AnyRef
  76. def toString(): String

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

    parses an item in an unsorted list

  78. def uList: Parser[UList]

    parses an unordered list

  79. def verbatimXml: Parser[VerbatimXml]

    parses a verbatim xml block

  80. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Parsers

Inherited from AnyRef

Inherited from Any

Ungrouped