diff --git a/component/options/custom.tsx b/component/options/custom.tsx
index 055738d..fdc7abf 100644
--- a/component/options/custom.tsx
+++ b/component/options/custom.tsx
@@ -1,4 +1,4 @@
-import { DownloadOutlined, StarTwoTone } from "@ant-design/icons"
+import { DownloadOutlined, EditOutlined, StarTwoTone } from "@ant-design/icons"
import { Input } from "antd"
import { useEffect, useState } from "react"
@@ -25,6 +25,12 @@ export default function Custom() {
sendToContentScript({ name: `custom-scrollIntoViewCode`, body: { index } })
}
+ function editMarkdown() {
+ sendToContentScript({
+ name: "custom-editMarkdown"
+ })
+ }
+
function downloadMarkdown() {
sendToContentScript({
name: "custom-downloadMarkdown"
@@ -86,6 +92,13 @@ export default function Custom() {
onChange={(e) => setRenderValue(e.target.value)}
onBlur={(e) => setStoreValue()}>
+
+
+
+ {i18n("editMarkdown")}
+
+
+
diff --git a/component/options/juejin.tsx b/component/options/juejin.tsx
index 35a4399..831d611 100644
--- a/component/options/juejin.tsx
+++ b/component/options/juejin.tsx
@@ -1,10 +1,16 @@
-import { DownloadOutlined, StarTwoTone } from "@ant-design/icons"
+import { DownloadOutlined, EditOutlined, StarTwoTone } from "@ant-design/icons"
import { sendToContentScript } from "@plasmohq/messaging"
import { i18n } from "~tools"
export default function Juejin() {
+ function editMarkdown() {
+ sendToContentScript({
+ name: "juejin-editMarkdown"
+ })
+ }
+
function downloadMarkdown() {
sendToContentScript({
name: "juejin-downloadMarkdown"
@@ -20,6 +26,13 @@ export default function Juejin() {
return (