If no input-files are specified, input is read from
stdin. Output goes to stdout by default. For output to
a file, use the -o
option:
pandoc -o output.html input.txt
By default, pandoc produces a document fragment. To produce a
standalone document (e.g. a valid HTML file including
<head>
and <body>
), use the
-s
or --standalone
flag:
pandoc -s -o output.html input.txt
For more information on how standalone documents are produced, see Templates below.
If multiple input files are given, pandoc will concatenate them all
(with blank lines between them) before parsing. (Use
--file-scope
to parse files individually.)