@canofold/markdown 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +2 -0
  2. package/README.zh-CN.md +2 -0
  3. package/dist/ImageGallery-Bcpjlfh9.js +569 -0
  4. package/dist/Markdown-607_slPB.js +117 -0
  5. package/dist/assets-CqlggKr8.js +77 -0
  6. package/dist/client/bundler.js +308 -0
  7. package/dist/client/chunks/{client-CTpZrdpv.js → client-CHUUETWE.js} +3 -3
  8. package/dist/client/chunks/{gallery-BTg1qJjd.js → gallery-Cr0TgC1h.js} +2 -2
  9. package/dist/client/chunks/{image-BsfZtDsx.js → image-6_o7fPkU.js} +3 -3
  10. package/dist/client/chunks/provider-k1N-5njv.js +1037 -0
  11. package/dist/client/chunks/react-runtime-DRPMrVPX.js +12062 -0
  12. package/dist/client/chunks/{serialized-Ck9NBdg7.js → serialized-Chn9ydGA.js} +334 -295
  13. package/dist/client/chunks/{table-jaJMPch3.js → table-D99-Zhc8.js} +3 -3
  14. package/dist/client/index.js +1 -1
  15. package/dist/componentMap-CKSUGzQH.js +1483 -0
  16. package/dist/copyText-C0ZgrMnH.js +18 -0
  17. package/dist/{directiveValidation-BdVbgcY_.js → directiveValidation-B7LY-R5p.js} +187 -248
  18. package/dist/fileKinds-BPzIxbaS.js +170 -0
  19. package/dist/gallery-BqQ-i0TC.js +42 -0
  20. package/dist/image-CiPni6Az.js +38 -0
  21. package/dist/index.js +2 -2
  22. package/dist/plugins-CXYBB-oH.js +130 -0
  23. package/dist/{prepareMarkdown-DPMq7203.js → prepareMarkdown-CS6sALIb.js} +13 -11
  24. package/dist/provider-BJDHf4Z_.js +8 -0
  25. package/dist/serialized-DFiNQYA5.js +39 -0
  26. package/dist/server/analyze.js +11 -11
  27. package/dist/server.js +30 -28
  28. package/dist/table-DQSeLjVL.js +32 -0
  29. package/package.json +14 -9
  30. package/dist/Markdown-CPG2lcO7.js +0 -2127
  31. package/dist/client/chunks/provider-DNSHvvN7.js +0 -841
  32. package/dist/client/chunks/react-runtime-Dzgdzn6D.js +0 -10571
  33. package/dist/plugins-StkCS2su.js +0 -298
@@ -0,0 +1,18 @@
1
+ async function n(t) {
2
+ if (typeof navigator < "u" && navigator.clipboard)
3
+ try {
4
+ return await navigator.clipboard.writeText(t), !0;
5
+ } catch {
6
+ }
7
+ if (typeof document > "u" || typeof document.execCommand != "function") return !1;
8
+ const e = document.createElement("textarea");
9
+ e.value = t, e.setAttribute("readonly", ""), e.style.position = "fixed", e.style.inset = "0 auto auto 0", e.style.opacity = "0", document.body.appendChild(e), e.select();
10
+ try {
11
+ return document.execCommand("copy");
12
+ } finally {
13
+ e.remove();
14
+ }
15
+ }
16
+ export {
17
+ n as c
18
+ };