Maybe use the `--markdown` option for this and keep the extension to `txt` by default otherwise. so

- `--markdown` will produce a single md file and return it on stdout
- `--files DEST` will produce individual `txt` files and write them at `DEST`
- `--markdown --files  DEST` will produce individual `md` files and write them at `DEST`