copy-as-md

A Chrome extension that copies the page selection as Markdown. The converter underneath is also a self-contained library — paste HTML below to try it.

What it handles

~230 lines of vanilla JS, 35 jsdom-backed tests. The same module loads in a Chrome MV3 content script and in Node — no DOM shim, no bundler.