Martdown->html->pdf (reprint)

Source: Internet
Author: User

convert markdown files to PDF

Recently in the use of Markdown write technical essay, feel very good, can sometimes need it markdown file converted to PDF, on-line check, this can be achieved with pandoc, can feel too troublesome, but also to install Pdflatex:

Since I previously used chrome to export the Web page as a PDF file, I wanted to make the markdown file into HTML, and then chrome to convert it to PDF, which is recorded here, and it's easy for me to check later.

First, install the Markdownpad

Website: http://markdownpad.com
This is the WYSIWYG editor, and I'm mainly used to convert the markdown file to an HTML file.
Of course there are other tools, such as Oschina's online editor: Http://www.ostools.net/markdown

Second, export HTML file

Markdownpad can export HTML directly, such as the export operation of this article:

I won't say much here, just save the disk.

Third, export PDF file

1. Open the HTML file with chrome and select the "print" option
In fact, when you successfully export to an HTML file, the Chrome browser will open automatically (I feel this depends on the default browser settings), select the "Print" option:


2. Output PDF file
This shows only simple output, which is done in the default format.
In the print page, change "target" to "Save as PDF" and click "Save":

Select the path in the Pop-up dialog box to save.

All right, that's it, I hope it helps you.

Martdown->html->pdf (reprint)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.