Closed timothymillar closed 3 years ago
It would be useful if codebraid could read directly from stdin. This would allow for piping the output of a pandoc command into codebraid e.g.:
pandoc --filter <filter> --to markdown | codebraid pandoc ...
A common way to implement this in argparse is to use - to specify reading from stdin e.g.:
argparse
-
pandoc --filter <filter> --to markdown | codebraid pandoc - -o result.md
Thanks for the suggestion! This should work with the last commit. I'll put a new version on PyPI as soon as I address a few other issues.
It would be useful if codebraid could read directly from stdin. This would allow for piping the output of a pandoc command into codebraid e.g.:
A common way to implement this in
argparse
is to use-
to specify reading from stdin e.g.: