convert .docx to .md
Project description
docx2md
Converts Microsoft Word document files (.docx extension) to Markdown
files.
Install
pip install docx2md
How to use
usage: python -m docx2md [-h] [-m] [-v] [--debug] SRC.docx DST.md positional arguments: SRC.docx Microsoft Word file to read DST.md Markdown file to write optional arguments: -h, --help show this help message and exit -m, --md_table use Markdown table notation instead of <table> -v, --version show version --debug for debug
Tables
A table is output as <table id="table(n)">. id is the order of
output, starting from 1.
If --md_table is specified, the output will use |, but the title
line item will be # fixed.
| # | # | # | |---|---|---| |a|b|c| |d|e|f| |g|h|i|
Pictures
Images will be output as <img id="image(n)">. The id is output
in order starting from 1.
Examples
Elements that can be converted
Tables (including merged cells)
Lists (also with numbers as bullets)
Headings
Embedded images
Page breaks (converted to <div class="break"></div>)
Line breaks within paragraphs (converted to <br>)
Text boxes (inserted in the body)
Elements that cannot be converted (only known ones)
Table of Contents
Text decoration (bold and etc…)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file docx2md-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: docx2md-1.0.1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7676359a3bc973505249eb8f56f4774397f9658b4e9c0624be10f454fc923f7b |
|
MD5 | 8a7b85f62dbd2a85bb40303c6a92261f |
|
BLAKE2b-256 | 3a1cab1624a638bdc70c4781ec1a830c7747ec580e22ab0e2262e0073c55631e |