Skip to content

luckfunc/text-preview

Repository files navigation

Markdown Preview

A lightweight Markdown editor with Monaco syntax highlighting and quick share utilities.

Preview

Markdown Preview

Features

  • Live Markdown editing with Monaco-powered highlighting (JS/TS/JSX code blocks included)
  • Copy the current text or download it as preview.md
  • One-click share link that stores the content in the URL hash (gzip + base64)
  • Dark/Light theme toggle with persistence
  • Responsive layout for desktop and mobile

Usage

  1. Paste or type Markdown in the editor.
  2. Use copy to place the text on your clipboard, share to get a link with the content embedded, or download to save it locally.
  3. Toggle the theme for comfortable reading; the choice is remembered.

Development

This project uses pnpm as the package manager.

pnpm install   # Install dependencies
pnpm dev       # Start the dev server
pnpm build     # Build for production
pnpm preview   # Preview the production build
pnpm lint      # Check for issues
pnpm lint:fix  # Auto-fix where possible

Tech Stack

  • React 18
  • TypeScript
  • Vite
  • Less
  • Monaco Editor
  • Biome (formatting and linting)

About

markdown preview

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors