╭ changed ──────────────╮ │src/ui/Repo/Comment.zig│ ╰───────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────╮ │ 9 const Key = xitui.input.Key; │ │10 const Grid = xitui.grid.Grid; │ │11 const Focus = xitui.focus.Focus; │ │12 +const Markdown = @import("Markdown.zig");│ │13 │ │14 pub const page_size = 10; │ │15 │ ╰─────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │213 } │ │214 │ │215 const body_text = if (entry.comment.removed) "(removed)" else entry.comment.event.body; │ │215 - var body_box = try wgt.TextBox.init(allocator, body_text, .{ .border_style = .single, .round_corners = true, .wrap_kind = .word }); │ │216 - errdefer body_box.deinit(allocator); │ │217 - body_box.getFocus().mode = .all; │ │218 - try box.children.put(allocator, body_box.getFocus().id, .{ .widget = .{ .text_box = body_box }, .rect = null, .min_size = null }); │ │216 + var body_frame = try Markdown.Frame.init(allocator, body_text, "", "", session.page_arena); │ │217 + errdefer body_frame.deinit(allocator); │ │218 + try box.children.put(allocator, body_frame.getFocus().id, .{ .widget = .{ .markdown_frame = body_frame }, .rect = null, .min_size = null });│ │219 │ │220 var gap = try wgt.Text.init(allocator, ""); │ │221 errdefer gap.deinit(allocator); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │230 return &self.box.children.values()[metadata_index].widget.box; │ │231 } │ │232 │ │233 - fn body(self: *Item) *wgt.TextBox { │ │234 - return &self.box.children.values()[body_index].widget.text_box; │ │233 + pub fn body(self: *Item) *Markdown.Frame { │ │234 + return &self.box.children.values()[body_index].widget.markdown_frame;│ │235 } │ │236 │ │237 pub fn bodyFocused(self: *Item) bool { │ ╰──────────────────────────────────────────────────────────────────────────────────╯