Skip to content

Convert a DOCX file to HTML for easy importing into WordPress.

License

Notifications You must be signed in to change notification settings

jbesw/docx-to-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DOCX-to-HTML converter

This is a simple script that uses the Mammoth and Cheerio libraries to convert DOCX to HTML for WordPress. Simply copy the output HTML into the "Text" tab of posts and pages in WordPress.

The output file is saved in the same directory as the DOCX. Currently, images are ignored but I might add more functionality in the future.

No warranty is implied in this example - please feel free to modify as needed.

Requirements

Installation Instructions

  1. Clone the repo onto your local development machine using git clone.

  2. Run npm install.

  3. To convert a docx file, run the command:

node ./app.js ./myfilename.docx

==============================================

SPDX-License-Identifier: MIT-0

About

Convert a DOCX file to HTML for easy importing into WordPress.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published