Skip to documentation
SLOP

tiny.markdown.InlineLine

Reference tiny.markdown InlineLine

Defined in @"inline".

API (6)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct calls@"inline"Line
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/markdown/src/inline.zig:46

zig
pub const Line = struct {    text: []u8,    spans: []Span,    links: []Link = &.{},    math: []Math = &.{},    images: []Image = &.{},    pub fn deinit(self: *Line, allocator: std.mem.Allocator) void {        for (self.links) |link| allocator.free(link.url);        for (self.math) |math| allocator.free(math.source);        for (self.images) |image| allocator.free(image.url);        if (self.links.len != 0) allocator.free(self.links);        if (self.math.len != 0) allocator.free(self.math);        if (self.images.len != 0) allocator.free(self.images);        allocator.free(self.text);        allocator.free(self.spans);        self.* = undefined;    }};

Source: lib/markdown/src/root.zig:19

zig
pub const InlineLine = @"inline".Line;

Audit

Definitions2
Public names4
Members5
Version26.7.0
Revisiondaab053ee433