A markdown parser that produces a equivalent HTML document.
It currently supports following HTML tags:
Supports:
Markdown Syntax | HTML Equivalent |
---|---|
# |
<h1> |
## |
<h2> |
### |
<h3> |
- |
<li> |
[]() |
<a></a> |
![]() |
<img> |
> |
<blockquote> |
** text ** |
<b> text </b> |
* text * |
<i> text </i> |
``` int main (){} ``` |
<pre> int main (){} </pre> |
While flushing the output, it takes care of formatting the HTML. Currently, the code works but it's not "smart".
# Heading 1
content 1
## Heading 2
content 2
### Heading 3
content 3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Heading 1</title>
</head>
<body>
<h1>Heading 1</h1>
content 1<br>
<br>
<h2>Heading 2</h2>
content 2<br>
<br>
<h3>Heading 3</h3>
content 3<br>
</body>
</html>
$ sudo sh ci/build-and-install.sh