Add doc and base code upon pandoc 1.11