Markdown To HTML Conversion
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:
This is an H1
\=============
This is an H2
\-------------
# This is an H1
\## This is an H2
\###### This is an H6
Lists
Markdown supports ordered (numbered) and unordered (bulleted) lists.
Unordered lists use asterisks, pluses, and hyphens — interchangably — as list markers:
* Red
\* Green
\* Blue
Ordered lists use numbers followed by periods:
1. Bird
\2. McHale
\3. Parish
Images
Inline image syntax looks like this:

Links
Links syntax looks like this:
[an example](http://example.com/ "Title")
Emphasis
Markdown treats asterisks * and underscores (_) as indicators of emphasis:
*single asterisks*
_single underscores_
**double asterisks**
__double underscores__
Blockquotes
Markdown uses email-style > characters for blockquoting:
> This is the first level of quoting.
\>
\> > This is nested blockquote.
Code Block
To indicate a span of code, wrap it with backtick quotes (`):
javascript
function myFunc() {
alert('Hello World!!!');
}
\
Tables
Tables aren’t part of the core Markdown spec, but they are part of GFM:
| header 1 | header 2 | header 3 |
\| --- | ------ |--------- |
| cell 1 | cell 2 | cell 3 |