These functions are used to create span nodes. Span nodes are used to represent inline elements in markdown and include things like links, images, code, emphasized text, strong text, and more.

md_span_em(...)

md_span_strong(...)

md_span_a(..., href, title)

md_span_img(..., src, title)

md_span_code(...)

md_span_del(...)

md_span_latexmath(...)

md_span_latexmath_display(...)

md_span_wikilink(..., target)

md_span_u(...)

md_span_ins(...)

md_span_spoiler(...)

md_span_sup(...)

md_span_sub(...)

md_span_mark(...)

md_span_footnote_ref(label, id = 1, ref_id = 1)

Arguments

...

Child nodes that will be contained within the span - all must inherit from md_node.

href

Used by md_span_a nodes to provide the href attribute.

title

Used by md_span_a or md_span_img nodes to provide a title attribute.

src

Used by md_span_img nodes to provide the src attribute.

target

Used by md_span_wikilink nodes to provide the target attribute.

label

Used by md_span_footnote_ref nodes to provide the footnote label (e.g. "1" for [^1]).

id

Used by md_span_footnote_ref nodes to provide the 1-based number of the referenced footnote.

ref_id

Used by md_span_footnote_ref nodes to provide the 1-based index of this reference among all references to the same footnote.

Value

Returns a list with a class of specified type along with md_span and md_node.

See also