broken
This commit is contained in:
parent
26acd2e815
commit
f3c829e3d5
17
stitch
17
stitch
@ -1,5 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
working_dir=$(pwd)
|
||||||
|
header="$working_dir/header.md"
|
||||||
|
|
||||||
formatting() {
|
formatting() {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
---
|
---
|
||||||
@ -11,4 +14,16 @@ geometry: margin=1in
|
|||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
formatting $1 > /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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user