13 lines
560 B
Plaintext
13 lines
560 B
Plaintext
const PandocOptions = &[_][]const u8{ "pandoc", "out.md", "-o", "out.pdf", "--pdf-engine", "xelatex", "-V", "mainfont:Liberation Mono", "-V", "geometry:margin=0cm" };
|
|
|
|
|
|
try allPrinted.appendSlice(markdownFormatString);
|
|
var pandocProcess = std.process.Child.init(PandocOptions, allocator);
|
|
_ = try pandocProcess.spawnAndWait();
|
|
|
|
try allPrinted.appendSlice(markdownFormatString);
|
|
|
|
try cwd.writeFile(.{ .sub_path = "out.md", .data = allPrinted.items });
|
|
|
|
const markdownFormatString = "```" ++ (" " ** (pageWidth - 4)) ++ "\n";
|