# odt2md

> convert odt file to markdown

Latest version **1.1.0** (published 2020-08-31) · GPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install odt2md
pnpm add odt2md
yarn add odt2md
bun add odt2md
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-08-31 |
| First published | 2020-07-09 |
| Weekly downloads | 0 |
| License | GPL-3.0-or-later |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 68.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | drulac |

## Links

- npm: https://www.npmjs.com/package/odt2md
- npm.io page: https://npm.io/package/odt2md

## Dependencies (4)

- [jsdom](https://npm.io/package/jsdom.md) ^16.4.0
- [pandoc](https://npm.io/package/pandoc.md) ^0.2.0
- [html-to-md](https://npm.io/package/html-to-md.md) ^0.3.5
- [string-width](https://npm.io/package/string-width.md) ^4.2.0

## Recent versions

- 1.1.0 (latest) — 2020-08-31
- 1.0.0 — 2020-07-09

## README

# 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_) :
```bash
sudo apt install writer2latex
```

then install `odt2md` (_require root privilege_) :
```bash
sudo npm install -g odt2md
```

## run

got to a dir with an odt file an run the script from here :
```bash
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](https://github.com/Drulac/markdown-math-editor/), you should try it :-)


# developpement

clone the source code :
```bash
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 :
```bash
cd ~/Document/dirWithOdtFile
node ~/scripts/odt2md/script.js ./file.odt
```

---
_Source: https://npm.io/package/odt2md · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
