:mdfmt and thoughts-fmt support for plain output

master
Mike Gerwitz 2015-05-16 22:37:03 -04:00
parent 683bb384fc
commit 895c2b2dd1
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
2 changed files with 10 additions and 2 deletions

View File

@ -19,4 +19,12 @@
# This processes works written in Markdown.
##
exec pandoc -S -fmarkdown -thtml5
declare to=html5
while getopts nP opt; do
case "$opt" in
n|P) to=plain;;
esac
done
exec pandoc -S -fmarkdown -t"$to"

View File

@ -51,4 +51,4 @@ test "$timestamp" -gt "$md_cutoff" \
|| fmt-old
# it's just that simple.
exec "$(dirname "$0" )"/mdfmt
exec "$(dirname "$0" )"/mdfmt "${all_args[@]}"