Fix markdown title and pandoc-style metadata.