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

Function downloadMarkdown

contents/51cto.tsx:233–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

231 }
232
233 function downloadMarkdown() {
234 const html = document.querySelector<HTMLElement>("article .article-detail")
235 const markdown = turndownService.turndown(html)
236 saveMarkdown(markdown, articleTitle)
237 }
238
239 function downloadHtml() {
240 const dom = document.querySelector<HTMLElement>("article .article-detail")

Callers 1

PlasmoOverlayFunction · 0.70

Calls 1

saveMarkdownFunction · 0.85

Tested by

no test coverage detected