From 5ecd48d4b9f928beb4143f88e802ee4d9e25a2bd Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Thu, 30 Apr 2026 17:36:52 +0200 Subject: refactor(element): supports more type in root append --- src/link.zig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/link.zig') diff --git a/src/link.zig b/src/link.zig index ecfad83..1fb4a59 100644 --- a/src/link.zig +++ b/src/link.zig @@ -25,10 +25,7 @@ pub fn parse(alloc: Allocator, l: *Lexer) Error!Element { if (!eql(u8, next.content, "](")) return Error.InvalidLink; break; }, - else => { - const in = try content.parse(el.allocator(), l); - el.append(in); - }, + else => el.append(try content.parse(el.allocator(), l)), }; const href = l.next() orelse return Error.InvalidLink; if (href.kind != .literal) return Error.InvalidLink; -- cgit v1.2.3