refactor: prepare for library split
This commit is contained in:
parent
edaf3f3cc6
commit
894f7cd831
6 changed files with 66 additions and 30 deletions
|
@ -130,7 +130,7 @@ fn render_file(a: std.mem.Allocator, writer: anytype, content: []const u8, file_
|
|||
}
|
||||
};
|
||||
var ctx: Ctx = .{ .writer = writer, .content = content, .theme = theme };
|
||||
try parser.render(&ctx, Ctx.cb);
|
||||
try parser.render(&ctx, Ctx.cb, null);
|
||||
try ctx.writer.writeAll(content[ctx.last_pos..]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue