IndentedCodeBlockParser

io.github.edadma.markdown.IndentedCodeBlockParser

Attributes

Graph
Supertypes
trait BlockParser
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def canStart(lines: List[LazyList[C]]): Boolean

Check if the first line in lines can start an indented code block. An indented code block starts with a line indented with at least 4 spaces (or 1 tab) and cannot interrupt a paragraph.

Check if the first line in lines can start an indented code block. An indented code block starts with a line indented with at least 4 spaces (or 1 tab) and cannot interrupt a paragraph.

Attributes

def parse(lines: List[LazyList[C]], linkRefs: Map[String, LinkReference]): (Block, Int)

Parse an indented code block starting at the head of lines. Collects all indented lines until a non-indented, non-blank line is found.

Parse an indented code block starting at the head of lines. Collects all indented lines until a non-indented, non-blank line is found.

Attributes

Concrete fields

val name: String