Skip to content

nh4ttruong/docx2md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Convert .docx to .md (Github)

The python script uses for convert multi .docx file (folder .docx files) to each folder .md files including media source

I wrote it to optimal the time to convert the lab files (.docx) to .md for git up to Github. Note that I just make it for Windows system. If you want to use it on Linux, you have to install as requirement file and change dir path!

Usage

You can specify one or more folder to convert by edit paths list still 'DONEEEEE':

new_folder = "convert_done" #destination after convert
paths = ['C:\\Users\\truon\\Desktop\\HK6\\NT213-BMW\\BT3.1\\only-docx\\', 'C:\\Users\\truon\\Desktop\\HK6\\NT213-BMW\\BT4.1\\only-docx\\', 'C:\\Users\\truon\\Desktop\\HK6\\NT213-BMW\\BT5.1\\only-docx\\'] #list path to convert multi folder
convert(paths)

Requirements

I put the requirement file here.

  • docx==0.2.4 (python-docx)
  • pandoc==2.1

Note: If you can run it on Windows, try to access pandoc and download it!

About

Convert multi .docx files (Word) to multi .md files with media (image source) (github markdown) using pandoc

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages