Clip2MD998 downloadsClip2MD 一键剪藏全网内容为纯净Markdown,自动同步至Obsidian,让每一次浏览都沉淀为你的私人知识资产.
1.0.21:修复扫码授权后插件持续等待的问题;本机保存失败会显示错误并允许重试,领取超时后自动恢复。
安装前请检查 Obsidian 版本:需要 1.13.1 或更高版本。 若安装提示 “No appropriate version found.”,请先在 设置 → 关于 查看 Obsidian 版本;版本低于 1.13.1 时,请升级 Obsidian 后重试。移动端请通过应用商店或官方安装渠道更新。
Requires Obsidian 1.13.1 or later. If installation shows “No appropriate version found.”, check your Obsidian version in Settings → About. If it is older than 1.13.1, update Obsidian and try again. On mobile, update through your app store or official installation channel.
Clip2MD is an Obsidian plugin that turns captured web content into clean Markdown and syncs completed clipping tasks to your knowledge base. It can save images locally, preserve task metadata, update previously synchronized notes, and organize files with customizable folder and filename templates.
Requires Obsidian 1.13.1 or later on desktop or mobile, a Clip2MD account or valid API Key, and an internet connection. The plugin connects to the Clip2MD service to bind your device, fetch completed tasks, and download images.
Install Clip2MD from Community plugins, enable it, and open its settings. Bind the current device, choose a destination folder, then run the sync command. Credentials and sync progress are stored separately on each device; bind each device individually even when they share a vault. Community-market updates are managed through Obsidian's plugin updater.
For a manual installation, download main.js, manifest.json, and styles.css
from the same release and place them in .obsidian/plugins/clipmd/.
将网页剪藏内容转换为 Markdown,并同步到 Obsidian。Clip2MD 负责网页内容的提取与整理,Obsidian 插件负责把已完成的剪藏任务写入你的 Vault。
在设置中加载当前账号的博主订阅,或使用“打开博主订阅”命令。可配置统一目录模板、单博主目录、同步范围、索引和日报目录;保存后点击“立即同步”。分目录默认关闭,目录变更仅影响新文件。已有订阅笔记保持原路径,并保护“我的批注”和管理区域外文字。评论补充、日报和索引提供本地关联链接。
受管理正文被修改时暂停覆盖,面板可比较内容、保留本地修改或确认备份后更新。旧笔记无法确认是否包含用户编辑时必须确认升级,原正文会保留;备份在知识库 .clip2md-subscription-backups/。仅同步现有任务,购买、续订和云端重试使用网页管理入口。此功能需要兼容后端;不提供未读、稍后读或收藏状态。
{{source_title}} 引用原文标题;原文标题为空时输出空字符串,默认模板不变。插件通过 Obsidian 社区插件目录审核后,可以在 Obsidian 中打开:
从 GitHub Releases 下载与版本号对应的以下文件,并放入 Vault 的 .obsidian/plugins/clipmd/ 目录:
main.jsmanifest.jsonstyles.css然后在 Obsidian 的 设置 → 社区插件 中启用 Clip2MD。
默认情况下,笔记会保存到 Vault 根目录下的 Clip2MD 文件夹,文件名格式为 {{created_date}}-{{title}}。
“本地删除或改名后不再补回”默认关闭,仅对当前 Vault 生效。开启后,插件按任务 ID 记住原同步文件已删除、改名或移动的任务,后续同步会单独统计并忽略它们;原文件还在的任务继续更新,同一网址重新剪藏的新任务继续同步。关闭开关后的下一次同步会尝试恢复这些任务;网络或写入失败时保留恢复资格,原路径被其他文件占用时不会覆盖已有文件。此设置与网页上的“同步成功后删除原任务”相互独立。
插件会在配置异常恢复前创建 .obsidian/.clip2md-config-backup/ 配置备份。备份包含同步设置和状态,但会主动移除 API Key;如果从备份恢复,需重新填写 API Key。该目录属于运行数据,不应提交到 GitHub。
点击“复制绑定码”时,插件只会把当前一次性绑定码写入系统剪贴板;插件不会读取剪贴板中原有的内容,也不会上传剪贴板内容。若系统剪贴板不可用,绑定码会改为显示在 Obsidian 提示中。
本仓库是官方 Obsidian 社区插件市场的独立源码仓库。安装依赖并执行完整校验:
npm ci
npm run verify
本插件的 manifest ID 为 clipmd;Clip2MD 是展示名称,手动安装目录必须使用
.obsidian/plugins/clipmd/。
Install Clip2MD from the Obsidian Community Plugins browser after the plugin is
approved. For manual installation, download main.js, manifest.json, and
styles.css from the matching GitHub Release and place them in
.obsidian/plugins/clipmd/ inside your vault. Then enable the plugin in
Settings → Community plugins.
Open Settings → Community plugins → Clip2MD, connect your account with the QR code or API key, choose a target folder, and click Sync now. The plugin downloads completed clipping tasks as Markdown files and can also save images locally. The ribbon button and command palette provide the same sync action. The optional advanced setting to keep locally deleted, renamed, or moved notes from reappearing applies only to the current vault and is off by default.
npm run verify 会执行类型检查、测试、压缩生产构建和市场合规扫描。主仓库的 scripts/build-obsidian-local.sh 负责从包含本地版本功能的源码生成市场变体,不复制到本仓库;主仓库的 scripts/build-prod.sh 负责整个 Clip2MD 产品发布,也不属于本仓库。
本仓库没有 deploy 命令;main.js 是构建产物,不提交到 Git,发布时作为与 manifest.json 版本一致的 GitHub Release 附件上传。发布前应执行 npm ci && npm run verify。
兼容性审计确认运行时未使用 Node.js 或 Electron API,因此 manifest 声明支持移动端;当前已在 macOS 的 Obsidian 1.13.7 窗口完成加载和设置页 UI 冒烟测试,移动端仍需在真实环境中补充验证。
插件会通过 HTTPS 访问以下 Clip2MD 官方服务:
https://api.clip2md.cn/api/v1:账号绑定、API Key 认证、获取同步任务和下载任务图片。https://clip2.md:打开 Clip2MD 网页和 API 凭据管理页面。同步时,插件使用 API Key 作为 X-API-Key 请求头向 Clip2MD 服务认证,并读取属于当前账号的剪藏任务内容,然后在本地 Vault 中创建或更新 Markdown 文件及图片。API Key 保存在当前设备的 Obsidian SecretStorage 中;游标、任务路径和待发回执保存在本机存储。Vault 的 data.json 只保存可共享偏好及按账号隔离的归档配置;升级前遗留的凭证字段需在所有设备完成迁移后清理。配置备份排除凭证,不应把旧设置文件或任何运行时凭据提交到 GitHub。
插件会读取带 Clip2MD 稳定身份的本地笔记以重建索引和关联链接,更新已有文件时保留用户批注;同步操作不上传这些本地笔记或批注,也不包含客户端遥测。使用前请确认你信任 Clip2MD 服务及其数据处理方式。
data.json 或其他凭据提交到 Git 仓库。本仓库用于构建和发布 Clip2MD Obsidian 社区插件。发布新版本时,请确保:
manifest.json 中的 version 使用 x.y.z 格式。manifest.json 中的版本号完全一致。main.js、manifest.json 和 styles.css。README.md、LICENSE 和 manifest.json 位于仓库根目录。data.json、API Key 或其他运行时凭据。releases/<version>.md 存在且包含面向用户的变更说明;Tag 推送后由 GitHub Actions 写入 Release 描述。gh attestation verify <file> -R clip2md/clip2md-plugin 校验。社区市场会读取 main 分支的 manifest.json,再按其中的版本号下载同名 Release。准备下一版时,先在本地完成提交并只推送版本 Tag;等待 GitHub Actions 创建正式 Release,确认三个附件均可下载且附件 manifest.json 的版本匹配后,才推送 main。不要提前把新版本的 manifest 推到 main,否则市场安装会失败。
1.0.20 恢复并重做博主订阅功能。插件设置内的“博主订阅”子页集中管理同步范围、目录、索引和日报;作品面板保留列表与笔记操作。修改后需点击“保存订阅配置”;目录变化仅影响新文件。凭证变化时隐藏旧账号数据,重新验证后才能编辑。最低 Obsidian 版本保持 1.13.1。原 Windows 故障设备、原生移动端及生产自动删除均需单独验收。
提交社区插件目录前,请阅读 Obsidian 插件提交要求 和 开发者政策。
请在 GitHub Issues 中反馈问题或提出建议。