Copied over pandoc markdown plugin