{"body":"sub panexec(Str() :$content, :$defaults, :@filters) is export {\n    my @cmd = </usr/bin/pandoc -t pdf>;\n    @cmd.append: ['--defaults', $defaults] if $defaults;\n    if @filters { for @filters { @cmd.append: ['--filter', $_]; } }\n    my $cmd = Proc::Async.new(:w, |@cmd);\n    my $document = $cmd.stdout(:bin);\n    $cmd.start;\n    $cmd.print: $content;\n    $cmd.close-stdin;\n    return $document;\n}","name":"moritz: nice, got it working the same as before like so; now time to see if I can capture errors, thanks for your help! :)","extension":"txt","url":"https://www.irccloud.com/pastebin/BU1txtpN/moritz%3A+nice%2C+got+it+working+the+same+as+before+like+so%3B+now+time+to+see+if+I+can+capture+errors%2C+thanks+for+your+help%21+%3A%29","modified":1602063964,"id":"BU1txtpN","size":396,"lines":11,"own_paste":false,"theme":"","date":1602063964}