cannot pass null or undefined to markdown