@coderminer/vue-markdown 0.0.0-stage → 1.0.0

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 (291) hide show
  1. package/CHANGELOG.md +110 -0
  2. package/LICENSE +21 -0
  3. package/README.md +579 -3
  4. package/README.zh-CN.md +547 -0
  5. package/dist/chunks/MarkdownBlockquote-DVXziX2t.js +18 -0
  6. package/dist/chunks/MarkdownBlockquote-DVXziX2t.js.map +1 -0
  7. package/dist/chunks/MarkdownBreak-BwCi2Itt.js +18 -0
  8. package/dist/chunks/MarkdownBreak-BwCi2Itt.js.map +1 -0
  9. package/dist/chunks/MarkdownCode-B1k9tmW5.js +65 -0
  10. package/dist/chunks/MarkdownCode-B1k9tmW5.js.map +1 -0
  11. package/dist/chunks/MarkdownConfigProvider-5N3ylrIu.js +51 -0
  12. package/dist/chunks/MarkdownConfigProvider-5N3ylrIu.js.map +1 -0
  13. package/dist/chunks/MarkdownContent-BAK6dqo7.js +15 -0
  14. package/dist/chunks/MarkdownContent-BAK6dqo7.js.map +1 -0
  15. package/dist/chunks/MarkdownCustomTag-BBdn3-WO.js +42 -0
  16. package/dist/chunks/MarkdownCustomTag-BBdn3-WO.js.map +1 -0
  17. package/dist/chunks/MarkdownEmphasis-CppivOEu.js +18 -0
  18. package/dist/chunks/MarkdownEmphasis-CppivOEu.js.map +1 -0
  19. package/dist/chunks/MarkdownEmpty-Av5k6bqa.js +16 -0
  20. package/dist/chunks/MarkdownEmpty-Av5k6bqa.js.map +1 -0
  21. package/dist/chunks/MarkdownError-C0sPs5W0.js +19 -0
  22. package/dist/chunks/MarkdownError-C0sPs5W0.js.map +1 -0
  23. package/dist/chunks/MarkdownFootnoteReference-Dy3Khwyj.js +24 -0
  24. package/dist/chunks/MarkdownFootnoteReference-Dy3Khwyj.js.map +1 -0
  25. package/dist/chunks/MarkdownFootnotes-BRPzkbXv.js +23 -0
  26. package/dist/chunks/MarkdownFootnotes-BRPzkbXv.js.map +1 -0
  27. package/dist/chunks/MarkdownHeading-DaNcP0_6.js +31 -0
  28. package/dist/chunks/MarkdownHeading-DaNcP0_6.js.map +1 -0
  29. package/dist/chunks/MarkdownHorizontalRule-QNe_cuUI.js +18 -0
  30. package/dist/chunks/MarkdownHorizontalRule-QNe_cuUI.js.map +1 -0
  31. package/dist/chunks/MarkdownHtml-66lYkvwM.js +15 -0
  32. package/dist/chunks/MarkdownHtml-66lYkvwM.js.map +1 -0
  33. package/dist/chunks/MarkdownImage-BRy76svs.js +53 -0
  34. package/dist/chunks/MarkdownImage-BRy76svs.js.map +1 -0
  35. package/dist/chunks/MarkdownInlineCode-MXZYFwex.js +18 -0
  36. package/dist/chunks/MarkdownInlineCode-MXZYFwex.js.map +1 -0
  37. package/dist/chunks/MarkdownLink-Dbx3NwgV.js +47 -0
  38. package/dist/chunks/MarkdownLink-Dbx3NwgV.js.map +1 -0
  39. package/dist/chunks/MarkdownList-BJ-_C71k.js +22 -0
  40. package/dist/chunks/MarkdownList-BJ-_C71k.js.map +1 -0
  41. package/dist/chunks/MarkdownListItem-Z1EHIY26.js +18 -0
  42. package/dist/chunks/MarkdownListItem-Z1EHIY26.js.map +1 -0
  43. package/dist/chunks/MarkdownLoading-D-RYtXxf.js +17 -0
  44. package/dist/chunks/MarkdownLoading-D-RYtXxf.js.map +1 -0
  45. package/dist/chunks/MarkdownParagraph-BxLSmSaG.js +18 -0
  46. package/dist/chunks/MarkdownParagraph-BxLSmSaG.js.map +1 -0
  47. package/dist/chunks/MarkdownRenderer-DLRRfsdI.js +416 -0
  48. package/dist/chunks/MarkdownRenderer-DLRRfsdI.js.map +1 -0
  49. package/dist/chunks/MarkdownRoot-DEE6iVfh.js +25 -0
  50. package/dist/chunks/MarkdownRoot-DEE6iVfh.js.map +1 -0
  51. package/dist/chunks/MarkdownStrikethrough-CblvbqDk.js +18 -0
  52. package/dist/chunks/MarkdownStrikethrough-CblvbqDk.js.map +1 -0
  53. package/dist/chunks/MarkdownStrong-uU5MzAoJ.js +18 -0
  54. package/dist/chunks/MarkdownStrong-uU5MzAoJ.js.map +1 -0
  55. package/dist/chunks/MarkdownTable-DmBTg_CR.js +18 -0
  56. package/dist/chunks/MarkdownTable-DmBTg_CR.js.map +1 -0
  57. package/dist/chunks/MarkdownTableCell-eiCJe847.js +33 -0
  58. package/dist/chunks/MarkdownTableCell-eiCJe847.js.map +1 -0
  59. package/dist/chunks/MarkdownTableRow-DuJaPntg.js +18 -0
  60. package/dist/chunks/MarkdownTableRow-DuJaPntg.js.map +1 -0
  61. package/dist/chunks/MarkdownTableSection-PFHz-R33.js +26 -0
  62. package/dist/chunks/MarkdownTableSection-PFHz-R33.js.map +1 -0
  63. package/dist/chunks/MarkdownTaskItem-BcmKo1lk.js +40 -0
  64. package/dist/chunks/MarkdownTaskItem-BcmKo1lk.js.map +1 -0
  65. package/dist/chunks/MarkdownToc-BdOHF-Yo.js +51 -0
  66. package/dist/chunks/MarkdownToc-BdOHF-Yo.js.map +1 -0
  67. package/dist/chunks/MarkdownTocItem-DT9mR3vL.js +27 -0
  68. package/dist/chunks/MarkdownTocItem-DT9mR3vL.js.map +1 -0
  69. package/dist/chunks/MermaidLiveEditor-W-qf3G-5.js +416 -0
  70. package/dist/chunks/MermaidLiveEditor-W-qf3G-5.js.map +1 -0
  71. package/dist/chunks/VueSyntaxHighlighter-DyLsYMwy.js +262 -0
  72. package/dist/chunks/VueSyntaxHighlighter-DyLsYMwy.js.map +1 -0
  73. package/dist/chunks/adapters-CMwX_NEI.js +28 -0
  74. package/dist/chunks/adapters-CMwX_NEI.js.map +1 -0
  75. package/dist/chunks/asyncToGenerator-ChigusFD.js +26 -0
  76. package/dist/chunks/blank-line-Cb-JBP_5.js +90 -0
  77. package/dist/chunks/blank-line-Cb-JBP_5.js.map +1 -0
  78. package/dist/chunks/codemirror-DyphMAEg.js +84 -0
  79. package/dist/chunks/codemirror-DyphMAEg.js.map +1 -0
  80. package/dist/chunks/config-aRYo2R8_.js +12 -0
  81. package/dist/chunks/config-aRYo2R8_.js.map +1 -0
  82. package/dist/chunks/context-8NfW6fxI.js +32 -0
  83. package/dist/chunks/context-8NfW6fxI.js.map +1 -0
  84. package/dist/chunks/default-DWVS-I_8.js +23 -0
  85. package/dist/chunks/default-DWVS-I_8.js.map +1 -0
  86. package/dist/chunks/diagnostics-CtHoJyiX.js +25 -0
  87. package/dist/chunks/diagnostics-CtHoJyiX.js.map +1 -0
  88. package/dist/chunks/export-DZQ3cUry.js +1575 -0
  89. package/dist/chunks/export-DZQ3cUry.js.map +1 -0
  90. package/dist/chunks/hast-nodes-C0bX3M5Z.js +35 -0
  91. package/dist/chunks/hast-nodes-C0bX3M5Z.js.map +1 -0
  92. package/dist/chunks/highlightjs-BEh-YwEG.js +6041 -0
  93. package/dist/chunks/highlightjs-BEh-YwEG.js.map +1 -0
  94. package/dist/chunks/identity-jZEhX2d5.js +6244 -0
  95. package/dist/chunks/identity-jZEhX2d5.js.map +1 -0
  96. package/dist/chunks/labels-BtHiUTQI.js +49 -0
  97. package/dist/chunks/labels-BtHiUTQI.js.map +1 -0
  98. package/dist/chunks/lib-BQiWGWpu.js +5087 -0
  99. package/dist/chunks/lib-BQiWGWpu.js.map +1 -0
  100. package/dist/chunks/lib-LwqA_W3J.js +127 -0
  101. package/dist/chunks/lib-LwqA_W3J.js.map +1 -0
  102. package/dist/chunks/longest-streak-DZE_EqsU.js +10 -0
  103. package/dist/chunks/longest-streak-DZE_EqsU.js.map +1 -0
  104. package/dist/chunks/micromark-factory-space-Db040TnW.js +139 -0
  105. package/dist/chunks/micromark-factory-space-Db040TnW.js.map +1 -0
  106. package/dist/chunks/normalize-CRYv3Wqt.js +220 -0
  107. package/dist/chunks/normalize-CRYv3Wqt.js.map +1 -0
  108. package/dist/chunks/objectSpread2-CtBNx0TF.js +57 -0
  109. package/dist/chunks/plugin-DqkFHyny.js +28 -0
  110. package/dist/chunks/plugin-DqkFHyny.js.map +1 -0
  111. package/dist/chunks/preset-BjaOuJUL.js +46 -0
  112. package/dist/chunks/preset-BjaOuJUL.js.map +1 -0
  113. package/dist/chunks/registry-DLjr93-V.js +6144 -0
  114. package/dist/chunks/registry-DLjr93-V.js.map +1 -0
  115. package/dist/chunks/render-Cs8iKrgz.js +1724 -0
  116. package/dist/chunks/render-Cs8iKrgz.js.map +1 -0
  117. package/dist/chunks/runtime-DJMnzjah.js +546 -0
  118. package/dist/chunks/runtime-DJMnzjah.js.map +1 -0
  119. package/dist/chunks/security-y4EwUyAs.js +214 -0
  120. package/dist/chunks/security-y4EwUyAs.js.map +1 -0
  121. package/dist/chunks/shared-DNAvZ-UY.js +76 -0
  122. package/dist/chunks/shared-DNAvZ-UY.js.map +1 -0
  123. package/dist/chunks/space-separated-tokens-CmBjEPdR.js +1099 -0
  124. package/dist/chunks/space-separated-tokens-CmBjEPdR.js.map +1 -0
  125. package/dist/chunks/url-D2BoivaE.js +26 -0
  126. package/dist/chunks/url-D2BoivaE.js.map +1 -0
  127. package/dist/chunks/useActiveHeading-BaGVMJnB.js +316 -0
  128. package/dist/chunks/useActiveHeading-BaGVMJnB.js.map +1 -0
  129. package/dist/components/CodeBlock.d.ts +73 -0
  130. package/dist/components/CodeBlock.js +1 -0
  131. package/dist/components/Icon.d.ts +6 -0
  132. package/dist/components/MarkdownBlockquote.d.ts +18 -0
  133. package/dist/components/MarkdownBlockquote.js +1 -0
  134. package/dist/components/MarkdownBreak.d.ts +8 -0
  135. package/dist/components/MarkdownBreak.js +1 -0
  136. package/dist/components/MarkdownChildren.d.ts +17 -0
  137. package/dist/components/MarkdownCode.d.ts +29 -0
  138. package/dist/components/MarkdownCode.js +1 -0
  139. package/dist/components/MarkdownConfigProvider.d.ts +33 -0
  140. package/dist/components/MarkdownConfigProvider.js +1 -0
  141. package/dist/components/MarkdownContent.d.ts +16 -0
  142. package/dist/components/MarkdownContent.js +1 -0
  143. package/dist/components/MarkdownCustomTag.d.ts +20 -0
  144. package/dist/components/MarkdownCustomTag.js +1 -0
  145. package/dist/components/MarkdownEmphasis.d.ts +18 -0
  146. package/dist/components/MarkdownEmphasis.js +1 -0
  147. package/dist/components/MarkdownEmpty.d.ts +8 -0
  148. package/dist/components/MarkdownEmpty.js +1 -0
  149. package/dist/components/MarkdownError.d.ts +11 -0
  150. package/dist/components/MarkdownError.js +1 -0
  151. package/dist/components/MarkdownFootnoteReference.d.ts +19 -0
  152. package/dist/components/MarkdownFootnoteReference.js +1 -0
  153. package/dist/components/MarkdownFootnotes.d.ts +17 -0
  154. package/dist/components/MarkdownFootnotes.js +1 -0
  155. package/dist/components/MarkdownHeading.d.ts +18 -0
  156. package/dist/components/MarkdownHeading.js +1 -0
  157. package/dist/components/MarkdownHorizontalRule.d.ts +8 -0
  158. package/dist/components/MarkdownHorizontalRule.js +1 -0
  159. package/dist/components/MarkdownHtml.d.ts +8 -0
  160. package/dist/components/MarkdownHtml.js +1 -0
  161. package/dist/components/MarkdownImage.d.ts +15 -0
  162. package/dist/components/MarkdownImage.js +1 -0
  163. package/dist/components/MarkdownInlineCode.d.ts +18 -0
  164. package/dist/components/MarkdownInlineCode.js +1 -0
  165. package/dist/components/MarkdownLink.d.ts +22 -0
  166. package/dist/components/MarkdownLink.js +1 -0
  167. package/dist/components/MarkdownList.d.ts +18 -0
  168. package/dist/components/MarkdownList.js +1 -0
  169. package/dist/components/MarkdownListItem.d.ts +18 -0
  170. package/dist/components/MarkdownListItem.js +1 -0
  171. package/dist/components/MarkdownLoading.d.ts +8 -0
  172. package/dist/components/MarkdownLoading.js +1 -0
  173. package/dist/components/MarkdownMath.d.ts +12 -0
  174. package/dist/components/MarkdownMath.js +1 -0
  175. package/dist/components/MarkdownMermaid.d.ts +78 -0
  176. package/dist/components/MarkdownMermaid.js +1 -0
  177. package/dist/components/MarkdownParagraph.d.ts +18 -0
  178. package/dist/components/MarkdownParagraph.js +1 -0
  179. package/dist/components/MarkdownRenderer.d.ts +170 -0
  180. package/dist/components/MarkdownRenderer.js +1 -0
  181. package/dist/components/MarkdownRoot.d.ts +24 -0
  182. package/dist/components/MarkdownRoot.js +1 -0
  183. package/dist/components/MarkdownStrikethrough.d.ts +18 -0
  184. package/dist/components/MarkdownStrikethrough.js +1 -0
  185. package/dist/components/MarkdownStrong.d.ts +18 -0
  186. package/dist/components/MarkdownStrong.js +1 -0
  187. package/dist/components/MarkdownTable.d.ts +18 -0
  188. package/dist/components/MarkdownTable.js +1 -0
  189. package/dist/components/MarkdownTableCell.d.ts +20 -0
  190. package/dist/components/MarkdownTableCell.js +1 -0
  191. package/dist/components/MarkdownTableRow.d.ts +18 -0
  192. package/dist/components/MarkdownTableRow.js +1 -0
  193. package/dist/components/MarkdownTableSection.d.ts +18 -0
  194. package/dist/components/MarkdownTableSection.js +1 -0
  195. package/dist/components/MarkdownTaskItem.d.ts +20 -0
  196. package/dist/components/MarkdownTaskItem.js +1 -0
  197. package/dist/components/MarkdownToc.d.ts +36 -0
  198. package/dist/components/MarkdownToc.js +1 -0
  199. package/dist/components/MarkdownTocItem.d.ts +14 -0
  200. package/dist/components/MarkdownTocItem.js +1 -0
  201. package/dist/components/MermaidBlock.d.ts +50 -0
  202. package/dist/components/MermaidBlock.js +1 -0
  203. package/dist/components/MermaidLiveEditor.d.ts +44 -0
  204. package/dist/components/MermaidLiveEditor.js +1 -0
  205. package/dist/components/VueSyntaxHighlighter.d.ts +39 -0
  206. package/dist/components/VueSyntaxHighlighter.js +1 -0
  207. package/dist/components/codeRegion.d.ts +14 -0
  208. package/dist/components/config.d.ts +7 -0
  209. package/dist/components/context.d.ts +45 -0
  210. package/dist/components/index.d.ts +42 -0
  211. package/dist/components/index.js +38 -0
  212. package/dist/components/render.d.ts +9 -0
  213. package/dist/components/scroll-lock.d.ts +7 -0
  214. package/dist/components/types.d.ts +29 -0
  215. package/dist/composables/useActiveHeading.d.ts +12 -0
  216. package/dist/composables/useCodeHighlighter.d.ts +30 -0
  217. package/dist/composables/useLineWindow.d.ts +38 -0
  218. package/dist/composables/useMarkdownDocument.d.ts +23 -0
  219. package/dist/core/adapters.d.ts +7 -0
  220. package/dist/core/config.d.ts +5 -0
  221. package/dist/core/diagnostics.d.ts +9 -0
  222. package/dist/core/finalize.d.ts +18 -0
  223. package/dist/core/hast-nodes.d.ts +6 -0
  224. package/dist/core/highlight-lines.d.ts +8 -0
  225. package/dist/core/identity.d.ts +4 -0
  226. package/dist/core/labels.d.ts +4 -0
  227. package/dist/core/manifest.d.ts +38 -0
  228. package/dist/core/memo.d.ts +5 -0
  229. package/dist/core/model-hast.d.ts +8 -0
  230. package/dist/core/model.d.ts +10 -0
  231. package/dist/core/normalize.d.ts +27 -0
  232. package/dist/core/parts.d.ts +135 -0
  233. package/dist/core/preset.d.ts +10 -0
  234. package/dist/core/run.d.ts +16 -0
  235. package/dist/core/search.d.ts +5 -0
  236. package/dist/core/security.d.ts +21 -0
  237. package/dist/core/slugger.d.ts +6 -0
  238. package/dist/core/types.d.ts +390 -0
  239. package/dist/core/url.d.ts +10 -0
  240. package/dist/editor/codemirror.d.ts +14 -0
  241. package/dist/editor/index.d.ts +2 -0
  242. package/dist/editor/index.js +1 -0
  243. package/dist/export/index.d.ts +6 -0
  244. package/dist/headless.d.ts +21 -0
  245. package/dist/headless.js +12 -0
  246. package/dist/highlight/highlightjs.d.ts +7 -0
  247. package/dist/highlight/index.d.ts +3 -0
  248. package/dist/highlight/index.js +3 -0
  249. package/dist/highlight/shared.d.ts +16 -0
  250. package/dist/highlight/shiki.d.ts +7 -0
  251. package/dist/highlight/shiki.js +76 -0
  252. package/dist/highlight/shiki.js.map +1 -0
  253. package/dist/html/index.d.ts +17 -0
  254. package/dist/html/index.js +13 -0
  255. package/dist/html/index.js.map +1 -0
  256. package/dist/index.d.ts +24 -0
  257. package/dist/index.js +55 -0
  258. package/dist/index.js.map +1 -0
  259. package/dist/math/index.d.ts +4 -0
  260. package/dist/math/index.js +583 -0
  261. package/dist/math/index.js.map +1 -0
  262. package/dist/math/katex.d.ts +4 -0
  263. package/dist/math/plugin.d.ts +20 -0
  264. package/dist/mermaid/index.d.ts +5 -0
  265. package/dist/mermaid/index.js +3 -0
  266. package/dist/mermaid/plugin.d.ts +14 -0
  267. package/dist/mermaid/runtime.d.ts +12 -0
  268. package/dist/mermaid/sanitize.d.ts +12 -0
  269. package/dist/node-components.d.ts +1 -0
  270. package/dist/node-components.js +39 -0
  271. package/dist/pipeline/custom.d.ts +8 -0
  272. package/dist/pipeline/identity.d.ts +12 -0
  273. package/dist/pipeline/index.d.ts +5 -0
  274. package/dist/pipeline/official.d.ts +6 -0
  275. package/dist/pipeline.d.ts +1 -0
  276. package/dist/pipeline.js +1 -0
  277. package/dist/plugins/builtin.d.ts +15 -0
  278. package/dist/plugins/define.d.ts +7 -0
  279. package/dist/plugins/registry.d.ts +16 -0
  280. package/dist/plugins/source.d.ts +7 -0
  281. package/dist/plugins.d.ts +3 -0
  282. package/dist/plugins.js +1 -0
  283. package/dist/presets.d.ts +3 -0
  284. package/dist/presets.js +1 -0
  285. package/dist/style.css +2 -0
  286. package/dist/styles/components.css +712 -0
  287. package/dist/styles/index.d.ts +1 -0
  288. package/dist/styles/math-full.css +3 -0
  289. package/dist/styles/math.css +18 -0
  290. package/dist/styles/tokens.css +96 -0
  291. package/package.json +211 -6
