Skip to content
项目

关于

Convert clipboard from HTML to MD

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
-2
15天
-2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Clipboard to Markdown (Chrome Extension)

Quickly grab content from any page:

  • Ctrl+Shift+M (or click the extension) → pick an element → its HTML is converted to Markdown and copied.
  • Ctrl+Shift+S → pick an element → a PNG screenshot of that element is copied. On macOS these use Control (not Command).

Install

  • Grab the .zip from dist/, and unzip it
    • Or, clone this repo
  • Then in Chrome, open chrome://extensions, enable Developer Mode, click Load unpacked, and select the unzipped/cloned folder.

How it works

  • Triggers Chrome’s inspect overlay so you can click the element you want.
  • For Markdown: grabs the element’s outer HTML, runs Turndown locally, and writes the Markdown to your clipboard.
  • For screenshots: captures a clipped PNG of the element and writes it to your clipboard.
  • The debugger detaches automatically after selection.

Permissions

  • debugger to use CDP for inspect and screenshots.
  • offscreen for the Turndown conversion worker.
  • clipboardWrite/clipboardRead to update the clipboard.
  • activeTab, tabs, scripting to target the current page and run clipboard writes in-page.
  • Turndown is bundled locally (turndown.js).

Credits

turndown.js is from Turndown and is Copyright (c) 2017 Dom Christie under the MIT license.

探索相关项目

加载中…