md2pdf

pandoc wrapper to convert markdown to pdf
Index Commits Files Refs README
commit 2bbc4c7d947c4efccbd587a429686761b7b6d393
parent a4291f17a4e5540be79d66babbe46692ac679525
Author: mjkloeckner <martinjkloeckner@gmail.com>
Date:   Sat,  6 May 2023 20:34:42 -0300

split long argument into multiple lines

Diffstat:
Mmd2pdf | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/md2pdf b/md2pdf
@@ -10,6 +10,8 @@ filename=$(echo "$1" | sed 's/\.[^.]*$//')
 extension=$(echo "$1" | sed 's/^.*\.//')
 style_path="/home/mk/dox/sync/sync/md2pdf/style.tex"
 output="$filename.pdf"
+input_format="markdown+startnum+tex_math_dollars+implicit_figures"\
+"+grid_tables+backtick_code_blocks"
 
 [ "$extension" != "md" ] && \
     echo "Input file not markdown" && \
@@ -22,11 +24,11 @@ pandoc --pdf-engine=xelatex \
     -V urlcolor=teal \
     -V fontsize:12pt \
     -H $style_path \
-    -f markdown+startnum+tex_math_dollars+implicit_figures+grid_tables \
+    -f $input_format \
     --shift-heading-level-by=-1 \
     -o $output \
     "$filename".md
 
 [ $? -ne 0 ] && exit 3
 
-echo "generated $output successfully"
+echo "\`$output\` generated successfully"