1.1.0 • Published 4 years ago

odt2md v1.1.0

Weekly downloads
1
License
GPL-3.0-or-later
Repository
-
Last release
4 years ago

odt2md

far from being perfect, far from being the fastest

it extract styles, images

installation

require w2l (also know as writer2latex) to work. Under debian (require root privilege) :

sudo apt install writer2latex

then install odt2md (require root privilege) :

sudo npm install -g odt2md

run

got to a dir with an odt file an run the script from here :

cd ~/Document/dirWithOdtFile
odt2md ./file.odt

It will produce an output markdown.md file, and extract all the images

be careful if you modify images, and then run the script again, the script will overwrite you modified images

to use with

This was made to work with this markdown-math-editor, you should try it :-)

developpement

clone the source code :

cd ~/scripts/  #or in another dir
git clone https://github.com/Drulac/odt2md.git

got to a dir with an odt file an run the script from here :

cd ~/Document/dirWithOdtFile
node ~/scripts/odt2md/script.js ./file.odt