mirror of
https://github.com/jbowdre/capsule.git
synced 2024-12-26 01:52:19 +00:00
remove empty/trailing spaces
This commit is contained in:
parent
0521ce3e3a
commit
c68026a748
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@ for file in "$input_dir"/*.md; do
|
|||
fi
|
||||
fi
|
||||
|
||||
# Remove empty/trailing spaces
|
||||
sed -i 's/[ \t]*$//' "$input_dir/$file"
|
||||
|
||||
# Convert Markdown to GMI
|
||||
/usr/local/bin/md2gmi -i "$input_dir/$file" -o "$output_dir/${file%.md}.gmi"
|
||||
# Remove first line (and blank lines which follow) from output file (gempost will render the title)
|
||||
|
|
Loading…
Reference in a new issue