From afd538d6af0baf8a1861ff2cdef881edbfb57000 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Wed, 29 Apr 2026 19:55:57 +0200 Subject: feat(): support math content --- src/typst.zig | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/typst.zig (limited to 'src/typst.zig') 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; -} -- cgit v1.2.3