@@ -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/MarkdownParagraph-BxLSmSaG.js";
@@ -0,0 +1,170 @@
1
+ import { Component } from 'vue';
2
+ import { PluggableList } from 'unified';
3
+ import { AllowElement, DiagnosticFormatter, MarkdownDiagnostic, MarkdownDocument, MarkdownHighlighter, MarkdownLabels, MarkdownNode, MarkdownPipeline, MarkdownPreset, MarkdownSlugger, MarkdownTheme, MarkdownUrlTransform, MathEngine, MermaidRenderer, PluginInput, SearchChangePayload, TocItem } from '../core/types';
4
+ import { CustomTagClickPayload, LinkClickPayload } from './context';
5
+ import { VueMarkdownNodeComponents, VueMarkdownRegionComponents, VueMarkdownTagComponents } from './types';
6
+ type __VLS_Props = {
7
+ source?: string;
8
+ components?: VueMarkdownTagComponents;
9
+ regions?: VueMarkdownRegionComponents;
10
+ nodeComponents?: VueMarkdownNodeComponents;
11
+ labels?: Partial<MarkdownLabels>;
12
+ preset?: MarkdownPreset | MarkdownPreset[];
13
+ plugins?: PluginInput[];
14
+ disablePlugins?: string[];
15
+ remarkPlugins?: PluggableList;
16
+ rehypePlugins?: PluggableList;
17
+ remarkRehypeOptions?: Record<string, unknown>;
18
+ pipeline?: MarkdownPipeline;
19
+ slugger?: MarkdownSlugger;
20
+ highlighter?: MarkdownHighlighter;
21
+ mathEngine?: MathEngine;
22
+ mermaidRenderer?: MermaidRenderer;
23
+ diagnosticsFormatter?: DiagnosticFormatter;
24
+ allowedElements?: string[];
25
+ disallowedElements?: string[];
26
+ unwrapDisallowed?: boolean;
27
+ allowElement?: AllowElement;
28
+ urlTransform?: MarkdownUrlTransform;
29
+ linkTarget?: string;
30
+ externalLinkTarget?: string;
31
+ baseUrl?: string;
32
+ idPrefix?: string;
33
+ syncHash?: boolean;
34
+ toc?: boolean;
35
+ tocDepth?: number;
36
+ tocPlacement?: 'top' | 'left' | 'right' | 'hidden';
37
+ search?: string;
38
+ searchCaseSensitive?: boolean;
39
+ showError?: boolean;
40
+ tokens?: Record<string, string>;
41
+ theme?: MarkdownTheme;
42
+ as?: string | Component;
43
+ };
44
+ declare function scrollToHeading(id: string, options?: ScrollIntoViewOptions): void;
45
+ declare var __VLS_1: {
46
+ document: MarkdownDocument | undefined;
47
+ toc: TocItem[];
48
+ status: import('..').MarkdownStatus;
49
+ diagnostics: MarkdownDiagnostic[];
50
+ tokens: {
51
+ [x: string]: string;
52
+ };
53
+ theme: MarkdownTheme;
54
+ actions: {
55
+ scrollToHeading: typeof scrollToHeading;
56
+ getDocument: () => MarkdownDocument | undefined;
57
+ getToc: () => TocItem[];
58
+ refresh: () => Promise<void>;
59
+ };
60
+ }, __VLS_9: {
61
+ items: TocItem[];
62
+ activeId: string | undefined;
63
+ label: string;
64
+ tocDepth: number;
65
+ navigate: typeof scrollToHeading;
66
+ }, __VLS_20: any, __VLS_22: {
67
+ nodes: MarkdownNode[];
68
+ document: MarkdownDocument | undefined;
69
+ }, __VLS_35: {
70
+ label: string;
71
+ }, __VLS_42: {
72
+ label: string;
73
+ }, __VLS_49: {
74
+ diagnostics: MarkdownDiagnostic[];
75
+ label: string;
76
+ retry: () => Promise<void>;
77
+ };
78
+ type __VLS_Slots = {} & {
79
+ root?: (props: typeof __VLS_1) => any;
80
+ } & {
81
+ toc?: (props: typeof __VLS_9) => any;
82
+ } & {
83
+ 'toc-item'?: (props: typeof __VLS_20) => any;
84
+ } & {
85
+ content?: (props: typeof __VLS_22) => any;
86
+ } & {
87
+ loading?: (props: typeof __VLS_35) => any;
88
+ } & {
89
+ empty?: (props: typeof __VLS_42) => any;
90
+ } & {
91
+ error?: (props: typeof __VLS_49) => any;
92
+ };
93
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
94
+ scrollToHeading: typeof scrollToHeading;
95
+ getDocument: () => MarkdownDocument | undefined;
96
+ getToc: () => TocItem[];
97
+ refresh: () => Promise<void>;
98
+ updateSource: (source: string) => void;
99
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
100
+ "math-error": (diagnostic: MarkdownDiagnostic) => any;
101
+ "task-change": (payload: {
102
+ checked: boolean;
103
+ node: MarkdownNode;
104
+ }) => any;
105
+ ready: (document: MarkdownDocument) => any;
106
+ "update:source": (source: string) => any;
107
+ "toc-change": (toc: TocItem[]) => any;
108
+ "link-click": (payload: LinkClickPayload) => any;
109
+ "custom-tag-click": (payload: CustomTagClickPayload) => any;
110
+ "search-change": (payload: SearchChangePayload) => any;
111
+ "render-error": (diagnostic: MarkdownDiagnostic) => any;
112
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
113
+ "onMath-error"?: ((diagnostic: MarkdownDiagnostic) => any) | undefined;
114
+ "onTask-change"?: ((payload: {
115
+ checked: boolean;
116
+ node: MarkdownNode;
117
+ }) => any) | undefined;
118
+ onReady?: ((document: MarkdownDocument) => any) | undefined;
119
+ "onUpdate:source"?: ((source: string) => any) | undefined;
120
+ "onToc-change"?: ((toc: TocItem[]) => any) | undefined;
121
+ "onLink-click"?: ((payload: LinkClickPayload) => any) | undefined;
122
+ "onCustom-tag-click"?: ((payload: CustomTagClickPayload) => any) | undefined;
123
+ "onSearch-change"?: ((payload: SearchChangePayload) => any) | undefined;
124
+ "onRender-error"?: ((diagnostic: MarkdownDiagnostic) => any) | undefined;
125
+ }>, {
126
+ source: string;
127
+ search: string;
128
+ pipeline: MarkdownPipeline;
129
+ theme: MarkdownTheme;
130
+ toc: boolean;
131
+ highlighter: MarkdownHighlighter;
132
+ allowedElements: string[];
133
+ disallowedElements: string[];
134
+ unwrapDisallowed: boolean;
135
+ allowElement: AllowElement;
136
+ components: VueMarkdownTagComponents;
137
+ regions: VueMarkdownRegionComponents;
138
+ nodeComponents: VueMarkdownNodeComponents;
139
+ labels: Partial<MarkdownLabels>;
140
+ tokens: Record<string, string>;
141
+ slugger: MarkdownSlugger;
142
+ urlTransform: MarkdownUrlTransform;
143
+ mathEngine: MathEngine;
144
+ mermaidRenderer: MermaidRenderer;
145
+ diagnosticsFormatter: DiagnosticFormatter;
146
+ as: string | Component;
147
+ plugins: PluginInput[];
148
+ idPrefix: string;
149
+ disablePlugins: string[];
150
+ remarkPlugins: PluggableList;
151
+ rehypePlugins: PluggableList;
152
+ remarkRehypeOptions: Record<string, unknown>;
153
+ linkTarget: string;
154
+ externalLinkTarget: string;
155
+ baseUrl: string;
156
+ tocDepth: number;
157
+ preset: MarkdownPreset | MarkdownPreset[];
158
+ syncHash: boolean;
159
+ tocPlacement: "hidden" | "left" | "right" | "top";
160
+ searchCaseSensitive: boolean;
161
+ showError: boolean;
162
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
163
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
164
+ declare const _default: typeof __VLS_export;
165
+ export default _default;
166
+ type __VLS_WithSlots<T, S> = T & {
167
+ new (): {
168
+ $slots: S;
169
+ };
170
+ };
@@ -0,0 +1 @@
1
+ export { t as default } from "../chunks/MarkdownRenderer-DLRRfsdI.js";
@@ -0,0 +1,24 @@
1
+ import { Component } from 'vue';
2
+ import { MarkdownTheme } from '../core/types';
3
+ type __VLS_Props = {
4
+ as?: string | Component;
5
+ tokens?: Record<string, string>;
6
+ theme?: MarkdownTheme;
7
+ };
8
+ declare var __VLS_7: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_7) => 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<{}>, {
13
+ theme: MarkdownTheme;
14
+ tokens: Record<string, string>;
15
+ as: string | Component;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1 @@
1
+ export { t as default } from "../chunks/MarkdownRoot-DEE6iVfh.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/MarkdownStrikethrough-CblvbqDk.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/MarkdownStrong-uU5MzAoJ.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/MarkdownTable-DmBTg_CR.js";
@@ -0,0 +1,20 @@
1
+ import { MarkdownNode } from '../core/types';
2
+ type __VLS_Props = {
3
+ node: MarkdownNode;
4
+ children?: MarkdownNode[];
5
+ align?: string;
6
+ scope?: string;
7
+ };
8
+ declare var __VLS_7: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_7) => 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/MarkdownTableCell-eiCJe847.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/MarkdownTableRow-DuJaPntg.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_7: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_7) => 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/MarkdownTableSection-PFHz-R33.js";
@@ -0,0 +1,20 @@
1
+ import { MarkdownNode } from '../core/types';
2
+ type __VLS_Props = {
3
+ node: MarkdownNode;
4
+ children?: MarkdownNode[];
5
+ checked?: boolean;
6
+ disabled?: boolean;
7
+ };
8
+ declare var __VLS_1: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_1) => 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/MarkdownTaskItem-BcmKo1lk.js";
@@ -0,0 +1,36 @@
1
+ import { MarkdownComponentValue, TocItem } from '../core/types';
2
+ type __VLS_Props = {
3
+ items: TocItem[];
4
+ activeId?: string;
5
+ label?: string;
6
+ tocItem?: MarkdownComponentValue;
7
+ /** Maximum heading level to show. `0` or omitted means every level. */
8
+ tocDepth?: number;
9
+ };
10
+ declare function navigate(id: string): void;
11
+ declare var __VLS_2: {
12
+ item: TocItem;
13
+ active: boolean;
14
+ navigate: typeof navigate;
15
+ };
16
+ type __VLS_Slots = {} & {
17
+ 'toc-item'?: (props: typeof __VLS_2) => any;
18
+ };
19
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ navigate: (id: string) => any;
21
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ onNavigate?: ((id: string) => any) | undefined;
23
+ }>, {
24
+ tocItem: string | object | ((...args: never[]) => unknown);
25
+ label: string;
26
+ activeId: string;
27
+ tocDepth: number;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
+ declare const _default: typeof __VLS_export;
31
+ export default _default;
32
+ type __VLS_WithSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1 @@
1
+ export { t as default } from "../chunks/MarkdownToc-BdOHF-Yo.js";
@@ -0,0 +1,14 @@
1
+ import { TocItem } from '../core/types';
2
+ type __VLS_Props = {
3
+ item: TocItem;
4
+ active?: boolean;
5
+ };
6
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ navigate: (id: string) => any;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onNavigate?: ((id: string) => any) | undefined;
10
+ }>, {
11
+ active: boolean;
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1 @@
1
+ export { t as default } from "../chunks/MarkdownTocItem-DT9mR3vL.js";
@@ -0,0 +1,50 @@
1
+ import { MarkdownNode, MarkdownTheme, MermaidAction, MermaidRenderResult, MermaidRenderer } from '../core/types';
2
+ type __VLS_Props = {
3
+ node?: MarkdownNode;
4
+ source?: string;
5
+ renderer?: MermaidRenderer;
6
+ theme?: MarkdownTheme;
7
+ showErrors?: boolean;
8
+ enableZoom?: boolean;
9
+ allowFullscreen?: boolean;
10
+ compact?: boolean;
11
+ actions?: MermaidAction[];
12
+ };
13
+ declare function render(): Promise<void>;
14
+ declare function copy(): Promise<void>;
15
+ declare function exportPng(): Promise<void>;
16
+ declare function downloadSvg(): void;
17
+ declare function toggleFullscreen(next?: boolean): Promise<void>;
18
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
19
+ render: typeof render;
20
+ copy: typeof copy;
21
+ exportPng: typeof exportPng;
22
+ downloadSvg: typeof downloadSvg;
23
+ toggleFullscreen: typeof toggleFullscreen;
24
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ error: (message: string) => any;
26
+ action: (key: string) => any;
27
+ rendered: (result: MermaidRenderResult) => any;
28
+ fullscreen: (active: boolean) => any;
29
+ copy: (source: string) => any;
30
+ export: (format: "svg" | "png") => any;
31
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
32
+ onError?: ((message: string) => any) | undefined;
33
+ onAction?: ((key: string) => any) | undefined;
34
+ onRendered?: ((result: MermaidRenderResult) => any) | undefined;
35
+ onFullscreen?: ((active: boolean) => any) | undefined;
36
+ onCopy?: ((source: string) => any) | undefined;
37
+ onExport?: ((format: "svg" | "png") => any) | undefined;
38
+ }>, {
39
+ source: string;
40
+ theme: MarkdownTheme;
41
+ actions: MermaidAction[];
42
+ compact: boolean;
43
+ node: MarkdownNode;
44
+ renderer: MermaidRenderer;
45
+ showErrors: boolean;
46
+ enableZoom: boolean;
47
+ allowFullscreen: boolean;
48
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
49
+ declare const _default: typeof __VLS_export;
50
+ export default _default;
@@ -0,0 +1 @@
1
+ export { r as default } from "../chunks/render-Cs8iKrgz.js";
@@ -0,0 +1,44 @@
1
+ import { DiagnosticFormatter, MarkdownDiagnostic, MermaidRenderer } from '../core/types';
2
+ type __VLS_Props = {
3
+ modelValue?: string;
4
+ debounce?: number;
5
+ theme?: 'light' | 'dark' | 'auto' | 'custom';
6
+ renderer?: MermaidRenderer;
7
+ diagnosticsFormatter?: DiagnosticFormatter;
8
+ compact?: boolean;
9
+ rawDetails?: boolean;
10
+ autoFocus?: boolean;
11
+ initialRatio?: number;
12
+ minRatio?: number;
13
+ };
14
+ declare function toggleFullscreen(): Promise<void>;
15
+ declare function focus(): void;
16
+ /** Apply the current editor value to the preview without waiting for debounce. */
17
+ declare function refreshPreview(): void;
18
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
19
+ focus: typeof focus;
20
+ refreshPreview: typeof refreshPreview;
21
+ toggleFullscreen: typeof toggleFullscreen;
22
+ getDiagnostics: () => MarkdownDiagnostic[];
23
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
+ error: (diagnostic: MarkdownDiagnostic) => any;
25
+ preview: (value: string) => any;
26
+ "update:modelValue": (value: string) => any;
27
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
28
+ onError?: ((diagnostic: MarkdownDiagnostic) => any) | undefined;
29
+ onPreview?: ((value: string) => any) | undefined;
30
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
31
+ }>, {
32
+ theme: "custom" | "light" | "dark" | "auto";
33
+ diagnosticsFormatter: DiagnosticFormatter;
34
+ autoFocus: boolean;
35
+ compact: boolean;
36
+ renderer: MermaidRenderer;
37
+ modelValue: string;
38
+ debounce: number;
39
+ rawDetails: boolean;
40
+ initialRatio: number;
41
+ minRatio: number;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
43
+ declare const _default: typeof __VLS_export;
44
+ export default _default;
@@ -0,0 +1 @@
1
+ export { t as default } from "../chunks/MermaidLiveEditor-W-qf3G-5.js";
@@ -0,0 +1,39 @@
1
+ import { HighlightLine, MarkdownDiagnostic, MarkdownHighlighter, MarkdownTheme } from '../core/types';
2
+ type __VLS_Props = {
3
+ source: string;
4
+ language?: string;
5
+ theme?: MarkdownTheme;
6
+ highlighter?: MarkdownHighlighter;
7
+ lineNumbers?: boolean;
8
+ highlightLines?: HighlightLine[];
9
+ maxLines?: number;
10
+ virtual?: boolean;
11
+ virtualThreshold?: number;
12
+ lineHeight?: number;
13
+ delay?: number;
14
+ };
15
+ declare function copy(): Promise<void>;
16
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
17
+ copy: typeof copy;
18
+ getHighlighted: () => import('..').HighlightResult;
19
+ highlighted: import('vue').ShallowRef<import('..').HighlightResult>;
20
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ error: (diagnostic: MarkdownDiagnostic) => any;
22
+ copy: (source: string) => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
24
+ onError?: ((diagnostic: MarkdownDiagnostic) => any) | undefined;
25
+ onCopy?: ((source: string) => any) | undefined;
26
+ }>, {
27
+ theme: MarkdownTheme;
28
+ highlighter: MarkdownHighlighter;
29
+ lineHeight: number;
30
+ language: string;
31
+ lineNumbers: boolean;
32
+ highlightLines: HighlightLine[];
33
+ maxLines: number;
34
+ virtual: boolean;
35
+ virtualThreshold: number;
36
+ delay: number;
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
38
+ declare const _default: typeof __VLS_export;
39
+ export default _default;
@@ -0,0 +1 @@
1
+ export { t as default } from "../chunks/VueSyntaxHighlighter-DyLsYMwy.js";
@@ -0,0 +1,14 @@
1
+ import { ComputedRef } from 'vue';
2
+ import { MarkdownComponentValue } from '../core/types';
3
+ export interface UseCodeRegionOptions {
4
+ standalone?: () => boolean;
5
+ ignoreRegion?: () => boolean;
6
+ }
7
+ /**
8
+ * Resolve `regions.codeBlock` for a code component.
9
+ *
10
+ * A region that renders `CodeBlock` (or `MarkdownCode`) internally must not
11
+ * re-enter itself. The provider below marks descendants as already inside a
12
+ * code region, so nested code components always render their own default.
13
+ */
14
+ export declare function useCodeBlockRegion(options?: UseCodeRegionOptions): ComputedRef<MarkdownComponentValue | undefined>;
@@ -0,0 +1,7 @@
1
+ import { ComputedRef, InjectionKey } from 'vue';
2
+ import { MarkdownConfig } from '../core/types';
3
+ export declare const MARKDOWN_CONFIG: InjectionKey<ComputedRef<MarkdownConfig>>;
4
+ /** Read the nearest provider configuration, or an empty configuration. */
5
+ export declare function useMarkdownConfig(): ComputedRef<MarkdownConfig>;
6
+ /** Provide a configuration to descendant renderers and providers. */
7
+ export declare function provideMarkdownConfig(config: ComputedRef<MarkdownConfig>): void;