CalloutBlockParser

io.github.edadma.markdown.CalloutBlockParser

Parser for callout blocks in Markdown.

Implements the syntax: > [!TYPE] or > [!TYPE]: Title where TYPE is the callout type (e.g., note, warning, info)

Attributes

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

Members list

Value members

Concrete methods

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

Check if the lines can start a callout block. Requires that the first line is a blockquote that contains the callout marker syntax.

Check if the lines can start a callout block. Requires that the first line is a blockquote that contains the callout marker syntax.

Attributes

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

Parse a callout block from the given lines.

Parse a callout block from the given lines.

Attributes

Concrete fields

val name: String