diff --git a/stitch b/stitch index a7d8e99..fa5f90f 100755 --- a/stitch +++ b/stitch @@ -1,5 +1,8 @@ #!/usr/bin/env bash +working_dir=$(pwd) +header="$working_dir/header.md" + formatting() { cat < /tmp/mdformatting.md +echo "$header" +# creates a temporary file for formatting +formatting "test" > $header + +if [ -z "$outputname" ] ; then + outputname=test +fi +if [ -f "$outputname" ] ; then + rm "$outputname" +fi +pandoc "$working_dir/header.md" "$directory/*.md" -o "$outputname.pdf" + +rm "$working_dir/header.md"