To convert a doc.md Markdown file into a PDF document, the following command can be used: pandoc -s -o doc.pdf doc.md. Pandoc is able to merge multiple Markdown files into a single PDF document. To generate a single PDF document out of two Markdown files you can use: pandoc -s -o doc.pdf part01.md part02.md. Java Markdown parser with source level AST. With HTML to MD, MD to PDF, MD to DOCX conversion modules.
Markdown is a simple and quick way to format text, but isn't as portable or well-known as PDF or MS Doc(x); Pandoc can seamlessly convert among dozens of formats on many platforms. I’ve been preparing my resume these days. I found that markdown wrote a good resume However: it is extremely painful to convert to PDF, which is very unfriendly to Chinese Finally, we found a better way In order to know that the notes are exported to HTML, then choose to print with chrome This is.
MD is a markup language with a plain-text-formatting syntax. Markdown is often used as a format for documentation and readme files since it allows writing in an easy-to-read and easy-to-write style. Its design allows it to be easily converted to many output formats, but initially it was created to convert the only to HTML. Using the Aspose.HTML class library in your Java application, you can easily convert Markdown into HTML file with just a single line of code!
If your scenario is required rendering Markdown document, for instance, to the Image file format, the following example demonstrates how that is simple.
Markdown Syntax
This article demonstrates the syntax declared in the core Markdown specification and GitLab Flavored Markdown variation. All these features are supported by Aspose.HTML out-of-the-box.
Headers
Markdown supports two styles of headers, Setext and atx:
Lists
Markdown supports ordered (numbered) and unordered (bulleted) lists.
Unordered lists use asterisks, pluses, and hyphens — interchangably — as list markers:
Ordered lists use numbers followed by periods:
Images
Inline image syntax looks like this:
Links
Links syntax looks like this:
Emphasis
Markdown treats asterisks * and underscores (_) as indicators of emphasis:
Blockquotes
Markdown uses email-style > characters for blockquoting:
Code Block
To indicate a span of code, wrap it with backtick quotes (`):
Tables
Tables aren’t part of the core Markdown spec, but they are part of GFM:
Markdown Implementations
Either direct or other lists
- stackoverflow Question 11 lists some and references
Specific implementations
In Python universe, some packages. There are more.
- Markdown with its features
In Perl, there is a package:
Wikipedia has a list that is reproduced here, so that we can add/remove columns and Markdown processors.
Name | Language | Type | Description | Official site |
---|---|---|---|---|
mmd2pdf | Autoit | - | MultiMarkdown to PDF converter | google code |
md2html.awk | Awk | Converter | Markdown to Html | bitbucket |
apache-mod-sundown | C | Apache HTTPd module | Using Sundown C library | github |
Discount | C | Library and HTML converter | - | site |
libpandoc | C | Multiconverter | - | github |
peg-multimarkdown | C | - | Using parsing expressing grammar (PEG) | github, github fork |
peg-markdown | C | - | Using parsing expressing grammar (PEG) | github |
PEG Markdown Highlight | C | Syntax highlighter | Using parsing expressing grammar (PEG) | site |
Sundown | C | - | - | github |
libupskirt | C | Parser | Fork of libsoldout | github |
libsoldout | C | Parser | Simple parser only | site |
Doxygen | C++ | Sourcecode documentation generator | Doxygen supports Markdown with extra features | site |
Cpp-Markdown | C++ | Generator | Markdown to HTML | sourceforge |
RStudio | C++ | IDE for R (programming language) | C++ wrapper for sundown | site |
Qarkdown | C++ | Editor (Qt) | Simple crossplatform Markdown editor using Qt | site |
MarkdownSharp | C# | - | - | google code |
MoonShine | C# | - | - | github |
Sundown.net | C# | - | - | github |
markdown-clj | Clojure | Converter | Generates HTML from Markdown, compiles to both Clojure and ClojureScript | github |
Blackfriday | Go | - | - | github |
Goskirt | Go | - | - | github |
MaTeS | Go | Converter to HTML5 | Creates web pages or presentation slides. Supports citation, tables, math and charts. | site |
Upskirt.go | Go | - | - | github |
Pandoc | Haskell | Converter (Multiformat) | - | site |
Sundown HS | Haskell | - | - | github |
MarkdownJ | Java | - | - | google code |
pegdown | Java | - | - | github |
MarkdownPapers | Java | - | Implementation based on a JavaCC parser | site |
Txtmark | Java | - | - | github |
Markdown4j | Java | - | Extensible markdown java implementation | google code |
Dillinger | JavaScript | Editor | 'WYSIWYM' editor | site, github |
uedit | JavaScript | Editor | 'WYSIWYM' editor | github |
node-discount | JavaScript | - | node.js binding for Discount | github |
markdown-js | JavaScript | - | Parser for JavaScript/node.js | github |
marked | JavaScript | - | A fast markdown parser | github |
PageDown | JavaScript | Webeditor and viewer | Used by Stack Exchange sites | google code and github |
PageDown-Bootstrap | JavaScript | Webeditor and viewer | Fork of PageDown which uses the Twitter Bootstrap template framework | github |
Showdown | JavaScript | Webeditor and viewer | - | site/github |
markdown.pioul.fr | JavaScript | Webeditor and viewer | Minimalist Online Markdown Editor | site |
TextDown | JavaScript | Editor plugin for Chrome | - | chrome store/github |
texts.js | JavaScript | Node.js module | PEG-based grammar, intermediate format in JSON | github |
markdown.lua | Lua | - | - | luaforge |
Lunamark | Lua | Converter | HTML and LaTeX converter | github |
lua-discount | Lua | Binding | - | site |
node-multimarkdown | Node.js | Parser | Native MultiMarkdown extension for Node.js | github |
RobotSkirt | Node.js | - | - | github |
node-markdown | Node.js | - | Parse Markdown syntax with node.js | github |
gfm | Node.js | - | The port of Showdown used on github.com | github |
Markdown | Perl 6 | Parser | Markdown parser in Perl 6 | github |
Markdown.pl | Perl | Converter to (X)HTML | Official author perl markdown implementation | site |
MultiMarkdown | Perl | Converter | Markdowns originals MultiMarkdown superset | site, github |
text-markdown | Perl | Converter to (X)HTML | - | github |
markdown-oo-php | PHP | Converter to (X)HTML | Object-oriented implementation of Markdown | github |
markdown-handler | PHP | Converter to (X)HTML | github | |
PHP Markdown | PHP | Converter to HTML | - | site |
PHP Markdown Extra | PHP | Converter to HTML | Markdown with extra options | site |
PHP Markdown Extended | PHP | Converter to various formats (HTML, MAN, extensible) | Markdown extended syntax | github |
PHP Markdown Viewer | PHP | Viewer | Wrapper for PHP Markdown | site |
secondcrack | PHP | Blog | A static-file Markdown blogging engine | github, site |
qlmarkdown | Objective C | - | A Mac OS X Quicklook extension that uses Discount. | github |
Python-Markdown | Python | - | A implementation with various extensions such as tables and ignoring internal bold/italic markings. | site |
Misaka | Python | Binding | Python binding for Sundown | site |
BlueCloth | Ruby | - | - | site |
BlueFeather | Ruby | - | - | site |
ffi-sundown | Ruby | - | - | github |
gimli | Ruby | Markdown to PDF | - | gimli |
kramdown | Ruby | Library | - | rubyforge |
md2man | Ruby | Converter | Markdown to manpage | github |
markdownr.com | Ruby | Webviewer and Editor | A nifty markdown notepad | site/github |
Maruku | Ruby | Interpreter | - | github |
RDiscount | Ruby | Binding | Ruby binding for Discount | github |
Redcarpet | Ruby | Binding | Ruby binding for Sundown | github |
Knockoff | Scala | - | - | site |
Actuarius | Scala | - | - | site |
Lowdown | Chicken Scheme | Parser library (egg) | Can emit SXML | chicken wiki, Bitbucket |
markdown.bash | Bash | Converter | Markdown to Html | Github |