diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-26 21:38:06 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-26 21:38:06 +0200 |
| commit | dca42e27fe9c7d28c72bb6cb8e5cc4ec481572e8 (patch) | |
| tree | 5492f9c4b46b48e58d8002fd36deebd13c059291 /src/root.zig | |
| parent | b0902c05ffc84d282e10a0179e041948d49fabf8 (diff) | |
feat(): support image
Diffstat (limited to 'src/root.zig')
| -rw-r--r-- | src/root.zig | 2 |
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, }; } |
