diff options
author | Jonas Smedegaard <dr@jones.dk> | 2024-02-13 16:50:42 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-02-13 16:50:42 +0100 |
commit | bf004f395625f42584d9d14c071696d1d63446d9 (patch) | |
tree | 2eed05eb078c2be0768b575a6dd8e70948bc41af /bin | |
parent | a55cf99e5fc929e991d2772104985151269d370b (diff) |
extract metadata block in helper script any2qmd
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/any2qmd.sh | 2 |
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"~ |