MCPcopy
hub / github.com/027xiguapi/code-box / ParseMarkdown

Function ParseMarkdown

component/items/parseMarkdown.tsx:7–25  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

5import { i18n } from "~tools"
6
7export default function ParseMarkdown(props) {
8 let { name } = props
9
10 async function parseMarkdown() {
11 sendToContentScript({
12 name: `${name}-parseMarkdown`
13 })
14 }
15
16 return (
17 <div className="item download" onClick={parseMarkdown}>
18 <span>
19 <StarTwoTone twoToneColor="#eb2f96" style={{ marginRight: "5px" }} />
20 {i18n("parseMarkdown")}
21 </span>
22 <EditOutlined style={{ color: "#52c41a", fontSize: "16px" }} />
23 </div>
24 )
25}

Callers

nothing calls this directly

Calls 1

i18nFunction · 0.85

Tested by

no test coverage detected