This repository has been archived on 2026-01-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
riccardo fb45bb918b
All checks were successful
Deploy / lint-build-deploy (push) Successful in 2m10s
fix: use standard Next.js build
2026-01-18 16:56:11 +00:00
2026-01-18 16:40:06 +00:00
2025-05-31 00:41:34 +02:00
2025-02-15 15:19:03 +01:00
2024-11-16 14:35:32 +01:00
2025-02-15 15:19:03 +01:00
2024-11-16 14:17:38 +01:00
2025-02-15 15:19:03 +01:00
2024-11-16 14:35:32 +01:00
2026-01-18 16:56:11 +00:00
2024-11-16 14:17:38 +01:00
2025-02-15 15:19:03 +01:00
2025-02-15 15:19:03 +01:00
2025-02-15 15:19:03 +01:00
2025-02-15 15:30:55 +01:00
2025-02-15 15:19:03 +01:00
2025-02-15 15:19:03 +01:00

markdown2png

A web-based tool built with Next.js that converts Markdown files to PNG images with GitHub-style formatting.

Features

  • Browser-based Markdown to PNG conversion
  • GitHub-style syntax highlighting
  • Live preview
  • High-quality PNG output

Tech Stack

  • Next.js 13.5
  • React 18
  • TypeScript
  • TailwindCSS
  • marked (for Markdown parsing)
  • highlight.js (for syntax highlighting)
  • html-to-image (for PNG conversion)

Requirements

  • Node.js
  • yarn

Installation

  1. Clone the repository:
git clone https://github.com/riccardosenica/markdown2png.git
cd markdown2png
  1. Install dependencies:
yarn

Development

To run the development server:

yarn dev

Open http://localhost:3000 with your browser to see the result.

Available Scripts

  • yarn dev - Runs the development server
  • yarn build - Creates a production build
  • yarn start - Runs the production server
  • yarn lint - Runs ESLint
  • yarn format - Formats code with Prettier
  • yarn typecheck - Runs TypeScript type checking

Usage

  1. Upload your Markdown (.md) file using the file input
  2. Preview your formatted Markdown with syntax highlighting
  3. Click "Convert to PNG" to download your image
Description
PNG converter for Markdown files
Readme MIT 191 KiB
Languages
TypeScript 75.4%
JavaScript 12.1%
CSS 8.4%
Dockerfile 4.1%