// readme

copilot/add-markdown-to-html-tool

MD-to-HTML-Parser

Add this to your website: convert Markdown to HTML β€” entirely in the browser, no backend needed.

This open-source project renders Markdown (.md) files as styled HTML using only:

  • One HTML file (index.html)
  • One CSS file (style.css)
  • Standard Markdown files (e.g. example.md)
  • No backend β€” works on GitHub Pages or any static host

Live Demo

Deploy the repo to GitHub Pages and open the URL.
Or serve it locally:

python -m http.server 8080
# then open http://localhost:8080

Usage

  1. Clone this repository
  2. Open index.html in a browser (or any static host)
  3. Edit Markdown in the left panel β€” the right panel updates instantly
  4. Enter any .md file URL in the toolbar and click Load to render it

Project structure

MD-to-HTML-Parser/
β”œβ”€β”€ index.html      # Single-page app β€” fetches & renders Markdown
β”œβ”€β”€ style.css       # Styling for the UI and rendered HTML
β”œβ”€β”€ marked.min.js   # Bundled marked.js library (UMD build, no CDN required)
└── example.md      # Sample Markdown file loaded on startup

How it works

index.html uses…