add markdown directive and change posts to markdown format