aboutsummaryrefslogtreecommitdiff
path: root/src/root.zig
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-04-26 23:10:17 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2026-04-26 23:17:26 +0200
commitde948492e8b38a79d5db9c506c1b7b82e86c6b12 (patch)
tree122e4c004d37193c64d6b8b89d9a252f7e237cfa /src/root.zig
parentae6ee68d6f4ef79fef609b4d09b543fc06326e95 (diff)
feat(): support code block
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 5062832..9da89af 100644
--- a/src/root.zig
+++ b/src/root.zig
@@ -15,6 +15,7 @@ inline fn getErrorCode(err: Error) u8 {
Error.IllegalPlacement => 6,
Error.InvalidLink => 7,
Error.InvalidImage => 8,
+ Error.InvalidCodeBlock => 9,
};
}
@@ -29,6 +30,7 @@ export fn typdown_getErrorString(code: u8) [*:0]const u8 {
6 => "illegal placement",
7 => "invalid link",
8 => "invalid image",
+ 9 => "invalid code block",
else => unreachable,
};
}