pandoc-guide

This project is maintained by lucy1011995

How to Convert Mardown to Word

This guide will explain how to convert a markdown file to a word file.

Tools

Steps

  1. Open a terminal.
  2. Change the directory in your terminal with the cd command (Figure 1).

     cd directory
    
  3. Navigate to your markdown file in the terminal.
  4. Use the pandoc command to covert your markdown file.

     pandoc -s source_file.md -o destination_file.docx
    

    Note if you want to convert images as well, used the following command.

     pandoc -s source_file.md -t markdown --extract-media=images -o destination_file.docx
    
  5. Clean up the newly created file.

Images

cd Command
Figure 1: Using the cd command to switch directories.

Back to the home page