summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-02-13 16:50:42 +0100
committerJonas Smedegaard <dr@jones.dk>2024-02-13 16:50:42 +0100
commitbf004f395625f42584d9d14c071696d1d63446d9 (patch)
tree2eed05eb078c2be0768b575a6dd8e70948bc41af /bin
parenta55cf99e5fc929e991d2772104985151269d370b (diff)
extract metadata block in helper script any2qmd
Diffstat (limited to 'bin')
-rwxr-xr-xbin/any2qmd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/any2qmd.sh b/bin/any2qmd.sh
index cbacf7b..f7759f5 100755
--- a/bin/any2qmd.sh
+++ b/bin/any2qmd.sh
@@ -13,6 +13,6 @@ else
fi
# use intermediary file (cannot use pipe with quarto wrapper)
-$PANDOC --to commonmark+smart --wrap none --output "$OUTFILE"~ "$INFILE"
+$PANDOC --to commonmark+smart+yaml_metadata_block --standalone --wrap none --output "$OUTFILE"~ "$INFILE"
perl -pe 's/ --- / -- /g; s/\\(?=['"'"'"])//g; s/^- / * /g;' < "$OUTFILE"~ > "$OUTFILE"
rm "$OUTFILE"~