diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-29 19:55:57 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-29 19:55:57 +0200 |
| commit | afd538d6af0baf8a1861ff2cdef881edbfb57000 (patch) | |
| tree | db41d566c318163cb41916defd7cd274b92a9a43 /src/typst.zig | |
| parent | 0535fa152ae990a28d0b7b9a59e96911074118b8 (diff) | |
feat(): support math content
Diffstat (limited to 'src/typst.zig')
| -rw-r--r-- | src/typst.zig | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/typst.zig b/src/typst.zig deleted file mode 100644 index 9608af5..0000000 --- a/src/typst.zig +++ /dev/null @@ -1,11 +0,0 @@ -const std = @import("std"); -const typst = @cImport(@cInclude("typdown_typst.h")); - -pub fn generateSVG(alloc: std.mem.Allocator, content: []const u8) ![]const u8 { - const source = try alloc.dupeZ(u8, content); - defer alloc.free(source); - const raw_res = typst.typst_generateSVG(source); - const res = try alloc.dupe(u8, std.mem.span(raw_res)); - defer typst.typst_freeString(raw_res); - return res; -} |
