Packages

o

laika.markdown

InlineParsers

object InlineParsers

Provides all inline parsers for Markdown text except for those dealing with verbatim HTML markup which this library treats as an optional feature that has to be explicitly mixed in.

Inline parsers deal with markup within a block of text, such as a link or emphasized text. They are used in the second phase of parsing, after the block parsers have cut the document into a (potentially nested) block structure.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InlineParsers
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type RecParser = (String) ⇒ List[Span]

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def em(char: Char)(implicit recParsers: RecursiveSpanParsers): PrefixedParser[Emphasized]

    Parses a span of emphasized text enclosed by one occurrence of the specified character.

  7. val enclosedByAsterisk: SpanParserBuilder

    Parses either strong spans enclosed in double asterisks or emphasized spans enclosed in single asterisks.

  8. def enclosedByDoubleChar(c: Char)(implicit recParsers: RecursiveSpanParsers): PrefixedParser[List[Span]]

    Parses a span enclosed by two consecutive occurrences of the specified character.

    Parses a span enclosed by two consecutive occurrences of the specified character. Recursively parses nested spans, too.

  9. def enclosedBySingleChar(c: Char)(implicit recParsers: RecursiveSpanParsers): PrefixedParser[List[Span]]

    Parses a span enclosed by a single occurrence of the specified character.

    Parses a span enclosed by a single occurrence of the specified character. Recursively parses nested spans, too.

  10. val enclosedByUnderscore: SpanParserBuilder

    Parses either strong spans enclosed in double underscores or emphasized spans enclosed in single underscores.

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. val escapedChar: Parser[String]

    Parses a single escaped character, only recognizing the characters the Markdown syntax document specifies as escapable.

    Parses a single escaped character, only recognizing the characters the Markdown syntax document specifies as escapable. The | has been added to that list to support escaping in tables in the GitHub Flavor syntax.

    Note: escaping > is not mandated by the official syntax description, but by the official test suite.

  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. val image: SpanParserBuilder

    Parses an inline image.

    Parses an inline image. Recognizes both, an inline image ![text](url) and an image reference ![text][id].

  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. val lineBreak: SpanParserBuilder

    Parses an explicit hard line break.

  20. lazy val link: SpanParserBuilder

    Parses a link, including nested spans in the link text.

    Parses a link, including nested spans in the link text. Recognizes both, an inline link [text](url) and a link reference [text][id].

  21. val literalSpan: SpanParserBuilder

    Parses a literal span enclosed by one or more backticks.

    Parses a literal span enclosed by one or more backticks. Does neither parse nested spans nor Markdown escapes.

  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. val simpleLink: SpanParserBuilder

    Parses a simple inline link in the form of <http://someURL/>

  26. def span(start: PrefixedParser[Any], end: PrefixedParser[String])(implicit recParsers: RecursiveSpanParsers): PrefixedParser[List[Span]]

    Creates a parser for an inline span based on the specified parsers that represent the start and end condition.

    Creates a parser for an inline span based on the specified parsers that represent the start and end condition.

    start

    the parser that parses the beginning of the span, result will be discarded

    end

    the end delimiter of the span

  27. def strong(char: Char)(implicit recParsers: RecursiveSpanParsers): PrefixedParser[Strong]

    Parses a span of strong text enclosed by two consecutive occurrences of the specified character.

  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped