Wrestled with the RMarkdown, pandoc document settings and won