aboutsummaryrefslogtreecommitdiff
path: root/src/content.zig
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-04-30 17:36:52 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2026-04-30 17:36:52 +0200
commit5ecd48d4b9f928beb4143f88e802ee4d9e25a2bd (patch)
tree6fd4944a8c81891046c7006336f46b808b56d08d /src/content.zig
parent103efd52b59f77fbfde6a1b7daf65b16c2c26810 (diff)
refactor(element): supports more type in root append
Diffstat (limited to 'src/content.zig')
-rw-r--r--src/content.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content.zig b/src/content.zig
index 067c44f..7e0669a 100644
--- a/src/content.zig
+++ b/src/content.zig
@@ -17,7 +17,7 @@ pub fn parse(alloc: Allocator, l: *Lexer) Error!Element {
switch (v.kind) {
.literal => {
const el = try Element.Literal.init(alloc, v.content);
- content.append(el.element());
+ content.append(el);
},
.bold => content.append(try parseModifier(alloc, l, .bold, "b")),
.italic => content.append(try parseModifier(alloc, l, .italic, "em")),