Module
marksy/inline
src/marksy/inline.pookaGive code spans and links their boundaries before pairing emphasis runs. Delimiters remember the original neighbours, not the text produced by an entity. A resolved link label has its own delimiter scope: emphasis cannot reach through its brackets to borrow an opener outside.
assert inline.parse("an `owl`") == [ast.Text("an "), ast.Code("owl")]
API reference
class Context(definitions: List(links.Definition), options: syntax.Options)
definitions: List(links.Definition)
INFERRED
List(marksy/links.Definition)options: syntax.Options
INFERRED
marksy/syntax.Options
INFERRED
fn(List(marksy/links.Definition), marksy/syntax.Options) -> marksy/inline.Contextclass Token
class Node(value: ast.Inline) is Token
value: ast.Inline
INFERRED
marksy/ast.Inline
INFERRED
fn(marksy/ast.Inline) -> marksy/inline.Nodeclass Delimiter(marker: String, count: Int, opens: Bool, closes: Bool) is Token
marker: String
INFERRED
Stringcount: Int
INFERRED
Intopens: Bool
INFERRED
Boolcloses: Bool
INFERRED
Bool
INFERRED
fn(String, Int, Bool, Bool) -> marksy/inline.Delimiterclass Opener(value: Delimiter, before: List(Token), between: List(Token))
value: Delimiter
INFERRED
marksy/inline.Delimiterbefore: List(Token)
INFERRED
List(marksy/inline.Token)between: List(Token)
INFERRED
List(marksy/inline.Token)
INFERRED
fn(marksy/inline.Delimiter, List(marksy/inline.Token), List(marksy/inline.Token)) -> marksy/inline.Openerparse(source: String) -> List(ast.Inline)
INFERRED
fn(String) -> List(marksy/ast.Inline)parse_with(source: String, definitions: List(links.Definition)) -> List(
ast.Inline
)
INFERRED
fn(String, List(marksy/links.Definition)) -> List(marksy/ast.Inline)Definitions are already collected across the whole document, including child containers. Their order preserves the first-definition-wins rule.
parse_configured(
source: String,
definitions: List(links.Definition),
options: syntax.Options
) -> List(ast.Inline)
INFERRED
fn(String, List(marksy/links.Definition), marksy/syntax.Options) -> List(marksy/ast.Inline)Parse optional extensions without changing ordinary CommonMark behaviour.