I am trying to convert a markdown file to docx but the image and tables are not being transferred to the docx. I am doing the following:
require(knitr)
require(markdown)
Knit
knit('test.rmd')
markdownToHTML('test.md', 'test.html', options=c("use_xhml"))
Convert to pdf (The pdf is nicely created)
system("pandoc -s test.html -o test.pdf")
Convert to Word Document (Converts to test.docx but no tables or graphics)
pandoc("test.md",format="docx")
All the tables and images are saved on the same directory inside the 'Figure' folder Do I need to add another argument to pandoc to look for the Figure folder?