:mdfmt and thoughts-fmt support for plain output
parent
683bb384fc
commit
895c2b2dd1
10
tools/mdfmt
10
tools/mdfmt
|
@ -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"
|
||||
|
|
|
@ -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[@]}"
|
||||
|
|
Loading…
Reference in New Issue