@coderminer/vue-markdown 0.0.0-stage → 1.0.1

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 (232) hide show
  1. package/CHANGELOG.md +226 -0
  2. package/LICENSE +21 -0
  3. package/README.md +584 -3
  4. package/README.zh-CN.md +550 -0
  5. package/dist/chunks/MarkdownBlockquote-DVXziX2t.js +16 -0
  6. package/dist/chunks/MarkdownBreak-BwCi2Itt.js +16 -0
  7. package/dist/chunks/MarkdownCode-B1k9tmW5.js +63 -0
  8. package/dist/chunks/MarkdownConfigProvider-5N3ylrIu.js +49 -0
  9. package/dist/chunks/MarkdownContent-BAK6dqo7.js +13 -0
  10. package/dist/chunks/MarkdownCustomTag-lZJHsD6f.js +46 -0
  11. package/dist/chunks/MarkdownEmphasis-CppivOEu.js +16 -0
  12. package/dist/chunks/MarkdownEmpty-Av5k6bqa.js +14 -0
  13. package/dist/chunks/MarkdownError-C0sPs5W0.js +17 -0
  14. package/dist/chunks/MarkdownFootnoteReference-Dy3Khwyj.js +22 -0
  15. package/dist/chunks/MarkdownFootnotes-BRPzkbXv.js +21 -0
  16. package/dist/chunks/MarkdownHeading-DaNcP0_6.js +29 -0
  17. package/dist/chunks/MarkdownHorizontalRule-QNe_cuUI.js +16 -0
  18. package/dist/chunks/MarkdownHtml-66lYkvwM.js +13 -0
  19. package/dist/chunks/MarkdownImage-BRy76svs.js +51 -0
  20. package/dist/chunks/MarkdownInlineCode-MXZYFwex.js +16 -0
  21. package/dist/chunks/MarkdownLink-Dbx3NwgV.js +45 -0
  22. package/dist/chunks/MarkdownList-BJ-_C71k.js +20 -0
  23. package/dist/chunks/MarkdownListItem-Z1EHIY26.js +16 -0
  24. package/dist/chunks/MarkdownLoading-D-RYtXxf.js +15 -0
  25. package/dist/chunks/MarkdownParagraph-BxLSmSaG.js +16 -0
  26. package/dist/chunks/MarkdownRenderer-OlkdsvI3.js +482 -0
  27. package/dist/chunks/MarkdownRoot-DEE6iVfh.js +23 -0
  28. package/dist/chunks/MarkdownStrikethrough-CblvbqDk.js +16 -0
  29. package/dist/chunks/MarkdownStrong-uU5MzAoJ.js +16 -0
  30. package/dist/chunks/MarkdownTable-DmBTg_CR.js +16 -0
  31. package/dist/chunks/MarkdownTableCell-eiCJe847.js +31 -0
  32. package/dist/chunks/MarkdownTableRow-DuJaPntg.js +16 -0
  33. package/dist/chunks/MarkdownTableSection-PFHz-R33.js +24 -0
  34. package/dist/chunks/MarkdownTaskItem-BcmKo1lk.js +38 -0
  35. package/dist/chunks/MarkdownToc-DHWWoH6t.js +49 -0
  36. package/dist/chunks/MarkdownTocItem-DT9mR3vL.js +25 -0
  37. package/dist/chunks/MermaidLiveEditor-1TKkI5bp.js +414 -0
  38. package/dist/chunks/VueSyntaxHighlighter-BWpCO-cX.js +260 -0
  39. package/dist/chunks/adapters-CMwX_NEI.js +26 -0
  40. package/dist/chunks/asyncToGenerator-ChigusFD.js +26 -0
  41. package/dist/chunks/blank-line-CKKsFeKR.js +88 -0
  42. package/dist/chunks/codemirror-DyphMAEg.js +82 -0
  43. package/dist/chunks/config-aRYo2R8_.js +10 -0
  44. package/dist/chunks/context-8NfW6fxI.js +30 -0
  45. package/dist/chunks/convert-hast-C4Rg2ZuF.js +6 -0
  46. package/dist/chunks/default-ZQ5aHh-N.js +3 -0
  47. package/dist/chunks/diagnostics-CtHoJyiX.js +23 -0
  48. package/dist/chunks/export-BrgMLgUp.js +1574 -0
  49. package/dist/chunks/hast-to-nodes-DuZsi4XT.js +29 -0
  50. package/dist/chunks/hast-util-from-html-D3e_iQ89.js +5088 -0
  51. package/dist/chunks/highlightjs-BxJFpKS1.js +196 -0
  52. package/dist/chunks/identity-Bi27FKyx.js +6243 -0
  53. package/dist/chunks/labels-BtHiUTQI.js +47 -0
  54. package/dist/chunks/lib-CCnkLL6S.js +252 -0
  55. package/dist/chunks/longest-streak-DZE_EqsU.js +8 -0
  56. package/dist/chunks/micromark-factory-space-CpXAnYUY.js +137 -0
  57. package/dist/chunks/normalize-VKfQXZiK.js +226 -0
  58. package/dist/chunks/objectSpread2-CtBNx0TF.js +57 -0
  59. package/dist/chunks/plugin-YWo5uqTh.js +27 -0
  60. package/dist/chunks/preset-BjaOuJUL.js +44 -0
  61. package/dist/chunks/registry-B7BfEkuy.js +6150 -0
  62. package/dist/chunks/render-DAqK0w5J.js +1754 -0
  63. package/dist/chunks/rolldown-runtime-QGRDbDUS.js +19 -0
  64. package/dist/chunks/runtime-D95F41zG.js +574 -0
  65. package/dist/chunks/security-y4EwUyAs.js +212 -0
  66. package/dist/chunks/shared-NjFDPmkb.js +67 -0
  67. package/dist/chunks/space-separated-tokens-1ebNqf35.js +1097 -0
  68. package/dist/chunks/url-D2BoivaE.js +24 -0
  69. package/dist/chunks/useActiveHeading-CnyGTG1u.js +359 -0
  70. package/dist/components/CodeBlock.d.ts +73 -0
  71. package/dist/components/CodeBlock.js +1 -0
  72. package/dist/components/Icon.d.ts +6 -0
  73. package/dist/components/MarkdownBlockquote.d.ts +18 -0
  74. package/dist/components/MarkdownBlockquote.js +1 -0
  75. package/dist/components/MarkdownBreak.d.ts +8 -0
  76. package/dist/components/MarkdownBreak.js +1 -0
  77. package/dist/components/MarkdownChildren.d.ts +17 -0
  78. package/dist/components/MarkdownCode.d.ts +29 -0
  79. package/dist/components/MarkdownCode.js +1 -0
  80. package/dist/components/MarkdownConfigProvider.d.ts +33 -0
  81. package/dist/components/MarkdownConfigProvider.js +1 -0
  82. package/dist/components/MarkdownContent.d.ts +16 -0
  83. package/dist/components/MarkdownContent.js +1 -0
  84. package/dist/components/MarkdownCustomTag.d.ts +20 -0
  85. package/dist/components/MarkdownCustomTag.js +1 -0
  86. package/dist/components/MarkdownEmphasis.d.ts +18 -0
  87. package/dist/components/MarkdownEmphasis.js +1 -0
  88. package/dist/components/MarkdownEmpty.d.ts +8 -0
  89. package/dist/components/MarkdownEmpty.js +1 -0
  90. package/dist/components/MarkdownError.d.ts +11 -0
  91. package/dist/components/MarkdownError.js +1 -0
  92. package/dist/components/MarkdownFootnoteReference.d.ts +19 -0
  93. package/dist/components/MarkdownFootnoteReference.js +1 -0
  94. package/dist/components/MarkdownFootnotes.d.ts +17 -0
  95. package/dist/components/MarkdownFootnotes.js +1 -0
  96. package/dist/components/MarkdownHeading.d.ts +18 -0
  97. package/dist/components/MarkdownHeading.js +1 -0
  98. package/dist/components/MarkdownHorizontalRule.d.ts +8 -0
  99. package/dist/components/MarkdownHorizontalRule.js +1 -0
  100. package/dist/components/MarkdownHtml.d.ts +8 -0
  101. package/dist/components/MarkdownHtml.js +1 -0
  102. package/dist/components/MarkdownImage.d.ts +15 -0
  103. package/dist/components/MarkdownImage.js +1 -0
  104. package/dist/components/MarkdownInlineCode.d.ts +18 -0
  105. package/dist/components/MarkdownInlineCode.js +1 -0
  106. package/dist/components/MarkdownLink.d.ts +22 -0
  107. package/dist/components/MarkdownLink.js +1 -0
  108. package/dist/components/MarkdownList.d.ts +18 -0
  109. package/dist/components/MarkdownList.js +1 -0
  110. package/dist/components/MarkdownListItem.d.ts +18 -0
  111. package/dist/components/MarkdownListItem.js +1 -0
  112. package/dist/components/MarkdownLoading.d.ts +8 -0
  113. package/dist/components/MarkdownLoading.js +1 -0
  114. package/dist/components/MarkdownMath.d.ts +12 -0
  115. package/dist/components/MarkdownMath.js +1 -0
  116. package/dist/components/MarkdownMermaid.d.ts +78 -0
  117. package/dist/components/MarkdownMermaid.js +1 -0
  118. package/dist/components/MarkdownParagraph.d.ts +18 -0
  119. package/dist/components/MarkdownParagraph.js +1 -0
  120. package/dist/components/MarkdownRenderer.d.ts +167 -0
  121. package/dist/components/MarkdownRenderer.js +1 -0
  122. package/dist/components/MarkdownRoot.d.ts +24 -0
  123. package/dist/components/MarkdownRoot.js +1 -0
  124. package/dist/components/MarkdownStrikethrough.d.ts +18 -0
  125. package/dist/components/MarkdownStrikethrough.js +1 -0
  126. package/dist/components/MarkdownStrong.d.ts +18 -0
  127. package/dist/components/MarkdownStrong.js +1 -0
  128. package/dist/components/MarkdownTable.d.ts +18 -0
  129. package/dist/components/MarkdownTable.js +1 -0
  130. package/dist/components/MarkdownTableCell.d.ts +20 -0
  131. package/dist/components/MarkdownTableCell.js +1 -0
  132. package/dist/components/MarkdownTableRow.d.ts +18 -0
  133. package/dist/components/MarkdownTableRow.js +1 -0
  134. package/dist/components/MarkdownTableSection.d.ts +18 -0
  135. package/dist/components/MarkdownTableSection.js +1 -0
  136. package/dist/components/MarkdownTaskItem.d.ts +20 -0
  137. package/dist/components/MarkdownTaskItem.js +1 -0
  138. package/dist/components/MarkdownToc.d.ts +36 -0
  139. package/dist/components/MarkdownToc.js +1 -0
  140. package/dist/components/MarkdownTocItem.d.ts +14 -0
  141. package/dist/components/MarkdownTocItem.js +1 -0
  142. package/dist/components/MermaidBlock.d.ts +50 -0
  143. package/dist/components/MermaidBlock.js +1 -0
  144. package/dist/components/MermaidLiveEditor.d.ts +44 -0
  145. package/dist/components/MermaidLiveEditor.js +1 -0
  146. package/dist/components/VueSyntaxHighlighter.d.ts +39 -0
  147. package/dist/components/VueSyntaxHighlighter.js +1 -0
  148. package/dist/components/codeRegion.d.ts +14 -0
  149. package/dist/components/config.d.ts +7 -0
  150. package/dist/components/context.d.ts +45 -0
  151. package/dist/components/index.d.ts +42 -0
  152. package/dist/components/index.js +38 -0
  153. package/dist/components/render.d.ts +9 -0
  154. package/dist/components/scroll-lock.d.ts +7 -0
  155. package/dist/components/types.d.ts +61 -0
  156. package/dist/composables/useActiveHeading.d.ts +12 -0
  157. package/dist/composables/useCodeHighlighter.d.ts +30 -0
  158. package/dist/composables/useLineWindow.d.ts +38 -0
  159. package/dist/composables/useMarkdownDocument.d.ts +25 -0
  160. package/dist/core/adapters.d.ts +7 -0
  161. package/dist/core/config.d.ts +5 -0
  162. package/dist/core/diagnostics.d.ts +9 -0
  163. package/dist/core/finalize.d.ts +18 -0
  164. package/dist/core/hast-nodes.d.ts +3 -0
  165. package/dist/core/hast-to-nodes.d.ts +9 -0
  166. package/dist/core/highlight-lines.d.ts +8 -0
  167. package/dist/core/identity.d.ts +4 -0
  168. package/dist/core/labels.d.ts +4 -0
  169. package/dist/core/manifest.d.ts +38 -0
  170. package/dist/core/memo.d.ts +5 -0
  171. package/dist/core/model-hast.d.ts +8 -0
  172. package/dist/core/model.d.ts +10 -0
  173. package/dist/core/normalize.d.ts +37 -0
  174. package/dist/core/parts.d.ts +136 -0
  175. package/dist/core/preset.d.ts +10 -0
  176. package/dist/core/run.d.ts +16 -0
  177. package/dist/core/search.d.ts +5 -0
  178. package/dist/core/security.d.ts +21 -0
  179. package/dist/core/slugger.d.ts +13 -0
  180. package/dist/core/types.d.ts +392 -0
  181. package/dist/core/url.d.ts +10 -0
  182. package/dist/editor/codemirror.d.ts +14 -0
  183. package/dist/editor/index.d.ts +2 -0
  184. package/dist/editor/index.js +1 -0
  185. package/dist/export/index.d.ts +6 -0
  186. package/dist/headless.d.ts +21 -0
  187. package/dist/headless.js +12 -0
  188. package/dist/highlight/convert-hast.d.ts +8 -0
  189. package/dist/highlight/highlightjs.d.ts +7 -0
  190. package/dist/highlight/index.d.ts +4 -0
  191. package/dist/highlight/index.js +4 -0
  192. package/dist/highlight/shared.d.ts +11 -0
  193. package/dist/highlight/shiki.d.ts +7 -0
  194. package/dist/highlight/shiki.js +75 -0
  195. package/dist/html/index.d.ts +17 -0
  196. package/dist/html/index.js +11 -0
  197. package/dist/index.d.ts +24 -0
  198. package/dist/index.js +53 -0
  199. package/dist/math/index.d.ts +4 -0
  200. package/dist/math/index.js +585 -0
  201. package/dist/math/katex.d.ts +4 -0
  202. package/dist/math/plugin.d.ts +20 -0
  203. package/dist/mermaid/index.d.ts +6 -0
  204. package/dist/mermaid/index.js +8 -0
  205. package/dist/mermaid/plugin.d.ts +17 -0
  206. package/dist/mermaid/runtime.d.ts +14 -0
  207. package/dist/mermaid/sanitize-svg-lazy.d.ts +10 -0
  208. package/dist/mermaid/sanitize-svg.d.ts +3 -0
  209. package/dist/mermaid/sanitize.d.ts +16 -0
  210. package/dist/node-components.d.ts +1 -0
  211. package/dist/node-components.js +39 -0
  212. package/dist/pipeline/custom.d.ts +8 -0
  213. package/dist/pipeline/identity.d.ts +12 -0
  214. package/dist/pipeline/index.d.ts +5 -0
  215. package/dist/pipeline/official.d.ts +6 -0
  216. package/dist/pipeline.d.ts +1 -0
  217. package/dist/pipeline.js +1 -0
  218. package/dist/plugins/builtin.d.ts +15 -0
  219. package/dist/plugins/define.d.ts +7 -0
  220. package/dist/plugins/registry.d.ts +16 -0
  221. package/dist/plugins/source.d.ts +7 -0
  222. package/dist/plugins.d.ts +3 -0
  223. package/dist/plugins.js +1 -0
  224. package/dist/presets.d.ts +3 -0
  225. package/dist/presets.js +1 -0
  226. package/dist/style.css +2 -0
  227. package/dist/styles/components.css +737 -0
  228. package/dist/styles/index.d.ts +1 -0
  229. package/dist/styles/math-full.css +3 -0
  230. package/dist/styles/math.css +18 -0
  231. package/dist/styles/tokens.css +96 -0
  232. package/package.json +214 -6
