Skip Navigation

odt: an OpenOffice document parser

hi there,

I've just cut [email protected], an OpenOffice document parser, "automatically" generated from the RelaxNG specification document.

odt also provides odt2md, a command that tries its best to convert an ODT file into a CommonMark one.

$> go install sbinet.org/x/odt/cmd/odt2md@latest
$> odt2md -h
odt2md converts an ODT document into a CommonMark one.

Usage: odt2md [OPTIONS] [INPUT.odt]

Example:

 $> odt2md input.odt
 $> odt2md input.odt > out.md
 $> odt2md -o out.md input.odt
 $> odt2md < input.odt > out.md
 $> odt2md -o out.md < input.odt

Options:
  -o string
    	path to output CommonMark file

$> odt2md ./testdata/simple.odt

# Title

Hello World!

0
0 comments