Convert Markdown with Ditaa plain-text diagrams to Markdown with images.
Run cabal install --global
or cabal install --user
in the source
directory. This will install an executable ditaa-img
to your
cabal sandbox init
cabal install --only-dep
cabal build
# now copy ./dist/build/ditaa-img/ditaa-img somewhere in your $PATH
Ditaa diagram format in github-flavored markdown:
```ditaa
+-----+ +------+
|hello|--->|world!|
+-----+ +------+
```
DITAA_CMD environment variable defines how Ditaa should be called.
INPUT and OUTPUT should be used as placeholders for the file names.
If not set, the default value is ditaa INPUT OUTPUT
.
Run ditaa-img -h
to see command line options.