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

Function downloadPdf

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

Source from the content-addressed store, hash-verified

222 }
223
224 function downloadPdf() {
225 var article = document.querySelector<HTMLElement>("article .article-detail")
226 if (article) {
227 Print.print(article, { title: articleTitle })
228 .then(() => console.log("Printing complete"))
229 .catch((error) => console.error("Printing failed:", error))
230 }
231 }
232
233 function downloadMarkdown() {
234 const html = document.querySelector<HTMLElement>("article .article-detail")

Callers 1

PlasmoOverlayFunction · 0.70

Calls 1

printMethod · 0.80

Tested by

no test coverage detected