#compdef pandoc

_pandoc() {
  local -a args
  args=(
    '-f[Reader format]:FORMAT:(asciidoc biblatex bibtex bits commonmark commonmark_x creole csljson csv djot docbook docx dokuwiki endnotexml epub fb2 gfm haddock html ipynb jats jira json latex man markdown markdown_github markdown_mmd markdown_phpextra markdown_strict mdoc mediawiki muse native odt opml org pod pptx ris rst rtf t2t textile tikiwiki tsv twiki typst vimwiki xlsx xml)'
    '-r[Reader format]:FORMAT:(asciidoc biblatex bibtex bits commonmark commonmark_x creole csljson csv djot docbook docx dokuwiki endnotexml epub fb2 gfm haddock html ipynb jats jira json latex man markdown markdown_github markdown_mmd markdown_phpextra markdown_strict mdoc mediawiki muse native odt opml org pod pptx ris rst rtf t2t textile tikiwiki tsv twiki typst vimwiki xlsx xml)'
    '--from[Reader format]:FORMAT:(asciidoc biblatex bibtex bits commonmark commonmark_x creole csljson csv djot docbook docx dokuwiki endnotexml epub fb2 gfm haddock html ipynb jats jira json latex man markdown markdown_github markdown_mmd markdown_phpextra markdown_strict mdoc mediawiki muse native odt opml org pod pptx ris rst rtf t2t textile tikiwiki tsv twiki typst vimwiki xlsx xml)'
    '--read[Reader format]:FORMAT:(asciidoc biblatex bibtex bits commonmark commonmark_x creole csljson csv djot docbook docx dokuwiki endnotexml epub fb2 gfm haddock html ipynb jats jira json latex man markdown markdown_github markdown_mmd markdown_phpextra markdown_strict mdoc mediawiki muse native odt opml org pod pptx ris rst rtf t2t textile tikiwiki tsv twiki typst vimwiki xlsx xml)'
    '-t[Writer format]:FORMAT:(ansi asciidoc asciidoc_legacy asciidoctor bbcode bbcode_fluxbb bbcode_hubzilla bbcode_phpbb bbcode_steam bbcode_xenforo beamer biblatex bibtex chunkedhtml commonmark commonmark_x context csljson djot docbook docbook4 docbook5 docx dokuwiki dzslides epub epub2 epub3 fb2 gfm haddock html html4 html5 icml ipynb jats jats_archiving jats_articleauthoring jats_publishing jira json latex man markdown markdown_github markdown_mmd markdown_phpextra markdown_strict markua mediawiki ms muse native odt opendocument opml org pdf plain pptx revealjs rst rtf s5 slideous slidy t2t tei texinfo textile typst vimdoc xml xwiki zimwiki)'
    '-w[Writer format]:FORMAT:(ansi asciidoc asciidoc_legacy asciidoctor bbcode bbcode_fluxbb bbcode_hubzilla bbcode_phpbb bbcode_steam bbcode_xenforo beamer biblatex bibtex chunkedhtml commonmark commonmark_x context csljson djot docbook docbook4 docbook5 docx dokuwiki dzslides epub epub2 epub3 fb2 gfm haddock html html4 html5 icml ipynb jats jats_archiving jats_articleauthoring jats_publishing jira json latex man markdown markdown_github markdown_mmd markdown_phpextra markdown_strict markua mediawiki ms muse native odt opendocument opml org pdf plain pptx revealjs rst rtf s5 slideous slidy t2t tei texinfo textile typst vimdoc xml xwiki zimwiki)'
    '--to[Writer format]:FORMAT:(ansi asciidoc asciidoc_legacy asciidoctor bbcode bbcode_fluxbb bbcode_hubzilla bbcode_phpbb bbcode_steam bbcode_xenforo beamer biblatex bibtex chunkedhtml commonmark commonmark_x context csljson djot docbook docbook4 docbook5 docx dokuwiki dzslides epub epub2 epub3 fb2 gfm haddock html html4 html5 icml ipynb jats jats_archiving jats_articleauthoring jats_publishing jira json latex man markdown markdown_github markdown_mmd markdown_phpextra markdown_strict markua mediawiki ms muse native odt opendocument opml org pdf plain pptx revealjs rst rtf s5 slideous slidy t2t tei texinfo textile typst vimdoc xml xwiki zimwiki)'
    '--write[Writer format]:FORMAT:(ansi asciidoc asciidoc_legacy asciidoctor bbcode bbcode_fluxbb bbcode_hubzilla bbcode_phpbb bbcode_steam bbcode_xenforo beamer biblatex bibtex chunkedhtml commonmark commonmark_x context csljson djot docbook docbook4 docbook5 docx dokuwiki dzslides epub epub2 epub3 fb2 gfm haddock html html4 html5 icml ipynb jats jats_archiving jats_articleauthoring jats_publishing jira json latex man markdown markdown_github markdown_mmd markdown_phpextra markdown_strict markua mediawiki ms muse native odt opendocument opml org pdf plain pptx revealjs rst rtf s5 slideous slidy t2t tei texinfo textile typst vimdoc xml xwiki zimwiki)'
    '-o[Output file]:FILE:_files'
    '--output[Output file]:FILE:_files'
    '--data-dir[Directory for data files]:DIRECTORY:_files'
    '-M[Metadata field KEY=VALUE]:KEY[=VALUE]:_files'
    '--metadata[Metadata field KEY=VALUE]:KEY[=VALUE]:_files'
    '--metadata-file[Metadata file]:FILE:_files'
    '-d[Defaults file]:FILE:_files'
    '--defaults[Defaults file]:FILE:_files'
    '--file-scope[Parse files before combining]'
    '--sandbox[Run pandoc in a sandbox]'
    '-s[Include header and footer]'
    '--standalone[Include header and footer]'
    '--template[Custom template file]:FILE:_files'
    '-V[Template variable KEY=VALUE]:KEY[=VALUE]:_files'
    '--variable[Template variable KEY=VALUE]:KEY[=VALUE]:_files'
    '--variable-json[Template variable KEY=JSON]:KEY[:JSON]:_files'
    '--wrap[Text wrapping mode]:auto|none|preserve:(auto none preserve)'
    '--ascii[Prefer ASCII output]'
    '--toc[Include table of contents]'
    '--table-of-contents[Include table of contents]'
    '--toc-depth[Number of TOC levels]:NUMBER:_files'
    '--lof[Include list of figures]'
    '--list-of-figures[Include list of figures]'
    '--lot[Include list of tables]'
    '--list-of-tables[Include list of tables]'
    '-N[Number section headings]'
    '--number-sections[Number section headings]'
    '--number-offset[Starting number for sections]:NUMBERS:_files'
    '--top-level-division[Top-level document division]:section|chapter|part:(section chapter part)'
    '--extract-media[Directory to extract media into]:PATH:_files'
    '--resource-path[Search path for resources]:SEARCHPATH:_files'
    '-H[File to include in the header]:FILE:_files'
    '--include-in-header[File to include in the header]:FILE:_files'
    '-B[File to include before the body]:FILE:_files'
    '--include-before-body[File to include before the body]:FILE:_files'
    '-A[File to include after the body]:FILE:_files'
    '--include-after-body[File to include after the body]:FILE:_files'
    '--no-highlight[Disable syntax highlighting]'
    '--highlight-style[Highlighting style]:STYLE:(pygments tango espresso zenburn kate monochrome breezedark haddock)'
    '--syntax-definition[Syntax definition XML file]:FILE:_files'
    '--syntax-highlighting[Syntax highlighting method]:none|default|idiomatic|<stylename>|<themepath>:(none default idiomatic)'
    '--dpi[DPI for imported images]:NUMBER:_files'
    '--eol[End-of-line characters]:crlf|lf|native:(crlf lf native)'
    '--columns[Line length in characters]:NUMBER:_files'
    '-p[Preserve tabs]'
    '--preserve-tabs[Preserve tabs]'
    '--tab-stop[Tab stop width]:NUMBER:_files'
    '--pdf-engine[Program used to produce PDF]:PROGRAM:(weasyprint wkhtmltopdf pagedjs-cli prince pdflatex lualatex xelatex latexmk tectonic pdflatex-dev lualatex-dev groff pdfroff typst context)'
    '--pdf-engine-opt[Flag to pass to the PDF engine]:STRING:_files'
    '--reference-doc[Custom reference doc]:FILE:_files'
    '--self-contained[Embed resources (deprecated)]'
    '--embed-resources[Embed referenced resources]'
    '--link-images[Link images in ODT rather than embedding]'
    '--request-header[HTTP header NAME=VALUE]:NAME=VALUE:_files'
    '--no-check-certificate[Disable certificate validation]'
    '--abbreviations[File with abbreviations]:FILE:_files'
    '--typst-input[Typst variable KEY=VALUE]:KEY=VALUE:_files'
    '--indented-code-classes[Classes for indented code blocks]:STRING:_files'
    '--default-image-extension[Default extension for images]:extension:_files'
    '-F[External JSON filter]:PROGRAM:_files'
    '--filter[External JSON filter]:PROGRAM:_files'
    '-L[Lua filter script]:SCRIPTPATH:_files'
    '--lua-filter[Lua filter script]:SCRIPTPATH:_files'
    '--shift-heading-level-by[Shift heading level by N]:NUMBER:_files'
    '--base-header-level[Base header level (deprecated)]:NUMBER:_files'
    '--track-changes[Handling of Word track-changes]:accept|reject|all:(accept reject all)'
    '--strip-comments[Strip HTML comments]'
    '--reference-links[Use reference links in HTML]'
    '--reference-location[Location of references]:block|section|document:(block section document)'
    '--figure-caption-position[Figure caption position]:above|below:(above below)'
    '--table-caption-position[Table caption position]:above|below:(above below)'
    '--markdown-headings[Markdown heading style]:setext|atx:(setext atx)'
    '--list-tables[Use list tables for RST]'
    '--listings[Use listings package (deprecated)]'
    '-i[Make list items display incrementally]'
    '--incremental[Make list items display incrementally]'
    '--slide-level[Header level used for slides]:NUMBER:_files'
    '--section-divs[Wrap sections in div tags]'
    '--html-q-tags[Use q tags for quotes in HTML]'
    '--email-obfuscation[Email obfuscation method]:none|javascript|references:(references javascript none)'
    '--id-prefix[Prefix for auto identifiers]:STRING:_files'
    '-T[Window title prefix]:STRING:_files'
    '--title-prefix[Window title prefix]:STRING:_files'
    '-c[CSS style sheet]:URL:_files'
    '--css[CSS style sheet]:URL:_files'
    '--epub-subdirectory[EPUB content subdirectory]:DIRNAME:_files'
    '--epub-cover-image[EPUB cover image]:FILE:_files'
    '--epub-title-page[URL or file for EPUB title page]:true|false:_files'
    '--epub-metadata[EPUB metadata file]:FILE:_files'
    '--epub-embed-font[Font file to embed in EPUB]:FILE:_files'
    '--split-level[Split level for chunked HTML or EPUB]:NUMBER:_files'
    '--chunk-template[Template for chunked HTML paths]:PATHTEMPLATE:_files'
    '--epub-chapter-level[Split level (deprecated)]:NUMBER:_files'
    '--ipynb-output[Handling of ipynb output cells]:all|none|best:(all none best)'
    '-C[Process citations]'
    '--citeproc[Process citations]'
    '--bibliography[Bibliography file]:FILE:_files'
    '--csl[CSL style file]:FILE:_files'
    '--citation-abbreviations[Citation abbreviations file]:FILE:_files'
    '--natbib[Use natbib citations in LaTeX]'
    '--biblatex[Use biblatex citations in LaTeX]'
    '--math-method[Specify method for rendering math in HTML]:METHOD:(plain mathml webtex mathjax katex gladtex)'
    '--mathml[Use MathML for HTML math]'
    '--webtex[Use WebTeX for HTML math]'
    '--mathjax[Use MathJax for HTML math]'
    '--katex[Use KaTeX for HTML math]'
    '--gladtex[Use gladTeX for HTML math]'
    '--trace[Turn on diagnostic tracing]'
    '--dump-args[Print output filename and arguments]'
    '--ignore-args[Ignore command-line arguments]'
    '--verbose[Verbose diagnostic output]'
    '--quiet[Suppress warning messages]'
    '--fail-if-warnings[Exit with error status if there were warnings]'
    '--log[Log messages in JSON format to this file]:FILE:_files'
    '--completion[Shell for which to print the completion script]'
    '--bash-completion[Print bash completion script (deprecated)]'
    '--list-input-formats[List supported input formats]'
    '--list-output-formats[List supported output formats]'
    '--list-extensions[List supported extensions]'
    '--list-highlight-languages[List highlighting languages]'
    '--list-highlight-styles[List highlighting styles]'
    '-D[Format to print template for]:FORMAT:(ansi asciidoc asciidoc_legacy asciidoctor bbcode bbcode_fluxbb bbcode_hubzilla bbcode_phpbb bbcode_steam bbcode_xenforo beamer biblatex bibtex chunkedhtml commonmark commonmark_x context csljson djot docbook docbook4 docbook5 docx dokuwiki dzslides epub epub2 epub3 fb2 gfm haddock html html4 html5 icml ipynb jats jats_archiving jats_articleauthoring jats_publishing jira json latex man markdown markdown_github markdown_mmd markdown_phpextra markdown_strict markua mediawiki ms muse native odt opendocument opml org pdf plain pptx revealjs rst rtf s5 slideous slidy t2t tei texinfo textile typst vimdoc xml xwiki zimwiki)'
    '--print-default-template[Format to print template for]:FORMAT:(ansi asciidoc asciidoc_legacy asciidoctor bbcode bbcode_fluxbb bbcode_hubzilla bbcode_phpbb bbcode_steam bbcode_xenforo beamer biblatex bibtex chunkedhtml commonmark commonmark_x context csljson djot docbook docbook4 docbook5 docx dokuwiki dzslides epub epub2 epub3 fb2 gfm haddock html html4 html5 icml ipynb jats jats_archiving jats_articleauthoring jats_publishing jira json latex man markdown markdown_github markdown_mmd markdown_phpextra markdown_strict markua mediawiki ms muse native odt opendocument opml org pdf plain pptx revealjs rst rtf s5 slideous slidy t2t tei texinfo textile typst vimdoc xml xwiki zimwiki)'
    '--print-default-data-file[Data file to print]:FILE:(reference.docx reference.odt reference.pptx MANUAL.txt docx/_rels/.rels pptx/_rels/.rels abbreviations creole.lua default.csl docbook-entities.txt docx/[Content_Types].xml docx/docProps/app.xml docx/docProps/core.xml docx/docProps/custom.xml docx/word/_rels/document.xml.rels docx/word/_rels/footnotes.xml.rels docx/word/comments.xml docx/word/document.xml docx/word/fontTable.xml docx/word/footnotes.xml docx/word/numbering.xml docx/word/settings.xml docx/word/styles.xml docx/word/theme/theme1.xml docx/word/webSettings.xml dzslides/template.html epub.css init.lua odt/META-INF/manifest.xml odt/content.xml odt/manifest.rdf odt/meta.xml odt/mimetype odt/styles.xml pptx/[Content_Types].xml pptx/docProps/app.xml pptx/docProps/core.xml pptx/ppt/_rels/presentation.xml.rels pptx/ppt/notesMasters/_rels/notesMaster1.xml.rels pptx/ppt/notesMasters/notesMaster1.xml pptx/ppt/notesSlides/_rels/notesSlide1.xml.rels pptx/ppt/notesSlides/_rels/notesSlide2.xml.rels pptx/ppt/notesSlides/notesSlide1.xml pptx/ppt/notesSlides/notesSlide2.xml pptx/ppt/presProps.xml pptx/ppt/presentation.xml pptx/ppt/slideLayouts/_rels/slideLayout1.xml.rels pptx/ppt/slideLayouts/_rels/slideLayout10.xml.rels pptx/ppt/slideLayouts/_rels/slideLayout11.xml.rels pptx/ppt/slideLayouts/_rels/slideLayout2.xml.rels pptx/ppt/slideLayouts/_rels/slideLayout3.xml.rels pptx/ppt/slideLayouts/_rels/slideLayout4.xml.rels pptx/ppt/slideLayouts/_rels/slideLayout5.xml.rels pptx/ppt/slideLayouts/_rels/slideLayout6.xml.rels pptx/ppt/slideLayouts/_rels/slideLayout7.xml.rels pptx/ppt/slideLayouts/_rels/slideLayout8.xml.rels pptx/ppt/slideLayouts/_rels/slideLayout9.xml.rels pptx/ppt/slideLayouts/slideLayout1.xml pptx/ppt/slideLayouts/slideLayout10.xml pptx/ppt/slideLayouts/slideLayout11.xml pptx/ppt/slideLayouts/slideLayout2.xml pptx/ppt/slideLayouts/slideLayout3.xml pptx/ppt/slideLayouts/slideLayout4.xml pptx/ppt/slideLayouts/slideLayout5.xml pptx/ppt/slideLayouts/slideLayout6.xml pptx/ppt/slideLayouts/slideLayout7.xml pptx/ppt/slideLayouts/slideLayout8.xml pptx/ppt/slideLayouts/slideLayout9.xml pptx/ppt/slideMasters/_rels/slideMaster1.xml.rels pptx/ppt/slideMasters/slideMaster1.xml pptx/ppt/slides/_rels/slide1.xml.rels pptx/ppt/slides/_rels/slide2.xml.rels pptx/ppt/slides/_rels/slide3.xml.rels pptx/ppt/slides/_rels/slide4.xml.rels pptx/ppt/slides/slide1.xml pptx/ppt/slides/slide2.xml pptx/ppt/slides/slide3.xml pptx/ppt/slides/slide4.xml pptx/ppt/tableStyles.xml pptx/ppt/theme/theme1.xml pptx/ppt/theme/theme2.xml pptx/ppt/viewProps.xml templates/affiliations.jats templates/after-header-includes.latex templates/article.jats_publishing templates/common.latex templates/default.ansi templates/default.asciidoc templates/default.bbcode templates/default.beamer templates/default.biblatex templates/default.bibtex templates/default.chunkedhtml templates/default.commonmark templates/default.context templates/default.djot templates/default.docbook4 templates/default.docbook5 templates/default.dokuwiki templates/default.dzslides templates/default.epub2 templates/default.epub3 templates/default.haddock templates/default.html4 templates/default.html5 templates/default.icml templates/default.jats_archiving templates/default.jats_articleauthoring templates/default.jats_publishing templates/default.jira templates/default.latex templates/default.man templates/default.markdown templates/default.markua templates/default.mediawiki templates/default.ms templates/default.muse templates/default.opendocument templates/default.openxml templates/default.opml templates/default.org templates/default.plain templates/default.revealjs templates/default.rst templates/default.rtf templates/default.s5 templates/default.slideous templates/default.slidy templates/default.t2t templates/default.tei templates/default.texinfo templates/default.textile templates/default.typst templates/default.vimdoc templates/default.xwiki templates/default.zimwiki templates/document-metadata.latex templates/font-settings.latex templates/fonts.latex templates/hypersetup.latex templates/passoptions.latex templates/styles.citations.html templates/styles.html templates/template.typst translations/af.yaml translations/alt.yaml translations/am.yaml translations/ar.yaml translations/as.yaml translations/ast.yaml translations/az.yaml translations/be.yaml translations/bg.yaml translations/bn.yaml translations/bo.yaml translations/br.yaml translations/bs.yaml translations/bua.yaml translations/ca.yaml translations/ckb-Arab.yaml translations/ckb-Latn.yaml translations/cs.yaml translations/cu.yaml translations/cy.yaml translations/cz.yaml translations/da.yaml translations/de.yaml translations/dsb.yaml translations/el.yaml translations/en.yaml translations/eo.yaml translations/es-ES.yaml translations/es-MX.yaml translations/es.yaml translations/et.yaml translations/eu.yaml translations/fa.yaml translations/fi.yaml translations/fil.yaml translations/fr.yaml translations/fur.yaml translations/ga.yaml translations/gd.yaml translations/gl.yaml translations/grc.yaml translations/gu.yaml translations/ha.yaml translations/he.yaml translations/hi.yaml translations/hr.yaml translations/hsb.yaml translations/hu.yaml translations/hy.yaml translations/ia.yaml translations/id.yaml translations/is.yaml translations/it.yaml translations/ja.yaml translations/ka.yaml translations/km.yaml translations/kmr-Arab.yaml translations/kmr-Latn.yaml translations/kn.yaml translations/ko.yaml translations/la.yaml translations/lb.yaml translations/lo.yaml translations/lt.yaml translations/lv.yaml translations/mk.yaml translations/ml.yaml translations/mn.yaml translations/mr.yaml translations/ms.yaml translations/nb.yaml translations/nko.yaml translations/nl.yaml translations/nn.yaml translations/no.yaml translations/oc.yaml translations/or.yaml translations/pa.yaml translations/pl.yaml translations/pms.yaml translations/pt-BR.yaml translations/pt-PT.yaml translations/pt.yaml translations/rm.yaml translations/ro.yaml translations/ru.yaml translations/se.yaml translations/si.yaml translations/sk.yaml translations/sl.yaml translations/sq.yaml translations/sr-Cyrl.yaml translations/sr-Latn.yaml translations/sr.yaml translations/sv.yaml translations/ta.yaml translations/te.yaml translations/th.yaml translations/tk.yaml translations/tr.yaml translations/ua.yaml translations/ug.yaml translations/uk.yaml translations/ur.yaml translations/vi.yaml translations/zh-Hans.yaml translations/zh-Hant.yaml)'
    '--print-highlight-style[Highlighting style]:STYLE:(pygments tango espresso zenburn kate monochrome breezedark haddock)'
    '-v[Print version]'
    '--version[Print version]'
    '-h[Show help]'
    '--help[Show help]'
    '*:files:_files'
  )
  _arguments -s -S $args
}

_pandoc "$@"

