far from being perfect, far from being the fastest
it extract styles, images
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
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
This was made to work with this markdown-math-editor, you should try it :-)
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