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

Hide "[WARNING] Could not deduce format from file extension .pdc, default to markdown" #425

Open
anntzer opened this issue Mar 20, 2022 · 0 comments

Comments

@anntzer
Copy link

anntzer commented Mar 20, 2022

When compiling a faulty file, e.g.

\oops

with :Pandoc pdf, if the file has e.g. a .pdc extension (one of the default extensions recognized by vim-pandoc as "pandoc's markdown"), the error window prints

# Press q to close this
> pandoc  --to="latex" --output="foo.pdf" --pdf-engine="lualatex" "foo.pdc"
[WARNING] Could not deduce format from file extension .pdc
  Defaulting to markdown
Error producing PDF.
! Undefined control sequence.
l.55 \oops

The first two lines regarding the file format are uninformative and very slightly distracting; they could be removed by passing --from markdown to the pandoc process (after all, vim-pandoc certainly knows that it is passing in a markdown file).

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

No branches or pull requests

1 participant