
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
HTML and Markdown, perfected for pasting into documents, emails, and more. So isomorphic. lol.
MarkPaste is an isomorphic tool that converts rich text to Markdown. It works seamlessly in both the browser as a web application and in Node.js as a library.
index.html.MarkPaste can be used programmatically in Node.js environments. It uses linkedom to provide a lightweight DOM implementation for the conversion logic.
import {convert} from './src/index.js';
const html = '<h1>Hello World</h1><p>This is <b>bold</b> text.</p>';
// Basic usage (defaults to Turndown)
const markdown = await convert(html);
console.log(markdown);
// Using Pandoc
const pandocMarkdown = await convert(html, {converter: 'pandoc'});
console.log(pandocMarkdown);
// Disabling HTML cleaning
const rawMarkdown = await convert(html, {clean: false});
To run MarkPaste locally:
Clone & Install:
git clone https://github.com/paulirish/markpaste.git
cd markpaste
pnpm install
Start the Web UI:
pnpm start
Access the application at http://localhost:7025.
The project uses a dual-testing strategy:
pnpm test:node).pnpm test:web).Run all tests with:
pnpm test
The pandoc.wasm and pandoc.js files used in this project originate from the haskell-wasm/pandoc-wasm project. Since GitHub Actions artifacts are cleaned up after ~90 days and the upstream repository hadn't run its CI recently, a fork was created to generate fresh build artifacts. The files in this project were obtained from that fork's GitHub Actions build artifacts.
This project is licensed under the Apache License 2.0. See LICENSE for details.
FAQs
HTML and Markdown, perfected for pasting into documents, emails, and more. So isomorphic. lol.
The npm package markpaste receives a total of 35 weekly downloads. As such, markpaste popularity was classified as not popular.
We found that markpaste demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.