Markdown is very convenient for writing operational documentation or identification code, especially plain text, which can be managed in Git and recorded after modification. However, I found it inconvenient to convert MD files into PDF files for sharing with others. I tried pandoc conversion before, but the effect was not ideal. After converting to DOCX, the tables and some code backgrounds were messy. So when you search for an article, you can use the Chrome plugin to complete the loading of the local MD file, and then print the PDF format to convert.

Original article, welcome to reprint, reprint please note: ifish.site

Author: JaydenZhou

The recommended plugin is “Markdown Preview Plus”, but after using it, I felt that the themes in it did not meet my requirements. I tried another plugin: “Markdown Viewer”, which had many themes and found the conversion effects I wanted. Here are some operations and effects.

1. Download directly from the Chrome Store (requires scientific Internet access) : Markdown Viewer

2. You can download the offline package from Github (github.com/simov/markd…

Once installed, go to the Manage Extensions page of your plugin, turn on the Allow Access to file URLs switch, and open your local Markdown file in chrome. Here’s what it looks like when I use the theme “MARKDOWN7” :

The corresponding MD is written:

# Level 1 title<font color=red> Red HTML support </font> ** bold ** (' ') actually does not require the parenthesis code block: $ls-lHost name (` ` `) | | use IP | | business network IP | foreign port | | | length testing form demo | | -- - | -- - | -- - | -- - | -- - | -- - | -- - | -- - | | Test1 | test | X.X.X.X | X.X.X.X 111 | | 123123 | length form md | not | | Test2 | | test 22 X.X.X.X | X.X.X.X | 222 | | 123123 | length form data demo2 |Copy the code

If the table is too long, it will compress badly, so we can choose landscape to print. Next, if we want to export the Background of the code block, we can select “Background Graphics”. You can output a nice PDF file.

In addition, amway has several markDown cross-platform editing and preview software that I think are better:

1.haroopad
2.Atom
Copy the code

Refer to the article: blog.csdn.net/AndyNikolas…