01_VSCode markdown editing environment construction

01_VSCode markdown editing environment construction


Preface

Record the entire process of building a Markdown editing environment, and record the problems encountered in the process and their solutions. And when outputting the .docx file format, an error occurs:
Error: Output format needs to be specified.

solution

解决错误信息:
Error: Output format needs to be specified  

1. Install application extensions

Insert image description here

MPE plug-in installation
The installation of the Markdown Preview Enhanced plug-in (MPE for short) is the same as in Simplified Chinese. You also directly search for Markdown Preview Enhanced in the extension and then install it.

Insert image description here

After MPE is installed correctly, the following icon will appear in the upper right corner of the VS Code text editing area (click this icon to achieve real-time rendering and create a new file with the .md suffix)

Insert image description here

2. Install Pandoc

Markdown Preview Enhanced supports pandoc document export features and is compatible with various text formats, such as pdf, Word, html, etc.

The best thing is that you can customize the export style, which greatly reduces the pain of converting Markdown to Word for secondary typesetting.

Go to the Pandoc official website to download the installation package, and then install it directly:

Pandoc official website: https://pandoc.org/installing.html

Insert image description here

3. Set up MPE extensions

Enter the extended settings of MPE and set the executable program path of Pandoc. The default installation path for general installation is:

C:\Program Files\Pandoc\pandoc.exe

Insert image description here

4. Export .docx format file

1. Set the export path.

Set the export path of the article at the beginning of the article:

Insert image description here

2. Right-click the preview position and select Pandoc.

Guess you like

Origin blog.csdn.net/qq_37952052/article/details/130893440