Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 920 Bytes

readme.md

File metadata and controls

32 lines (18 loc) · 920 Bytes

⚠️ Disclaimer: Major changes going on. Very unstable to use this package This is just me learning different data structure & trying to implement in the project.

Markdown to HTML Converter

This Go project converts a markdown file to HTML by first generating a DOM (Document Object Model) from the markdown and then converting this DOM into HTML.

diagram

How It Works

  1. Parse Markdown and Generate DOM: The parser package converts the markdown content into a tree-like DOM structure.
  2. Convert DOM to HTML: The html package traverses the DOM and generates the corresponding HTML.

Installation

git clone https://github.com/RoshanShrestha123/markdown-to-html
cd markdown-to-html
go build
./markdown-to-html example.md > output.html

TODO

  • Add support the nested links
  • Add support for in-between tags like, bold, italic, etc...