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

Function downloadMarkdown

contents/cnblogs.tsx:174–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172 }
173
174 function downloadMarkdown() {
175 const html = document.querySelector<HTMLElement>("#post_detail")
176 const markdown = turndownService.turndown(html)
177 saveMarkdown(markdown, articleTitle)
178 }
179
180 function downloadHtml() {
181 const dom = document.querySelector("#post_detail .post")

Callers 1

PlasmoOverlayFunction · 0.70

Calls 1

saveMarkdownFunction · 0.85

Tested by

no test coverage detected