summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_pandoc
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_pandoc')
-rw-r--r--Completion/Unix/Command/_pandoc68
1 files changed, 34 insertions, 34 deletions
diff --git a/Completion/Unix/Command/_pandoc b/Completion/Unix/Command/_pandoc
index b0fff80d6..797e73eaa 100644
--- a/Completion/Unix/Command/_pandoc
+++ b/Completion/Unix/Command/_pandoc
@@ -113,7 +113,7 @@ _pandoc_defaults_file() {
# choose reference location
(( $+functions[_pandoc_reference_location] )) ||
-_pandoc_reference_location(){
+_pandoc_reference_location() {
local -a policies
policies=(
'block:place references at the end of the current (top-level) block'
@@ -123,22 +123,16 @@ _pandoc_reference_location(){
_describe 'location' policies
}
-# choose top level division
-(( $+functions[_pandoc_top_level_division] )) ||
-_pandoc_top_level_division(){
- _values 'top level division' default section chapter part
-}
-
# choose email obfusication
(( $+functions[_pandoc_email_obfusication] )) ||
_pandoc_email_obfusication(){
local -a policies
policies=(
- 'none:leave mailto: links as they are'
- 'javascript:obfuscates them using JavaScript'
- 'references:obfuscates them by printing their letters as decimal or hexadecimal character references'
+ 'none:leave mailto: links as-is'
+ 'javascript:obfuscate using JavaScript'
+ 'references:obfuscate by printing letters as decimal or hexadecimal character references'
)
- _describe 'obfuscation policy [none]' policies
+ _describe 'e-mail obfuscation policy [none]' policies
}
# choose wrapping policy
@@ -181,26 +175,26 @@ _pandoc_track_changes() {
_arguments -s \
{-f+,-r+,--from=,--read=}'[specify input format]: :_pandoc_format -T input' \
{-t+,-w+,--to=,--write=}'[specify output format]: :_pandoc_format -T output' \
- {-o+,--output=}'[write output to FILE instead of stdout]:file:_files' \
+ {-o+,--output=}'[write output to specified file instead of stdout]:file:_files' \
'--data-dir=[specify the user data directory to search for pandoc data files]:data directory:_files -/' \
{-d+,--defaults=}'[read default from YAML file]: :_pandoc_defaults_file' \
'--shift-heading-level-by=[shift heading levels by specified number]:positive or negative integer: ' \
'!--base-header-level=:number [1]:(1 2 3 4 5)' \
- '!--strip-empty-paragraphs[deprecated. Use the +empty_paragraphs extension instead]' \
- '--indented-code-classes=[classes to use for indented code blocks]:class list (comma-separated)' \
+ '--indented-code-classes=[specify classes to use for indented code blocks]:class list (comma-separated)' \
'--default-image-extension=[specify a default extension to use when image paths/URLs have no extension]:extension: ' \
'--file-scope[parse each file individually before combining for multifile documents]' \
+ '--sandbox=-[run in a sandbox, limiting IO operations]::enable:(true false)' \
{\*-F+,\*--filter=}'[specify an executable to be used as a filter transforming the pandoc AST after the input is parsed and before the output is written]: :_pandoc_filter' \
{\*-L+,\*--lua-filter=}"[transform the document by using pandoc's built-in lua filtering system]: :_pandoc_lua_filter" \
{\*-M+,\*--metadata=}'[set the metadata field KEY to the value VALUE]:key\:value: ' \
'*--metadata-file=[read metadata from file]:YAML or JSON file:_files' \
{-p,--preserve-tabs}'[preserve tabs instead of converting them to spaces]' \
'--tab-stop=[specify the number of spaces per tab]:spaces [4]' \
- '--track-changes=[specifies what to do with insertions, deletions, and comments produced by the MS Word "Track Changes" feature]: :_pandoc_track_changes' \
+ '--track-changes=[specify what to do with insertions, deletions, and comments produced by the MS Word "Track Changes" feature]: :_pandoc_track_changes' \
'--extract-media=[extract media in source document to specified directory]:directory:_files -/' \
- '--abbreviations=[specifies a custom abbreviations file]:file:_files ' \
+ '--abbreviations=[specify a custom abbreviations file]:file:_files ' \
{-s,--standalone}'[produce output with an appropriate header and footer]' \
- '--template=[use FILE as a custom template for the generated document. Implies --standalone]: :_pandoc_template' \
+ '--template=[use specified file as a custom template for the generated document. Implies --standalone]: :_pandoc_template' \
{\*-V+,\*--variable=}'[set the variable KEY to the value VALUE]:key\:value: ' \
'(- :)'{-D+,--print-default-template=}'[print the system default template for an output]:format:( $(pandoc --list-output-formats) )' \
'(- :)--print-default-data-file=[print a system default data file]:file: ' \
@@ -211,43 +205,48 @@ _arguments -s \
{--toc,--table-of-contents}'[include an automatically generated table of contents]' \
'--toc-depth=[specify the number of section levels to include in the table of contents]:number' \
'--strip-comments[strip out HTML comments in the Markdown or Textile source]' \
- '--no-highlight[disables syntax highlighting for code blocks and inlines]' \
- '--highlight-style=[specifies the coloring style to be used in highlighted source code]:style|file:_pandoc_highlight_style' \
+ '--no-highlight[disable syntax highlighting for code blocks and inlines]' \
+ '--highlight-style=[specify coloring style to be used in highlighted source code]: :_pandoc_highlight_style' \
'(- :)--print-highlight-style=[prints a JSON version of a highlighting style]: :_pandoc_highlight_style' \
'--syntax-definition=[load a KDE XML syntax definition file]:file:_files -g "*.xml(-.)"' \
- {\*-H+,\*--include-in-header=}'[include contents of FILE, verbatim, at the end of the header, implies --standalone]:file:_files' \
- {\*-B+,\*--include-before-body=}'[include contents of FILE, verbatim, at the beginning of the document body, implies --standalone]:file:_files' \
- {\*-A+,\*--include-end-body=}'[include contents of FILE, verbatim, at the end of the document body, implies --standalone]:file:_files' \
+ \*{-H+,--include-in-header=}'[include contents of file, verbatim, at the end of the header, implies --standalone]:file:_files' \
+ \*{-B+,--include-before-body=}'[include contents of file, verbatim, at the beginning of the document body, implies --standalone]:file:_files' \
+ \*{-A+,--include-end-body=}'[include contents of file, verbatim, at the end of the document body, implies --standalone]:file:_files' \
'--resource-path=[list of paths to search for images and other resources]:searchpath:_dir_list' \
'--request-header=[set the request header NAME to the value VAL when making HTTP requests]:name\:val: ' \
'--no-check-certificate[disable the certificate verification]' \
'--self-contained[produce a standalone HTML file with no external dependencies, using data: URIs to incorporate the contents of linked scripts, stylesheets, images, and videos. Implies --standalone]' \
+ '--embed-resources=-[produce a standalone HTML document with no external dependencies]::enable:(true false)' \
'--html-q-tags[use <q> tags for quotes in HTML]' \
'--ascii[use only ASCII characters in output, supported only for HTML and DocBook output]' \
'--reference-links[use reference-style links, rather than inline links]' \
'--reference-location=[specify where footnotes (and references, if reference-links is set) are placed (block|section|document)]: :_pandoc_reference_location' \
'--markdown-headings[specify style for level1 and 2 headings in markdown output]:style [atx]:(setext atx)' \
- '!--atx-headers[use ATX-style headers in Markdown and AsciiDoc output]' \
- '--top-level-division=[treat top-level headers as the given division type in LaTeX, ConTeXt, DocBook, and TEI output]: :_pandoc_top_level_division' \
+ '--list-tables=-[render tables as list tables in RST output]::enable(true false)' \
+ '--top-level-division=[treat top-level headers as given division type in LaTeX, ConTeXt, DocBook and TEI output]:top level division:(default section chapter part)' \
{-N,--number-sections}'[number section headings in LaTeX, ConTeXt, HTML, or EPUB output]' \
- '--number-offset=[offset for section headings in HTML output (ignored in other output formats)]:number[number,...] [0]' \
+ '--number-offset=[specify offset for section headings in HTML output (ignored in other output formats)]:number[number,...] [0]' \
'--listings[use the listings package for LaTeX code blocks]' \
{-i,--incremental}'[make list items in slide shows display incrementally (one by one)]' \
- '--slide-level=[specifies that headers with the specified level create slides (for beamer, s5, slidy, slideous, dzslides)]:slide level:(1 2 3 4 5 6)' \
- '--section-divs[wrap sections in <section> tags (or <div> tags for html4)Use the section-divs package for LaTeX code blocks]' \
- '--email-obfusication=[treat top-level headers as the given division type in LaTeX, ConTeXt, DocBook, and TEI output (none|javascript|references)]: :_pandoc_email_obfusication' \
+ '--slide-level=[divide into slides for headers above the specified level (for beamer, s5, slidy, slideous, dzslides)]: :_pandoc_header_levels' \
+ '--section-divs[wrap sections in <section> tags (or <div> tags for html4)]' \
+ '--email-obfusication=[specify method for obfusicating mailto: links in HTML documents]: :_pandoc_email_obfusication' \
'--id-prefix=[specify a prefix to be added to all identifiers and internal links in HTML and DocBook output]:string: ' \
{-T+,--title-prefix=}'[specify STRING as a prefix at the beginning of the title that appears in the HTML header]:string: ' \
{\*-c+,\*--css=}'[link to a CSS style sheet]: :_urls' \
- '--reference-doc=[use the specified file as a style reference in producing a docx or ODT file]:file: ' \
+ '--reference-doc=[use specified file as a style reference in producing a docx or ODT file]:file:_files' \
'--epub-subdirectory=[specify the subdirectory in the OCF container that is to hold the EPUB-specific contents]:directory:_files -/' \
'--epub-cover-image=[use the specified image as the EPUB cover]:file:_files' \
+ '--epub-title-page=-[determine whether title page is included in EPUB]::enable [true]:(true false)' \
'--epub-metadata=[look in the specified XML file for metadata for the EPUB]:file:_files -g "*.xml(-.)"' \
'*--epub-embed-font=[embed the specified font in the EPUB]:file:_files ' \
+ '--split-level=[specify heading level at which to split an EPUB or chunked HTML into separate files]:heading level' \
+ '--chunk-template=[specify filename template for a chunked html document]:template' \
'--epub-chapter-level=[specify the header level at which to split the EPUB into separate "chapter" files]:number:(1 2 3 4 5 6)' \
'--ipynb-output=[specify how to tread ipynb output cells]:method:(all none best)' \
- '--pdf-engine=[use the specified engine when producing PDF output]:program:_pandoc_pdf_engine' \
- '*--pdf-engine-opt=[use the given string as a command-line argument to the pdf-engine]:string:_pandoc_pdf_engine_opts' \
+ '--pdf-engine=[use specified engine when producing PDF output]:program:_pandoc_pdf_engine' \
+ '*--pdf-engine-opt=[use given string as a command-line argument to the pdf-engine]:string:_pandoc_pdf_engine_opts' \
+ '(-C --citeproc)'{-C,--citeproc}'[process citations]' \
"*--bibliography=[set the bibliography field in the document's metadata to specified file]:file:_files -g '*.(bib|bibtex|copac|json|yaml|enl|xml|wos|medline|mods|ris)(-.)'" \
"--csl=[set the csl field in the document's metadata to specified file]:file:_files -g '*.csl(-.)'" \
'--citation-abbreviations=[set the citation-abbreviations field in the document'"'"'s metadata to FILE]:file:_files' \
@@ -257,10 +256,10 @@ _arguments -s \
'--webtex=[convert TeX formulas to <img> tags that link to an external script that converts formulas to images]:: :_urls' \
'--mathjax=[use MathJax to display embedded TeX math in HTML output]:: :_urls' \
'--katex=[use KaTeX to display embedded TeX math in HTML output]:: :_urls' \
- '--gladtex[Enclose TeX math in <eq> tags in HTML output]' \
+ '--gladtex[enclose TeX math in <eq> tags in HTML output]' \
'--trace[enable tracing]' \
- '--dump-args[print information about command-line arguments to stdout, then exit]' \
- '--ignore-args[ignore command-line arguments (for use in wrapper scripts)]' \
+ '!--dump-args' \
+ '!--ignore-args' \
'--verbose[give verbose debugging output]' \
'--quiet[suppress warning messages]' \
'--fail-if-warnings[exit with error status if there are any warnings]' \
@@ -271,6 +270,7 @@ _arguments -s \
'(- :)--list-extensions=[list supported extensions, one per line, preceded by a + or - indicating whether it is enabled by default in FORMAT]:format:_pandoc_all_formats' \
'(- :)--list-highlight-languages[list supported languages for syntax highlighting, one per line]' \
'(- :)--list-highlight-styles[list supported styles for syntax highlighting, one per line]' \
+ '(- :)--print-highlight-style=[print JSON version of a highlighting style]: :_pandoc_highlight_style' \
'(- :)'{-v,--version}'[print version]' \
'(- :)'{-h,--help}'[print help]' \
'*:file:_files'