Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/command/pandoc/cmd.ts
3583 views
1
/*
2
* pandoc.ts
3
*
4
* Copyright (C) 2020-2022 Posit Software, PBC
5
*
6
*/
7
8
import { Command } from "cliffy/command/command.ts";
9
10
// pandoc 'command' (this is a fake command that is here just for docs,
11
// the actual processing of 'run' bypasses cliffy entirely)
12
export const pandocCommand = new Command()
13
.name("pandoc")
14
.stopEarly()
15
.arguments("[...args]")
16
.description(
17
"Run the version of Pandoc embedded within Quarto.\n\n" +
18
"You can pass arbitrary command line arguments to quarto pandoc (they will\n" +
19
"be passed through unmodified to Pandoc)",
20
)
21
.example(
22
"Render markdown to HTML",
23
"quarto pandoc document.md --to html --output document.html",
24
)
25
.example(
26
"List Pandoc output formats",
27
"quarto pandoc --list-output-formats",
28
);
29
30