fixed type error when markdown is not installed