internal/context
Types
pub type Context {
Context(
cache: cache.Cache,
state: parser.ParseState,
stack: List(String),
doc: document.Document,
nest: List(Nest),
)
}
Constructors
-
Context( cache: cache.Cache, state: parser.ParseState, stack: List(String), doc: document.Document, nest: List(Nest), )
Values
pub fn advance_line_with_blocks(
ctx: Context,
blocks: List(document.Block),
) -> 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