hi there,
I’ve just cut odt@v0.1.0
, 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!
You must log in or register to comment.