internal/context

Types

pub type Context {
  Context(
    cache: cache.Cache,
    state: parser.ParseState,
    stack: List(String),
    doc: document.Document,
    nest: List(Nest),
  )
}

Constructors

pub type Nest {
  NestItem(indent: Int)
  NestBlockQuote
}

Constructors

  • NestItem(indent: Int)
  • NestBlockQuote

Values

pub fn advance_line(ctx: Context) -> Context
pub fn advance_line_with_blocks(
  ctx: Context,
  blocks: List(document.Block),
) -> Context
pub fn for_inlines(ctx: Context, raw: String) -> Context
pub fn from_string(text: String) -> Context
pub fn merge(
  ctx: Context,
  other: Context,
  blocks: List(document.Block),
) -> Context

Returns a Context with links and footnotes merged from other.

pub fn update_blocks(
  ctx: Context,
  blocks: List(document.Block),
) -> Context
Search Document