From bf004f395625f42584d9d14c071696d1d63446d9 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 13 Feb 2024 16:50:42 +0100 Subject: extract metadata block in helper script any2qmd --- bin/any2qmd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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"~ -- cgit v1.2.3