tiny.markdown.InlineLine
Defined in @"inline".
API (6)
Actions
Public operations.
Fields and members
Public fields and members.
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
| Definitions | 2 |
|---|---|
| Public names | 4 |
| Members | 5 |
| Version | 26.7.0 |
| Revision | daab053ee433 |