@@ -0,0 +1,24 @@
1
+ // src/core/url.ts
2
+ var e = /^(https?|ircs?|mailto|xmpp)$/i, t = /^data:image\/(?:png|jpe?g|gif|webp|avif|bmp|x-icon)(?:;[a-z0-9=._+-]+)*,/i;
3
+ function n(n, r = "href") {
4
+ if (typeof n != "string") return "";
5
+ let i = n.trim();
6
+ if (!i) return n;
7
+ if (i.startsWith("data:")) return r === "src" && t.test(i) ? i : "";
8
+ let a = i.indexOf(":");
9
+ if (a < 0) return i;
10
+ let o = i.indexOf("?"), s = i.indexOf("#"), c = i.indexOf("/");
11
+ return c > -1 && a > c || o > -1 && a > o || s > -1 && a > s || e.test(i.slice(0, a)) ? i : "";
12
+ }
13
+ function r(e) {
14
+ return /^(?:[a-z][a-z0-9+.-]*:)?\/\//i.test(e);
15
+ }
16
+ function i(e, t) {
17
+ if (!t || !e || e.startsWith("#") || e.startsWith("//") || /^[a-z][a-z0-9+.-]*:/i.test(e)) return e;
18
+ try {
19
+ return new URL(e, t).toString();
20
+ } catch (t) {
21
+ return e;
22
+ }
23
+ }
24
+ export { r as n, i as r, n as t };
@@ -0,0 +1,359 @@
1
+ import { n as e, t } from "./diagnostics-CtHoJyiX.js";
2
+ import { a as n, n as r, t as i } from "./normalize-VKfQXZiK.js";
3
+ import { t as a } from "./objectSpread2-CtBNx0TF.js";
4
+ import { d as o, g as s, i as c, t as l } from "./registry-B7BfEkuy.js";
5
+ import { a as u, c as d, n as f, r as p, t as m } from "./identity-Bi27FKyx.js";
6
+ import { t as h } from "./asyncToGenerator-ChigusFD.js";
7
+ import { computed as g, effectScope as _, getCurrentScope as v, onBeforeUnmount as y, onMounted as b, onScopeDispose as ee, ref as x, shallowRef as S, toValue as C, watch as w } from "vue";
8
+ // src/core/model.ts
9
+ function T(e) {
10
+ return {
11
+ nodes: e.nodes,
12
+ toc: r(e.nodes),
13
+ customTags: i(e.nodes),
14
+ frontmatter: e.frontmatter,
15
+ plugins: e.plugins,
16
+ pipeline: e.pipeline
17
+ };
18
+ }
19
+ function E(e) {
20
+ return a(a({}, e), {}, {
21
+ toc: r(e.nodes),
22
+ customTags: i(e.nodes)
23
+ });
24
+ }
25
+ // node_modules/github-slugger/regex.js
26
+ var D = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\u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B\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g, O = Object.hasOwnProperty, k = class {
27
+ constructor() {
28
+ this.occurrences, this.reset();
29
+ }
30
+ slug(e, t) {
31
+ let n = this, r = A(e, t === !0), i = r;
32
+ for (; O.call(n.occurrences, r);) n.occurrences[i]++, r = i + "-" + n.occurrences[i];
33
+ return n.occurrences[r] = 0, r;
34
+ }
35
+ reset() {
36
+ this.occurrences = Object.create(null);
37
+ }
38
+ };
39
+ function A(e, t) {
40
+ return typeof e == "string" ? (t || (e = e.toLowerCase()), e.replace(D, "").replace(/ /g, "-")) : "";
41
+ }
42
+ // src/core/slugger.ts
43
+ var j = /\s+/g, M = /-{2,}/g;
44
+ function N() {
45
+ let e = new k();
46
+ return {
47
+ slug(t) {
48
+ let n = t.replace(j, " ").trim();
49
+ return e.slug(n).replace(M, "-");
50
+ },
51
+ reset() {
52
+ e.reset();
53
+ }
54
+ };
55
+ }
56
+ function P(e) {
57
+ let t = /* @__PURE__ */ new Set();
58
+ return {
59
+ slug(n) {
60
+ let r = e.slug(n), i = r, a = 1;
61
+ for (; t.has(i);) i = `${r}-${a}`, a += 1;
62
+ return t.add(i), i;
63
+ },
64
+ reset() {
65
+ var n;
66
+ t.clear(), (n = e.reset) == null || n.call(e);
67
+ }
68
+ };
69
+ }
70
+ // src/core/finalize.ts
71
+ function F(r) {
72
+ var i;
73
+ let { source: a, result: c, options: l, plugins: u, pipelineName: d, slugger: f, idPrefix: p, diagnostics: m } = r, h = T({
74
+ nodes: n(c.hast, {
75
+ slugger: f,
76
+ idPrefix: p,
77
+ urlTransform: l.urlTransform,
78
+ baseUrl: l.baseUrl,
79
+ allowedElements: l.allowedElements,
80
+ disallowedElements: l.disallowedElements,
81
+ unwrapDisallowed: l.unwrapDisallowed,
82
+ allowElement: l.allowElement,
83
+ diagnostics: m
84
+ }).nodes,
85
+ plugins: u.names,
86
+ pipeline: d,
87
+ frontmatter: c.frontmatter
88
+ }), g = o(a, l, m);
89
+ for (let n of u.plugins) if (n.transformDocument) try {
90
+ let e = n.transformDocument(h, g);
91
+ e && (h = e);
92
+ } catch (r) {
93
+ var _;
94
+ m.push(t("plugin-transform", e(r), {
95
+ phase: "document",
96
+ plugin: n.name
97
+ })), (_ = n.onError) == null || _.call(n, r, "document", g);
98
+ }
99
+ return (i = l.search) != null && (i = i.query) != null && i.trim() && (h = s(h, l.search)), E(h);
100
+ }
101
+ // src/plugins/source.ts
102
+ function I(n, r, i, a, o) {
103
+ if (a.push(t(o, e(r), {
104
+ phase: "source",
105
+ plugin: n.name
106
+ })), n.onError) try {
107
+ n.onError(r, "source", i);
108
+ } catch (r) {
109
+ a.push(t("plugin-onerror", e(r), {
110
+ phase: "source",
111
+ plugin: n.name
112
+ }));
113
+ }
114
+ }
115
+ function L(e, t, n, r) {
116
+ let i = e, a = o(e, n, r);
117
+ for (let e of t) if (e.transformSource) {
118
+ a.source = i;
119
+ try {
120
+ let t = e.transformSource(i, a);
121
+ if (typeof t == "string") {
122
+ i = t;
123
+ continue;
124
+ }
125
+ I(e, /* @__PURE__ */ TypeError("transformSource must return a string."), a, r, "plugin-source");
126
+ } catch (t) {
127
+ I(e, t, a, r, "plugin-source");
128
+ }
129
+ }
130
+ return i;
131
+ }
132
+ // src/core/memo.ts
133
+ var R = 64, z = /* @__PURE__ */ new Map();
134
+ function B(e) {
135
+ let t = z.get(e);
136
+ if (t) return z.delete(e), z.set(e, t), t;
137
+ }
138
+ function V(e, t) {
139
+ for (z.has(e) && z.delete(e), z.set(e, t); z.size > R;) {
140
+ let e = z.keys().next().value;
141
+ if (e === void 0) break;
142
+ z.delete(e);
143
+ }
144
+ }
145
+ function H() {
146
+ z.clear();
147
+ }
148
+ function U() {
149
+ return z.size;
150
+ }
151
+ // src/composables/useMarkdownDocument.ts
152
+ function W(e) {
153
+ return e instanceof Error && /finished async|processSync.*async|async.*processSync/i.test(e.message);
154
+ }
155
+ function G(n, r = {}) {
156
+ let i = S(), s = S("idle"), y = S([]), b = S([]), x = (e) => {
157
+ let t = /* @__PURE__ */ new Set(), n = [];
158
+ for (let c of e) {
159
+ var r, i, a, o, s;
160
+ let e = c.source ? `${c.source.start.line}:${c.source.start.column}:${(r = c.source.start.offset) == null ? "" : r}-${c.source.end.line}:${c.source.end.column}:${(i = c.source.end.offset) == null ? "" : i}` : "", l = [
161
+ c.code,
162
+ c.message,
163
+ c.severity,
164
+ (a = c.plugin) == null ? "" : a,
165
+ (o = c.phase) == null ? "" : o,
166
+ e,
167
+ (s = c.details) == null ? "" : s
168
+ ].join("");
169
+ t.has(l) || (t.add(l), n.push(c));
170
+ }
171
+ y.value = n;
172
+ }, T = g(() => {
173
+ var e;
174
+ return (e = C(r)) == null ? {} : e;
175
+ }), E = g(() => {
176
+ let e = C(n);
177
+ return typeof e == "string" ? e : "";
178
+ }), D = g(() => {
179
+ var e, t;
180
+ return l((e = T.value.plugins) == null ? c : e, (t = T.value.disablePlugins) == null ? [] : t);
181
+ }), O = g(() => u(T.value.pipeline)), k = g(() => O.value.pipeline), A = g(() => {
182
+ var e;
183
+ return [...D.value.remarkPlugins, ...(e = T.value.remarkPlugins) == null ? [] : e];
184
+ }), j = g(() => {
185
+ var e;
186
+ return [...D.value.rehypePlugins, ...(e = T.value.rehypePlugins) == null ? [] : e];
187
+ }), M = g(() => {
188
+ var e;
189
+ return a(a({}, D.value.remarkRehypeOptions), (e = T.value.remarkRehypeOptions) == null ? {} : e);
190
+ }), I = N(), R = g(() => {
191
+ var e;
192
+ return (e = T.value.slugger) == null ? I : e;
193
+ }), z = g(() => P(R.value)), H = g(() => {
194
+ var e;
195
+ return (e = T.value.idPrefix) == null ? "" : e;
196
+ }), U = g(() => f({
197
+ pipelineName: k.value.name,
198
+ plugins: D.value.plugins,
199
+ remarkPlugins: A.value,
200
+ rehypePlugins: j.value,
201
+ remarkRehypeOptions: T.value.remarkRehypeOptions,
202
+ options: T.value
203
+ })), G = g(() => U.value), K = g(() => D.value.plugins.map((e) => d(e)).join(",")), q, J = [], te = () => {
204
+ q == null || q.stop();
205
+ for (let e of J) try {
206
+ e();
207
+ } catch (e) {}
208
+ J = [], q = _(!0);
209
+ let n = [], r = o(E.value, T.value, n);
210
+ for (let a of D.value.plugins) if (a.setup) try {
211
+ let e = a.setup(r);
212
+ typeof e == "function" && J.push(e);
213
+ } catch (o) {
214
+ n.push(t("plugin-setup", e(o), {
215
+ phase: "setup",
216
+ plugin: a.name
217
+ }));
218
+ try {
219
+ var i;
220
+ (i = a.onError) == null || i.call(a, o, "setup", r);
221
+ } catch (r) {
222
+ n.push(t("plugin-onerror", e(r), {
223
+ phase: "setup",
224
+ plugin: a.name
225
+ }));
226
+ }
227
+ }
228
+ b.value = n.slice();
229
+ };
230
+ v() && ee(() => {
231
+ var e, t;
232
+ q == null || q.stop();
233
+ for (let e of J) try {
234
+ e();
235
+ } catch (e) {}
236
+ J = [], (e = (t = k.value).dispose) == null || e.call(t);
237
+ });
238
+ let Y = (e) => {
239
+ i.value = e, s.value = "ready";
240
+ }, X = (e, t) => ({
241
+ source: e,
242
+ options: T.value,
243
+ plugins: D.value.plugins,
244
+ remarkPlugins: A.value,
245
+ rehypePlugins: j.value,
246
+ remarkRehypeOptions: M.value,
247
+ slugger: z.value,
248
+ idPrefix: H.value,
249
+ diagnostics: t
250
+ }), ne = (e, t, n) => F({
251
+ source: e,
252
+ result: t,
253
+ options: T.value,
254
+ plugins: D.value,
255
+ pipelineName: k.value.name,
256
+ slugger: z.value,
257
+ idPrefix: H.value,
258
+ diagnostics: n
259
+ }), Z = 0, Q = (e, t, n, r, i) => {
260
+ let a = ne(e, t, n);
261
+ x(n), i && V(r, a), Y(a);
262
+ }, re = (n, r, i, a) => {
263
+ let o = k.value.processSync;
264
+ if (!o) return "async";
265
+ try {
266
+ var c, l;
267
+ (c = (l = z.value).reset) == null || c.call(l);
268
+ let e = p(o.call(k.value, n, X(n, a)));
269
+ return Q(n, e, a, r, i), "done";
270
+ } catch (n) {
271
+ return W(n) ? "async" : (s.value = "error", x([...a, t("pipeline-sync", e(n), { phase: "pipeline" })]), "done");
272
+ }
273
+ }, ie = function() {
274
+ var n = h(function* (n, r, i, a, o) {
275
+ s.value = "pending";
276
+ try {
277
+ var c, l;
278
+ (c = (l = z.value).reset) == null || c.call(l);
279
+ let e = p(yield k.value.process(r, X(r, o)));
280
+ if (n !== Z) return;
281
+ Q(r, e, o, i, a);
282
+ } catch (r) {
283
+ if (n !== Z) return;
284
+ s.value = "error", x([...o, t("pipeline-process", e(r), { phase: "pipeline" })]);
285
+ }
286
+ });
287
+ return function(e, t, r, i, a) {
288
+ return n.apply(this, arguments);
289
+ };
290
+ }(), $ = (n = !1) => {
291
+ let r = ++Z;
292
+ try {
293
+ let e = [
294
+ ...O.value.diagnostics,
295
+ ...D.value.diagnostics,
296
+ ...b.value
297
+ ], t = L(E.value, D.value.plugins, T.value, e), i = m(t, U.value);
298
+ if (!n) {
299
+ let t = B(i);
300
+ if (t) return x(e), Y(t), Promise.resolve();
301
+ }
302
+ return re(t, i, !n, e) === "done" ? Promise.resolve() : ie(r, t, i, !n, e);
303
+ } catch (n) {
304
+ return s.value = "error", x([t("pipeline-run", e(n), { phase: "pipeline" })]), Promise.resolve();
305
+ }
306
+ };
307
+ return w(K, te, { immediate: !0 }), w([E, G], () => void $()), $(), {
308
+ document: i,
309
+ toc: g(() => {
310
+ var e, t;
311
+ return (e = (t = i.value) == null ? void 0 : t.toc) == null ? [] : e;
312
+ }),
313
+ status: s,
314
+ diagnostics: y,
315
+ pipeline: g(() => k.value.name),
316
+ plugins: g(() => D.value.names),
317
+ resolvedComponents: g(() => D.value.components),
318
+ resolvedNodeComponents: g(() => D.value.nodeComponents),
319
+ resolvedRegions: g(() => D.value.regions),
320
+ resolvedLabels: g(() => D.value.labels),
321
+ resolvedTokens: g(() => D.value.tokens),
322
+ refresh: () => $(!0),
323
+ clearDiagnostics: () => {
324
+ y.value = [];
325
+ }
326
+ };
327
+ }
328
+ // src/composables/useActiveHeading.ts
329
+ function K(e, t) {
330
+ let n = e.getElementById;
331
+ if (typeof n == "function") return n.call(e, t);
332
+ let r = e.querySelectorAll("[id]");
333
+ for (let e = 0; e < r.length; e += 1) {
334
+ let n = r[e];
335
+ if (n.getAttribute("id") === t) return n;
336
+ }
337
+ return null;
338
+ }
339
+ function q(e, t = !0, n = {}) {
340
+ let r = x(), i, a = () => {
341
+ i == null || i.disconnect(), i = void 0;
342
+ }, o = () => {
343
+ var o;
344
+ if (a(), !C(t) || typeof window > "u" || typeof IntersectionObserver > "u") return;
345
+ let s = (o = C(n.root)) == null ? window.document : o, c = C(e).map((e) => K(s, e)).filter((e) => e !== null);
346
+ if (c.length !== 0) {
347
+ i = new IntersectionObserver((e) => {
348
+ let t = e.filter((e) => e.isIntersecting).sort((e, t) => e.boundingClientRect.top - t.boundingClientRect.top);
349
+ t[0] && (r.value = t[0].target.id);
350
+ }, {
351
+ rootMargin: "0px 0px -70% 0px",
352
+ threshold: 0
353
+ });
354
+ for (let e of c) i.observe(e);
355
+ }
356
+ };
357
+ return b(o), w(() => C(e).join(""), o), w(() => C(t), o), n.root && w(() => C(n.root), o), y(a), r;
358
+ }
359
+ export { B as a, L as c, P as d, T as f, H as i, F as l, q as n, V as o, E as p, G as r, U as s, K as t, N as u };
@@ -0,0 +1,73 @@
1
+ import { CodeBlockAction, HighlightLine, MarkdownCodeNode, MarkdownDiagnostic, MarkdownHighlighter, MarkdownTheme } from '../core/types';
2
+ type __VLS_Props = {
3
+ node?: MarkdownCodeNode;
4
+ code?: string;
5
+ language?: string;
6
+ highlighter?: MarkdownHighlighter;
7
+ theme?: MarkdownTheme;
8
+ actions?: CodeBlockAction[];
9
+ showActions?: boolean;
10
+ showDownload?: boolean;
11
+ title?: string;
12
+ fileName?: string;
13
+ lineNumbers?: boolean;
14
+ highlightLines?: HighlightLine[];
15
+ maxLines?: number;
16
+ virtual?: boolean;
17
+ virtualThreshold?: number;
18
+ lineHeight?: number;
19
+ delay?: number;
20
+ /** Render this instance without resolving `regions.codeBlock`. */
21
+ standalone?: boolean;
22
+ /** Alias for `standalone`; useful when wrapping a region replacement. */
23
+ ignoreRegion?: boolean;
24
+ };
25
+ declare function copy(): Promise<void>;
26
+ declare function download(): Promise<void>;
27
+ declare var __VLS_7: {};
28
+ type __VLS_Slots = {} & {
29
+ default?: (props: typeof __VLS_7) => any;
30
+ };
31
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
32
+ copy: typeof copy;
33
+ download: typeof download;
34
+ getHighlighted: () => import('..').HighlightResult;
35
+ highlighted: import('vue').ShallowRef<import('..').HighlightResult>;
36
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
37
+ error: (diagnostic: MarkdownDiagnostic) => any;
38
+ action: (key: string) => any;
39
+ download: (source: string) => any;
40
+ copy: (source: string) => any;
41
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
42
+ onError?: ((diagnostic: MarkdownDiagnostic) => any) | undefined;
43
+ onAction?: ((key: string) => any) | undefined;
44
+ onDownload?: ((source: string) => any) | undefined;
45
+ onCopy?: ((source: string) => any) | undefined;
46
+ }>, {
47
+ code: string;
48
+ theme: MarkdownTheme;
49
+ highlighter: MarkdownHighlighter;
50
+ lineHeight: number;
51
+ title: string;
52
+ language: string;
53
+ actions: CodeBlockAction[];
54
+ showActions: boolean;
55
+ showDownload: boolean;
56
+ fileName: string;
57
+ lineNumbers: boolean;
58
+ highlightLines: HighlightLine[];
59
+ maxLines: number;
60
+ virtual: boolean;
61
+ virtualThreshold: number;
62
+ delay: number;
63
+ standalone: boolean;
64
+ ignoreRegion: boolean;
65
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
66
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
67
+ declare const _default: typeof __VLS_export;
68
+ export default _default;
69
+ type __VLS_WithSlots<T, S> = T & {
70
+ new (): {
71
+ $slots: S;
72
+ };
73
+ };
@@ -0,0 +1 @@
1
+ export { a as default } from "../chunks/render-DAqK0w5J.js";
@@ -0,0 +1,6 @@
1
+ import { FunctionalComponent } from 'vue';
2
+ export type IconName = 'copy' | 'check' | 'download' | 'preview' | 'source' | 'zoom-in' | 'zoom-out' | 'reset' | 'image' | 'fullscreen' | 'exit-fullscreen' | 'retry' | 'diagram';
3
+ export declare const Icon: FunctionalComponent<{
4
+ name: IconName;
5
+ }>;
6
+ export default Icon;
@@ -0,0 +1,18 @@
1
+ import { MarkdownNode } from '../core/types';
2
+ type __VLS_Props = {
3
+ node: MarkdownNode;
4
+ children?: MarkdownNode[];
5
+ };
6
+ declare var __VLS_1: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_1) => any;
9
+ };
10
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1 @@
1
+ export { t as default } from "../chunks/MarkdownBlockquote-DVXziX2t.js";
@@ -0,0 +1,8 @@
1
+ import { MarkdownNode } from '../core/types';
2
+ type __VLS_Props = {
3
+ node: MarkdownNode;
4
+ children?: MarkdownNode[];
5
+ };
6
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1 @@
1
+ export { t as default } from "../chunks/MarkdownBreak-BwCi2Itt.js";
@@ -0,0 +1,17 @@
1
+ import { PropType } from 'vue';
2
+ import { MarkdownNode } from '../core/types';
3
+ /** Renders a model node list. Text nodes stay strings, not components. */
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ nodes: {
6
+ type: PropType<MarkdownNode[]>;
7
+ default: () => never[];
8
+ };
9
+ }>, () => import('vue').VNodeChild[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ nodes: {
11
+ type: PropType<MarkdownNode[]>;
12
+ default: () => never[];
13
+ };
14
+ }>> & Readonly<{}>, {
15
+ nodes: MarkdownNode[];
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
17
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { MarkdownCodeNode } from '../core/types';
2
+ type __VLS_Props = {
3
+ node?: MarkdownCodeNode;
4
+ code?: string;
5
+ language?: string;
6
+ standalone?: boolean;
7
+ ignoreRegion?: boolean;
8
+ };
9
+ declare var __VLS_7: {}, __VLS_9: {};
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_7) => any;
12
+ } & {
13
+ default?: (props: typeof __VLS_9) => any;
14
+ };
15
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
+ code: string;
17
+ language: string;
18
+ node: MarkdownCodeNode;
19
+ standalone: boolean;
20
+ ignoreRegion: boolean;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
25
+ type __VLS_WithSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1 @@
1
+ export { t as default } from "../chunks/MarkdownCode-B1k9tmW5.js";
@@ -0,0 +1,33 @@
1
+ import { DiagnosticFormatter, MarkdownConfig, MarkdownHighlighter, MarkdownLabels, MarkdownPipeline, MarkdownPreset, MarkdownSlugger, MarkdownTheme, MarkdownUrlTransform, MathEngine, MermaidRenderer, PluginInput } from '../core/types';
2
+ import { VueMarkdownNodeComponents, VueMarkdownRegionComponents, VueMarkdownTagComponents } from './types';
3
+ type __VLS_Props = {
4
+ theme?: MarkdownTheme;
5
+ tokens?: Record<string, string>;
6
+ labels?: Partial<MarkdownLabels>;
7
+ components?: VueMarkdownTagComponents;
8
+ regions?: VueMarkdownRegionComponents;
9
+ nodeComponents?: VueMarkdownNodeComponents;
10
+ plugins?: PluginInput[];
11
+ pipeline?: MarkdownPipeline;
12
+ highlighter?: MarkdownHighlighter;
13
+ mathEngine?: MathEngine;
14
+ mermaidRenderer?: MermaidRenderer;
15
+ diagnosticsFormatter?: DiagnosticFormatter;
16
+ slugger?: MarkdownSlugger;
17
+ urlTransform?: MarkdownUrlTransform;
18
+ config?: MarkdownConfig;
19
+ preset?: MarkdownPreset | MarkdownPreset[];
20
+ };
21
+ declare var __VLS_1: {};
22
+ type __VLS_Slots = {} & {
23
+ default?: (props: typeof __VLS_1) => any;
24
+ };
25
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1 @@
1
+ export { t as default } from "../chunks/MarkdownConfigProvider-5N3ylrIu.js";
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ nodes?: unknown[];
3
+ };
4
+ declare var __VLS_1: {};
5
+ type __VLS_Slots = {} & {
6
+ default?: (props: typeof __VLS_1) => any;
7
+ };
8
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -0,0 +1 @@
1
+ export { t as default } from "../chunks/MarkdownContent-BAK6dqo7.js";
@@ -0,0 +1,20 @@
1
+ import { MarkdownCustomTagNode } from '../core/types';
2
+ type __VLS_Props = {
3
+ node: MarkdownCustomTagNode;
4
+ children?: unknown[];
5
+ tag?: string;
6
+ customProps?: Record<string, unknown>;
7
+ };
8
+ declare var __VLS_9: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_9) => any;
11
+ };
12
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1 @@
1
+ export { t as default } from "../chunks/MarkdownCustomTag-lZJHsD6f.js";
@@ -0,0 +1,18 @@
1
+ import { MarkdownNode } from '../core/types';
2
+ type __VLS_Props = {
3
+ node: MarkdownNode;
4
+ children?: MarkdownNode[];
5
+ };
6
+ declare var __VLS_1: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_1) => any;
9
+ };
10
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1 @@
1
+ export { t as default } from "../chunks/MarkdownEmphasis-CppivOEu.js";