From 8e4e8fe74eeac6f406e6d0a0616f7bb7830a1637 Mon Sep 17 00:00:00 2001 From: fzk <458813868@qq.com> Date: Wed, 28 Aug 2024 09:43:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E7=BD=91=E9=A1=B5=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E6=88=90markdown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/51cto.tsx | 9 +++++++++ component/baidu.tsx | 9 +++++++++ component/cnblogs.tsx | 9 +++++++++ component/csdn.tsx | 2 +- component/jb51.tsx | 9 +++++++++ component/jianshu.tsx | 9 +++++++++ component/php.tsx | 9 +++++++++ component/zhihu.tsx | 9 +++++++++ contents/51cto.tsx | 18 +++++++++++++++++- contents/baidu.tsx | 18 ++++++++++++++++-- contents/cnblogs.tsx | 16 +++++++++++++++- contents/csdn.tsx | 9 ++++++++- contents/jb51.tsx | 17 ++++++++++++++++- contents/jianshu.tsx | 17 ++++++++++++++++- contents/php.tsx | 17 ++++++++++++++++- contents/zhihu.tsx | 17 ++++++++++++++++- package.json | 2 +- tools.ts | 8 ++++++++ 18 files changed, 193 insertions(+), 11 deletions(-) diff --git a/component/51cto.tsx b/component/51cto.tsx index 204ab3a..36ca18c 100644 --- a/component/51cto.tsx +++ b/component/51cto.tsx @@ -12,6 +12,12 @@ export default function Cto51() { (v) => (v === undefined ? true : v) ) + function downloadMarkdown() { + sendToContentScript({ + name: "51cto-downloadMarkdown" + }) + } + function downloadHtml() { sendToContentScript({ name: "51cto-downloadHtml" @@ -47,6 +53,9 @@ export default function Cto51() { htmlFor="51cto-closeLoginModal" className="codebox-switch"> +