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

Function downloadMarkdown

contents/baidu.tsx:98–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 }
97
98 function downloadMarkdown() {
99 const html = document.querySelector(
100 isBaijiahao ? "#ssr-content .EaCvy" : ".wd-ai-index-pc"
101 )
102 const markdown = turndownService.turndown(html)
103 saveMarkdown(markdown, articleTitle)
104 }
105
106 function downloadHtml() {
107 const dom = document.querySelector(

Callers 1

PlasmoOverlayFunction · 0.70

Calls 1

saveMarkdownFunction · 0.85

Tested by

no test coverage detected