aboutsummaryrefslogtreecommitdiff
path: root/src/root.zig
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-04-26 21:38:06 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2026-04-26 21:38:06 +0200
commitdca42e27fe9c7d28c72bb6cb8e5cc4ec481572e8 (patch)
tree5492f9c4b46b48e58d8002fd36deebd13c059291 /src/root.zig
parentb0902c05ffc84d282e10a0179e041948d49fabf8 (diff)
feat(): support image
Diffstat (limited to 'src/root.zig')
-rw-r--r--src/root.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/root.zig b/src/root.zig
index 185e6b6..5062832 100644
--- a/src/root.zig
+++ b/src/root.zig
@@ -14,6 +14,7 @@ inline fn getErrorCode(err: Error) u8 {
Error.InvalidTitleContent => 5,
Error.IllegalPlacement => 6,
Error.InvalidLink => 7,
+ Error.InvalidImage => 8,
};
}
@@ -27,6 +28,7 @@ export fn typdown_getErrorString(code: u8) [*:0]const u8 {
5 => "invalid title content",
6 => "illegal placement",
7 => "invalid link",
+ 8 => "invalid image",
else => unreachable,
};
}