Use a for loop?
for f in *.md; do
pandoc $f --to html > $(basename -s.md $f).html
done
EDIT to fix the adjectival basename call.