Abdullah Abdelaziz
Abdullah Abdelaziz

Reputation: 589

How to convert `*.docx` into `*.qmd`?

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-authors. 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.

Upvotes: 2

Views: 717

Answers (2)

Peter Chung
Peter Chung

Reputation: 1122

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.

Upvotes: 1

Gondrala Sai Vinay
Gondrala Sai Vinay

Reputation: 1

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.

Upvotes: 0

Related Questions