FencedCodeBlockParser

io.github.edadma.markdown.FencedCodeBlockParser

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 a fenced code block. A fenced code block starts with a line containing either:

Check if the first line in lines can start a fenced code block. A fenced code block starts with a line containing either:

  • 3 or more backticks (
 - 3 or more tildes (~~~) Both can be indented up to 3 spaces.

Attributes

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

Parse a fenced code block starting at the head of lines. Collects all lines until a matching closing fence is found.

Parse a fenced code block starting at the head of lines. Collects all lines until a matching closing fence is found.

Attributes

Concrete fields

val name: String