Skip to content

sbolel/paste-to-markdown

Paste to Markdown

Convert rich clipboard HTML into clean, validated Markdown in the browser.

Live demo: sbolel.github.io/paste-to-markdown

Ready to convert Markdown output
Paste to Markdown ready state Paste to Markdown Markdown output

What It Does

  • Pastes rich HTML from documents, email, webpages, and editors.
  • Converts content to Markdown locally in the browser.
  • Supports raw Markdown and preview views.
  • Lets you copy or download the result.
  • Keeps recently cleared content restorable for the current page session.

Privacy

Paste to Markdown runs conversion in your browser. Pasted content is not sent to an app server by this tool, and cleared content is only kept in memory for the current page session so it can be restored. Display preferences such as Markdown flavor may be stored in browser local storage.

Quick Start

Use the live demo, or run it locally:

Supported Node.js versions are ^20.19.0 || >=22.12.0. The .nvmrc file pins the validated local development version. If you use nvm, run:

nvm use

Install dependencies:

npm install

Start the local development server:

npm run dev

Build for production:

npm run build

Preview the production build:

npm run preview

Run the baseline checks:

npm run typecheck
npm run lint
npm run build
npm run audit:prod

Release

  • Pull request titles must follow Conventional Commits so squash merges produce release-ready commits.
  • fix: creates a patch release.
  • feat: creates a minor release.
  • feat!: or BREAKING CHANGE: creates a major release.
  • Releases and GitHub tags are created automatically after merges to main.
  • npm publishing is disabled; releases are GitHub-only.

Project Notes

This app is built with React, TypeScript, and Vite. Markdown conversion uses Turndown and GitHub Flavored Markdown helpers. Markdown preview HTML is sanitized before rendering.

Feedback Wanted

Feedback is welcome on conversion quality, pasted-content edge cases, and README clarity. Please open an issue with a small reproduction if something converts poorly or behaves unexpectedly.

Project Docs

Releases

No releases published

Packages

 
 
 

Contributors

Generated from github/spark-template