First, you need to install Pandoc, download the address:The hyperlink login is visible.
Pandoc can complete the mutual conversion of multiple file types, and the supported file formats can be found on the official website.
The Pandoc commands are used by:
pandoc <files> <options>
where <files> is the input content, the input can be from a file, a standard input or even a web link. and <options> is a parameter option. The main parameter options are:
-f<format>, -r<format>: Specify the input file format, default to Markdown;
-t<format>, -w<format>: Specify the output file format, default to HTML;
-o<file>: Specify the output file, which will be output to the standard output by default;
--highlight-style<style>: Set the code highlight theme, default to pygments;
-s: Generate a separate file with a head and tail (HTML, LaTeX, TEI or RTF);
-S: Smart mode, judge the format of the file based on it;
--self-contained: Generates self-contained files, valid only when outputting HTML documents;
--verbose: Turn on Verbose mode for debugs;
--list-input-formats: lists supported input formats;
--list-output-formats: lists supported output formats;
--list-extensions: lists supported Markdown extension schemes;
--list-highlight-languages: lists programming languages that support code highlighting;
--list-highlight-styles: lists supported code highlight themes;
-v、--version: Displays the version number of the program;
-h、--help: Displays the program's help information.
Pandoc converts Markdown to Word document scripts in bulk as follows:
The renderings are as follows:
|