Use CSDN to share the method of converting md files to pdf format

In order to print the learning materials, I learned how to convert md format files to pdf format, and now I will share a very convenient method with you.
1. On the publish blog page, switch the rich text editor to a markdown editor.
2. Open the md file, copy the content, and paste it to the article publishing interface of CSDN.
3. Select Export, and then select Export as HTML file.

insert image description here
4. Choose any HTML export template.
insert image description here
5. Open this HTML file with Google Chrome, right-click the page and select Print (or press ctrl+p on the keyboard).
6. Select the target printer to save as pdf. The header and footer are checked by default, and it will display the time, file name, and file path when we created the pdf. For the sake of a beautiful pdf, you can uncheck the header and footer.

insert image description here

Guess you like

Origin blog.csdn.net/hold_on_qlc/article/details/130877527