Skip to content

TanmayPatil105/md2html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

69 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

A markdown parser that produces a equivalent HTML document.

Support

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>

Formatting

While flushing the output, it takes care of formatting the HTML. Currently, the code works but it's not "smart".

Example

Markdown

# Heading 1
content 1

## Heading 2
content 2

### Heading 3
content 3

HTML

<!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>

Build

$ sudo sh ci/build-and-install.sh