Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To flag does not work as advertized #5

Open
alerque opened this issue Apr 5, 2019 · 0 comments · May be fixed by #12
Open

To flag does not work as advertized #5

alerque opened this issue Apr 5, 2019 · 0 comments · May be fixed by #12
Labels

Comments

@alerque
Copy link
Contributor

alerque commented Apr 5, 2019

The --help and readme both mention a -t / --to flag to specify the output format. The readme also includes an example of using pandcritic as a preprocessor. This is exactly what I want to to, but the flag does not actually function as advertised.

$ pancritic - -f markdown -t markdown -m m --critic-template /dev/null <<< "test"
No output file extension nor to-format specified. Default to HTML.


<div id="wrapper">

<p>test</p>

</div>

Note the -f / --from flag does work correctly for the input side of things, and specifying an output file name with -o something.md also works to auto-detect the to format. What cannot be done as advertised is pipe the output into pandoc or anything else as markdown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants