Trait

net.liftweb.markdown

BlockParsers

Related Doc: package markdown

Permalink

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
Visibility
  1. Public
  2. All

Type Members

  1. class Blockquote extends MarkdownBlock

    Permalink

    Represents a quoted text block.

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

  2. class CodeBlock extends MarkdownBlock

    Permalink

    Represents a block of verbatim qouted code

  3. type Elem = MarkdownLine

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

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

    Permalink
    Definition Classes
    Parsers
  6. class FencedCodeBlock extends MarkdownBlock

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

    Permalink

    Represents a header

  8. type Input = Reader[Elem]

    Permalink
    Definition Classes
    Parsers
  9. abstract class ListBlock extends MarkdownBlock

    Permalink

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

  10. class ListItem extends LineParsers

    Permalink

    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

    Permalink

    A markdown block element.

  12. sealed abstract class NoSuccess extends ParseResult[Nothing]

    Permalink
    Definition Classes
    Parsers
  13. class OList extends ListBlock

    Permalink

    An ordered (i.e.

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

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

    Permalink
    Definition Classes
    Parsers
  15. class Paragraph extends MarkdownBlock

    Permalink

    Represents a paragraph of text

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

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

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

    Permalink
    Definition Classes
    Parsers
  19. class UList extends ListBlock

    Permalink

    An unordered list of items.

  20. class VerbatimXml extends MarkdownBlock

    Permalink

    :? Represents a block of verbatim xml

  21. 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. object Ruler extends MarkdownBlock

    Permalink

    Represents a horizontal ruler

  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[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]

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

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

    Permalink

    Parses any line.

  14. def apply(in: MarkdownLineReader): String

    Permalink

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

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

    Permalink

    Generic apply method to test a single parser

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

    Permalink

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

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

    Permalink

    parses all blocks from the given reader

  18. final def asInstanceOf[T0]: T0

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

    Permalink
  20. def blockquote: Parser[Blockquote]

    Permalink

    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]]

    Permalink

    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]

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

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

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

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

    Permalink

    parses a code block

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

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

    Permalink

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

  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 emptyLine: Parser[EmptyLine]

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

    Permalink

    accepts one or more empty lines

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

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

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

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

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

    Permalink

    speed up block processing by looking ahead

  38. def fencedCodeBlock: Parser[FencedCodeBlock]

    Permalink

    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

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

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

    Permalink
    Definition Classes
    Parsers
  42. def hashCode(): Int

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

    Permalink

    returns the current indentation string repeated the given number of levels

  44. def innerBlock: Parser[MarkdownBlock]

    Permalink

    parses inner blocks (everything excluding xml)

  45. final def isInstanceOf[T0]: Boolean

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

    Permalink

    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]]

    Permalink

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

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

    Permalink

    Parses a line of the given type T

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

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

    Permalink

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

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

    Permalink

    a markdown parser

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

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

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

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

    Permalink

    Parses a line of any type *but* T

  56. final def notify(): Unit

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

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

    Permalink

    parses an item in a sorted list

  59. def oList: Parser[OList]

    Permalink

    parses an ordered list

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

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

    Permalink

    accepts zero or more empty lines

  62. def outerBlock: Parser[MarkdownBlock]

    Permalink

    parses first level blocks (all blocks, including xml)

  63. def paragraph: Parser[Paragraph]

    Permalink

    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]

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

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

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

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

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

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

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

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

    Permalink

    parses a horizontal ruler

  73. def setExtHeader: Parser[Header]

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

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

    Permalink
    Definition Classes
    AnyRef
  76. def toString(): String

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

    Permalink

    parses an item in an unsorted list

  78. def uList: Parser[UList]

    Permalink

    parses an unordered list

  79. def verbatimXml: Parser[VerbatimXml]

    Permalink

    parses a verbatim xml block

  80. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Parsers

Inherited from AnyRef

Inherited from Any

Ungrouped