This project is easy and fast way to convert your docx
files to html
- Firstly you should to open
word
-file
-setting
-additional
. - Find the
web-document-settings
or something like this. - Open the
encoding
point - In the bottom input box select unicode. Check mark - always use default encoding should turn off.
- Exit menu.
- Exit word document and
approve saving
.
I choose NodeJS
because i 💚 it. NO MORE REASON...
- If you not have installed
NODE
on your PC go on official site - If you install Node - all ready!
Add all files what you want to convert in docs/
folder
Run index.js
script
There are many ways to run script. You can use cmd, terminal inside IDE or other
To run script print in terminal node <<relative-path-to-script>>
For examples
node .\docs\index.js
node .\index.js
Or if you are in the same folder with index.js - src/
folser
node index.js
- DONT DELETE file
html/styles.css
!!! - if you still deleted this file, and you hate the result - create new styles.css in
html/
folder and paste this code inside:
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
gap: 20px;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
img {
margin-bottom: 20px;
transition: 0.4s ease-out;
}
img:hover {
transform: scale(1.06);
transition: 0.2s ease-out;
}
a {
all: unset;
cursor: pointer;
}
a:hover {
text-decoration: underline;
}
h2 {
transition: all 0.2s linear;
}
h2:hover {
display: inline;
text-decoration: underline;
transition: all 0.2s linear;
}
.WordSection1 {
width: 60vw;
margin: 50px auto;
min-width: 315px;
}