pandoc dir/*.md --to html
should work. pandoc dir/*.md --to html
should work. for f in *.md; do
pandoc $f --to html > $(basename -s.md $f).html
done
EDIT to fix the adjectival basename call. for f (*.md) pandoc $f --to html > $f:r.html
personally I find that when I can fit a loop on a single line in zsh I'm much more inclined to use them