Start adapting pandoc to markdown syntax