Convert docx to qmd

208 views Asked by At

I want to know if there is a way to convert docx to qmd files. I routinely write in qmd then render the file to docx and send it to reviewers and co-autohrs. They edit some parts then send it back to me to apply changes. It would be great if there is a way to convert their revised version to qmd so I can continue working on it.

2

There are 2 answers

1
Gondrala Sai Vinay On

We can't convert docx into qmd file. First we have to make it into md and then by copy pasting the content in that md file into new qmd doc we can convert into qmd.

0
Peter Chung On

You may need to install Pandoc and the Quarto package. By then, you can convert the docx to markdown file using the command line:

pandoc input.docx -f docx -t markdown -o output.md

and then md file to quarto file:

quarto render --to quarto output.md

See if you can work it out.