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

Function downloadMarkdown

contents/zhihu.tsx:252–256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250 }
251
252 function downloadMarkdown() {
253 const html = document.querySelector("article.Post-Main")
254 const markdown = turndownService.turndown(html)
255 saveMarkdown(markdown, articleTitle)
256 }
257
258 function downloadHtml() {
259 const dom = document.querySelector("article.Post-Main")

Callers 1

PlasmoOverlayFunction · 0.70

Calls 1

saveMarkdownFunction · 0.85

Tested by

no test coverage detected