Skip to content

nuwandev/markdown-to-html-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Markdown to HTML Converter (Vanilla JS)

Overview

A quick exercise: built a small Markdown → HTML converter in JavaScript.

Purpose:

  • Stress-test string manipulation and regex-driven parsing (capture groups, flags, lazy vs greedy matching, order-dependent transforms).
  • No libraries, no markdown engines — just core logic.

Features

  • Converts basic Markdown syntax (headings, bold, italics, code, lists, etc.) to HTML.
  • All logic written from scratch using JavaScript's String and RegExp APIs.
  • Simple, clean UI for input and preview (polished with CSS).

How to Use

  1. Open index.html in your browser.
  2. Type Markdown into the left textarea.
  3. See the raw HTML and live preview update instantly.

File Structure

  • index.html — Main HTML structure
  • styles.css — UI styling
  • app.js — Markdown parsing and DOM logic

Why?

  • Practice advanced regex and string manipulation in JS
  • Explore order-dependent parsing challenges
  • No reliance on third-party libraries

This is a learning project, not a production-ready Markdown engine.

About

A lightweight Markdown to HTML converter built with vanilla JavaScript. No dependencies, just regex and string manipulation with live preview. Learning project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors