added markdown flatpages support