+
+ if ($config{markdown_path}) {
+ eval q{use File::Temp};
+ if ($@) {
+ debug(gettext("markdown_path is set, but File::Temp is not installed"));
+ }
+ else {
+ debug("Markdown: $config{markdown_path}");
+ $tempdir=File::Temp::tempdir( CLEANUP => 1 );
+ $markdown_sub=sub {
+ my $content=shift;
+ my $fh;
+ my $filename;
+ ($fh, $filename) = File::Temp::tempfile( DIR => $tempdir );
+ print $fh "$content\n";
+ close($fh);
+ $content = `$config{markdown_path} $filename`;
+ return $content;
+ }
+ }
+ } elsif (exists $config{multimarkdown} && $config{multimarkdown}) {