From a9e8d0e9c929bec830b086e473ef1362e1f873d9 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Thu, 30 Apr 2026 19:20:16 +0200 Subject: refactor(typst): generalize template --- src/paragraph.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/paragraph.zig') diff --git a/src/paragraph.zig b/src/paragraph.zig index 5395082..82433b5 100644 --- a/src/paragraph.zig +++ b/src/paragraph.zig @@ -51,8 +51,8 @@ test "parse paragraphs" { try doTest(parse, alloc, "[](bar)", "

bar

"); try doTest(parse, alloc, "[foo](bar)", "

foo

"); try doTest(parse, alloc, "hello [foo](bar) world", "

hello foo world

"); - try doTestMath(parse, alloc, "$x$", "

" ++ @embedFile("data/test_content_1.svg") ++ "

"); - try doTestMath(parse, alloc, "$x^2$", "

" ++ @embedFile("data/test_content_2.svg") ++ "

"); + try doTestMath(parse, alloc, "$x$", "

" ++ @embedFile("data/content_1.svg") ++ "

"); + try doTestMath(parse, alloc, "$x^2$", "

" ++ @embedFile("data/content_2.svg") ++ "

"); try doTestError(parse, alloc, "hello *world", Error.ModifierNotClosed); try doTestError(parse, alloc, "hello *wo_rld*", Error.ModifierNotClosed); -- cgit v1.2.3