vue-stream-markdown 0.1.5 → 0.1.6
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.
- package/dist/{blockquote-bkADuiGm.js → blockquote-CxA1dQZe.js} +4 -3
- package/dist/{button-BQhuT7wh.js → button-B2ebQt7R.js} +1 -1
- package/dist/button-C6zIegam.js +5 -0
- package/dist/{code-DF8PTNol.js → code-CPG6B2Cw.js} +11 -11
- package/dist/code-block--1wFjtmu.js +9 -0
- package/dist/{code-block-Dm2wl0cb.js → code-block-I_Yd1Flg.js} +8 -8
- package/dist/{composables-yny5gJo3.js → composables-DWipZHuF.js} +636 -625
- package/dist/corner-down-left-jxlwq3ox.js +24 -0
- package/dist/{delete-D17YBeI-.js → delete-DQ21z5-F.js} +4 -3
- package/dist/dist-CYkm26BF.js +119 -0
- package/dist/dropdown-CtWjJiAf.js +5 -0
- package/dist/{emphasis-B-2R_0Q5.js → emphasis-BjLkIDQB.js} +4 -3
- package/dist/{en-US-Kw2LYAMk.js → en-US-K7SXR3gy.js} +2 -1
- package/dist/{error-component-Bb0gIZsx.js → error-component-DSOVrE5J.js} +1 -1
- package/dist/error-component-DtcRn_0A.js +4 -0
- package/dist/footnote-definition-BmS8hchP.js +103 -0
- package/dist/footnote-reference-Z2tITeCE.js +86 -0
- package/dist/{heading-DyJIwNrN.js → heading-BwBFJB_E.js} +4 -3
- package/dist/{html-DXNqMvt_.js → html-DFU0myJP.js} +2 -2
- package/dist/{image-DvOGBhi-.js → image-BLlap3ce.js} +12 -97
- package/dist/{image-BPhFn1xp.js → image-IKvFWz2r.js} +14 -12
- package/dist/image-aT9xxnwh.js +8 -0
- package/dist/index.css +25 -0
- package/dist/index.d.ts +138 -73
- package/dist/index.js +283 -38
- package/dist/{inline-code-C44UJ2TH.js → inline-code-Bqu84Yyu.js} +2 -2
- package/dist/{inline-math-wO1rMt9T.js → inline-math-C2Ryxm-K.js} +4 -4
- package/dist/{link-sGo7CEll.js → link-BXl7E_6o.js} +6 -6
- package/dist/{list-C0I1ysSI.js → list-DLcwTZns.js} +4 -3
- package/dist/{list-item-BoC2wKBL.js → list-item-H0eYeIdB.js} +4 -3
- package/dist/{math-BlqtUf2r.js → math-C-0d5PaJ.js} +4 -4
- package/dist/{mermaid-Ka1jnXrR.js → mermaid-0x6C2MY5.js} +12 -10
- package/dist/modal-BDgfKnFl.js +4 -0
- package/dist/{modal-Rc_RoeYA.js → modal-CEqU9Ubu.js} +3 -3
- package/dist/{node-list-YhpHXdM_.js → node-list--v2wbxOo.js} +19 -10
- package/dist/node-list-CHvX62Zh.js +4 -0
- package/dist/{paragraph-BN-4-Dn7.js → paragraph-DRPfp6DV.js} +4 -3
- package/dist/previewers-DsN-cTwd.js +10 -0
- package/dist/segmented-DIVDGfR5.js +6 -0
- package/dist/{segmented-CaC54iz_.js → segmented-Drf8EBQD.js} +1 -1
- package/dist/{shiki-sJNZTn1K.js → shiki-CkwRD3TS.js} +5 -5
- package/dist/spin-DWkKEP0G.js +3 -0
- package/dist/{strong-NdAS3VjP.js → strong-D6V4fCRG.js} +4 -3
- package/dist/table-B2mghd3l.js +3 -0
- package/dist/{table-CWX5B2i1.js → table-DLUgGL5Q.js} +8 -8
- package/dist/{text-DpleLvNh.js → text-DoY1TIw3.js} +2 -2
- package/dist/{thematic-break-D5GvzU5S.js → thematic-break-DXDZ5dcO.js} +2 -2
- package/dist/{tooltip-Bgbzbk4Q.js → tooltip-Bdt9-aQx.js} +1 -1
- package/dist/tooltip-DQ1-yPia.js +4 -0
- package/dist/{vanilla-BTOVqKl7.js → vanilla-BSgZTIo9.js} +1 -1
- package/dist/vanilla-DUbuBied.js +4 -0
- package/dist/{yaml-y0snrPRx.js → yaml-3cd5rdJj.js} +3 -3
- package/dist/{zh-CN-Dfow4Yn2.js → zh-CN-CykTNqF_.js} +3 -2
- package/dist/zoom-container-D2DxS8V5.js +6 -0
- package/dist/{zoom-container-B1qbA-7z.js → zoom-container-f44XxzOI.js} +2 -2
- package/package.json +1 -1
- package/dist/button-JYC8d-B-.js +0 -5
- package/dist/code-block-BhMDz2ZL.js +0 -9
- package/dist/dropdown-Y5_Z4a_u.js +0 -5
- package/dist/error-component-DEIWb6kB.js +0 -4
- package/dist/image-DXBD47sF.js +0 -8
- package/dist/modal-Duhc-vVa.js +0 -4
- package/dist/node-list-C1je2nLd.js +0 -3
- package/dist/previewers-D0VVcdjL.js +0 -10
- package/dist/segmented-XdoLnuuq.js +0 -6
- package/dist/spin-wM2KE8mO.js +0 -3
- package/dist/table-R9gmCXm_.js +0 -3
- package/dist/tooltip-BJDs-A8d.js +0 -4
- package/dist/vanilla-DA5bwIkr.js +0 -4
- package/dist/zoom-container-KztuE4ri.js +0 -6
- /package/dist/{angular-Mip1mspI.js → angular-CEQtRU3N.js} +0 -0
- /package/dist/{angular-component-Cq5UbX7R.js → angular-component-QEWXDi5W.js} +0 -0
- /package/dist/{apache-BSq7fX32.js → apache-D1WYHuA2.js} +0 -0
- /package/dist/{arrow-left-C5s0Sn8o.js → arrow-left-DiHYz8df.js} +0 -0
- /package/dist/{asciidoc-DS-PMOLv.js → asciidoc-BbV_Tvaj.js} +0 -0
- /package/dist/{assembly-BPatlOM7.js → assembly-DOdgqSeT.js} +0 -0
- /package/dist/{astro-CSD_ZjXp.js → astro-I7-Zr25r.js} +0 -0
- /package/dist/{bash-RITislE1.js → bash-BC7HOdMh.js} +0 -0
- /package/dist/{batch-DWPShYhN.js → batch-XAv7F3kV.js} +0 -0
- /package/dist/{bicep-C6BEHfP6.js → bicep-B9IAZzHb.js} +0 -0
- /package/dist/{c-DNo3tsNy.js → c-B3pMu4KG.js} +0 -0
- /package/dist/{check-BfpxIITS.js → check-BjAiKMbo.js} +0 -0
- /package/dist/{chevron-down-LeNeemjn.js → chevron-down-B4lkjpIC.js} +0 -0
- /package/dist/{circle-alert-BjDuIzgc.js → circle-alert-DlAafH7h.js} +0 -0
- /package/dist/{clojure-C1DEYHW0.js → clojure-DwxK-YDX.js} +0 -0
- /package/dist/{cmake-B69mdXcH.js → cmake-DtnmI6Z6.js} +0 -0
- /package/dist/{cobol-qmL-zIWi.js → cobol--wWeXL_f.js} +0 -0
- /package/dist/{code-D9CiymEK.js → code-lfRPXNJI.js} +0 -0
- /package/dist/{codeowners-Crklt5nF.js → codeowners-Dtwyh-5g.js} +0 -0
- /package/dist/{coffeescript-k3huSp23.js → coffeescript-BlF7y2QG.js} +0 -0
- /package/dist/{copy-C4580J93.js → copy-BTFPPhff.js} +0 -0
- /package/dist/{cpp-Cn3MB35e.js → cpp-D_TbJeEH.js} +0 -0
- /package/dist/{crystal-D5aGETSx.js → crystal-lJ2ZzJQu.js} +0 -0
- /package/dist/{csharp-CgkTkbPx.js → csharp-D-5hlCJT.js} +0 -0
- /package/dist/{css-DRH4n_IV.js → css-Drykp8uH.js} +0 -0
- /package/dist/{csv-D5nNTIzO.js → csv-oLjD_o9N.js} +0 -0
- /package/dist/{cue-B5mC88-N.js → cue-BBe_9OA4.js} +0 -0
- /package/dist/{d-BdQRMgma.js → d-CPNK2-3G.js} +0 -0
- /package/dist/{dart-BGnfn0NN.js → dart-BNaQZJdJ.js} +0 -0
- /package/dist/{database-Ca1VGX7u.js → database-DRAhifbf.js} +0 -0
- /package/dist/{diff-DVaTsnqu.js → diff-D_vIvULL.js} +0 -0
- /package/dist/{docker-E47qYlmL.js → docker-BgJkkqCD.js} +0 -0
- /package/dist/{download-DytrK56a.js → download-Bk2mYZyf.js} +0 -0
- /package/dist/{elixir-C-jqqu6q.js → elixir-CTx5aScS.js} +0 -0
- /package/dist/{elm-CmeHvaWl.js → elm-nHy9iRuu.js} +0 -0
- /package/dist/{env-Ck1BHoxR.js → env-CrWzDcwP.js} +0 -0
- /package/dist/{erlang-CIP8kpGJ.js → erlang-CxR4-Qdt.js} +0 -0
- /package/dist/{eye-TaEwQS2Z.js → eye-DpAj1af-.js} +0 -0
- /package/dist/{flip-horizontal-BFWjqDbQ.js → flip-horizontal-CEf7aAdM.js} +0 -0
- /package/dist/{fortran-DJVP2s7V.js → fortran-DhUZYzo3.js} +0 -0
- /package/dist/{fsharp-Bp6mUcG0.js → fsharp-DyIvnsyH.js} +0 -0
- /package/dist/{git-BDcqJ1Gp.js → git-D4qjCZtd.js} +0 -0
- /package/dist/{gleam-JLiZVlev.js → gleam-D-ovCBt_.js} +0 -0
- /package/dist/{go-ClcCiS7e.js → go-CEH2y3pJ.js} +0 -0
- /package/dist/{graphql-D2RDo-DF.js → graphql-DbV-8_AJ.js} +0 -0
- /package/dist/{groovy-DLZBw8xE.js → groovy-B-_VVp4c.js} +0 -0
- /package/dist/{haml-Da74jRwZ.js → haml-Cnm_v56B.js} +0 -0
- /package/dist/{handlebars-CNgS57Sz.js → handlebars-8EEQS0El.js} +0 -0
- /package/dist/{haskell-DCvfD6VB.js → haskell-cLvKQFrd.js} +0 -0
- /package/dist/{haxe-CHVK1TId.js → haxe-DtCGwrr1.js} +0 -0
- /package/dist/{html-Du4235Z-.js → html-C2NHp3i4.js} +0 -0
- /package/dist/{http-B8VAFeQ5.js → http-DYO1Ugj7.js} +0 -0
- /package/dist/{image-D8MZj4W5.js → image-DDiNDOKJ.js} +0 -0
- /package/dist/{java-CoSdnK1N.js → java-it6UCC5M.js} +0 -0
- /package/dist/{javascript-BCDeVll0.js → javascript-DVxfoa-a.js} +0 -0
- /package/dist/{jinja-DYbiqZy0.js → jinja-CUKX2CXM.js} +0 -0
- /package/dist/{json-CdzCyWJA.js → json-O68iFOiu.js} +0 -0
- /package/dist/{julia-pswJGtpP.js → julia-Dq3BwHeZ.js} +0 -0
- /package/dist/{kdl-M8rfQ85l.js → kdl-CFVZba8u.js} +0 -0
- /package/dist/{kotlin-CfCV33oB.js → kotlin-BKhxhG0q.js} +0 -0
- /package/dist/{latex-DK8DFhTm.js → latex-B3hQqfJO.js} +0 -0
- /package/dist/{less-BFnNZiIs.js → less-Bw2JZJkw.js} +0 -0
- /package/dist/{link-C7eU_yi-.js → link-DCaSecEI.js} +0 -0
- /package/dist/{liquid-C8h46DoX.js → liquid-BsGDMxjJ.js} +0 -0
- /package/dist/{lisp-C3FbGuD1.js → lisp-CnrazyOe.js} +0 -0
- /package/dist/{log-D-O3FXf2.js → log-BuRjhdbZ.js} +0 -0
- /package/dist/{lua-BC_aR1_i.js → lua-CA97s0xX.js} +0 -0
- /package/dist/{luau-DFUOrNN7.js → luau-hq6gk9_N.js} +0 -0
- /package/dist/{makefile-Ck67veVV.js → makefile-mNhrnPWo.js} +0 -0
- /package/dist/{markdown-BX13X3kd.js → markdown-El6B7b99.js} +0 -0
- /package/dist/{marko-CQE8YTCc.js → marko-8nTOMumd.js} +0 -0
- /package/dist/{matlab-Bd9O2Ml3.js → matlab-DuqengFv.js} +0 -0
- /package/dist/{maximize-CDZ9rnYF.js → maximize-B1-N6kOL.js} +0 -0
- /package/dist/{mermaid-Dv-Pr0W-.js → mermaid-Byu8TsQE.js} +0 -0
- /package/dist/{minimize-B9ER7p2X.js → minimize-CVVLdf2H.js} +0 -0
- /package/dist/{nextflow-D3lDq1Yi.js → nextflow-DRCOPmGT.js} +0 -0
- /package/dist/{nginx-CgsqCL4l.js → nginx-DTgW--wm.js} +0 -0
- /package/dist/{nim-BJdSu3c6.js → nim-r-ftp-xj.js} +0 -0
- /package/dist/{nix-B7K_D6CN.js → nix-BdWPBS1Z.js} +0 -0
- /package/dist/{ocaml-gYS1Y45s.js → ocaml-vXi6ujuu.js} +0 -0
- /package/dist/{perl-DXFhFWhI.js → perl-C_g5vs30.js} +0 -0
- /package/dist/{php-We35bF4E.js → php-C_b0sjdl.js} +0 -0
- /package/dist/{postcss-BWovY_YV.js → postcss-Bsz3PPjI.js} +0 -0
- /package/dist/{powershell-C6teiBsq.js → powershell-D0kxdwKl.js} +0 -0
- /package/dist/{prisma-UyJEg0_X.js → prisma-BocqbK7a.js} +0 -0
- /package/dist/{prolog-YZsPgdnw.js → prolog-D-zd1rzT.js} +0 -0
- /package/dist/{properties-DaPbL0e2.js → properties-Dds-063G.js} +0 -0
- /package/dist/{proto-1LIwu2O1.js → proto-CzD9trm_.js} +0 -0
- /package/dist/{pug-CzkUK-Ec.js → pug-B1V2RxQS.js} +0 -0
- /package/dist/{puppet-CNhB1MHb.js → puppet-BcnVd0q5.js} +0 -0
- /package/dist/{python-B_hgEobv.js → python-BcZnB7mH.js} +0 -0
- /package/dist/{r-CVeKYmPK.js → r-CxSFFuvL.js} +0 -0
- /package/dist/{racket-D5UfvXuw.js → racket-DJ_82PRG.js} +0 -0
- /package/dist/{razor-RIKaANTN.js → razor-D7IkXHVQ.js} +0 -0
- /package/dist/{rotate-ccw-square-C2KVFUF3.js → rotate-ccw-square-5sO65BY9.js} +0 -0
- /package/dist/{ruby-C8wV0pMO.js → ruby-Cidk52Rl.js} +0 -0
- /package/dist/{rust-75Gei1mP.js → rust-DJvcpkbm.js} +0 -0
- /package/dist/{sass-Cq68xmQ4.js → sass-DTFDeixE.js} +0 -0
- /package/dist/{scala-C_E5rjSc.js → scala-GlHhGi5O.js} +0 -0
- /package/dist/{scheme-Bm-q-nLL.js → scheme-rNcj5mL9.js} +0 -0
- /package/dist/{shader-DPaRkMCs.js → shader-Df9eByRK.js} +0 -0
- /package/dist/{shiki-token-renderer-CLmUjKa3.js → shiki-token-renderer-BMveKuYt.js} +0 -0
- /package/dist/{solidity-DvHG_0CD.js → solidity-CfuYjRuT.js} +0 -0
- /package/dist/{spin--f5jNjBn.js → spin-D4Oi_m7j.js} +0 -0
- /package/dist/{stata-DoVloJLm.js → stata-BB5c_hbh.js} +0 -0
- /package/dist/{svelte-tlbA11de.js → svelte-2ISqxu6B.js} +0 -0
- /package/dist/{swift-BZn5eRnK.js → swift-wpybyudn.js} +0 -0
- /package/dist/{table-CaUMjs4M.js → table-iNA4la0w.js} +0 -0
- /package/dist/{terraform-c5-k7yB1.js → terraform-CLzhaCaX.js} +0 -0
- /package/dist/{text-DPCGWvDK.js → text-C0mKr3tC.js} +0 -0
- /package/dist/{toml-DdLGBe1A.js → toml-DImd1uev.js} +0 -0
- /package/dist/{twig-D_jzZxh6.js → twig-DEBVmtOq.js} +0 -0
- /package/dist/{typescript-B95hq2ns.js → typescript-Xo5tgeOd.js} +0 -0
- /package/dist/{typst-CSAEQ4yK.js → typst-_Ui0vNYP.js} +0 -0
- /package/dist/{v-BAhebuOB.js → v-Ch6vEAHG.js} +0 -0
- /package/dist/{vala-RAu83-lp.js → vala-Ds_Ad1cC.js} +0 -0
- /package/dist/{verilog-BgmTn52U.js → verilog-CUqRomTC.js} +0 -0
- /package/dist/{vim-c8oTCLkH.js → vim-BFUPh6oM.js} +0 -0
- /package/dist/{vue-TGT6HTBA.js → vue-DzgIlbJ2.js} +0 -0
- /package/dist/{xml-C1HDr874.js → xml-CmbQxaqc.js} +0 -0
- /package/dist/{yaml-BO7FjFQZ.js → yaml-BhwCoLnZ.js} +0 -0
- /package/dist/{zig-qANBp1SU.js → zig-Bmrmp8vo.js} +0 -0
- /package/dist/{zoomIn-iVMAUxIz.js → zoomIn-CCKcyIEv.js} +0 -0
- /package/dist/{zoomOut-Cxq1_dIQ.js → zoomOut-BrSwLQZ_.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { t as CODE_PREVIEWERS } from "./previewers-
|
|
2
|
-
import { A as
|
|
3
|
-
import { t as node_list_default } from "./node-list
|
|
1
|
+
import { t as CODE_PREVIEWERS } from "./previewers-DsN-cTwd.js";
|
|
2
|
+
import { A as save, B as useFloatingElement, C as tableDataToTSV, D as hasMermaid, E as hasKatex, F as SUPPORT_LANGUAGES, H as useContext, I as currentLocale, L as loadLocaleMessages, M as svgToPngBlob, N as transformUrl, O as hasShiki, P as useI18n, R as localeMessages, S as tableDataToMarkdown, T as findNodeParent, U as useCodeOptions, V as useControls, _ as _defineProperty, a as SHADCN_SCHEMAS, b as extractTableDataFromElement, c as DEFAULT_DARK_THEME, d as LANGUAGE_EXTENSIONS, f as LANGUAGE_ICONS, h as useMathRenderer, i as useSanitizers, j as saveImage, k as flow, l as DEFAULT_LIGHT_THEME, m as useMediumZoom, n as useTailwindV3Theme, o as ICONS, p as useMermaid, r as useShiki, s as DEFAULT_HARDEN_OPTIONS, t as useZoom, u as LANGUAGE_ALIAS, v as useKatex, w as findLastLeafNode, x as tableDataToCSV, y as escapeMarkdownTableCell, z as localesGlob } from "./composables-DWipZHuF.js";
|
|
3
|
+
import { t as node_list_default } from "./node-list--v2wbxOo.js";
|
|
4
|
+
import { n as treeFlatFilter, t as treeFilter } from "./dist-CYkm26BF.js";
|
|
4
5
|
import { computed, createElementBlock, createVNode, defineAsyncComponent, defineComponent, mergeProps, normalizeClass, onBeforeUnmount, openBlock, ref, toRefs, unref, watch } from "vue";
|
|
5
6
|
import { MarkdownItAsync } from "markdown-it-async";
|
|
6
7
|
import remend from "remend";
|
|
@@ -48,41 +49,43 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
48
49
|
//#endregion
|
|
49
50
|
//#region src/components/renderers/index.ts
|
|
50
51
|
const NODE_RENDERERS = {
|
|
51
|
-
blockquote: defineAsyncComponent(() => import("./blockquote-
|
|
52
|
-
code: defineAsyncComponent(() => import("./code-
|
|
53
|
-
delete: defineAsyncComponent(() => import("./delete-
|
|
54
|
-
emphasis: defineAsyncComponent(() => import("./emphasis-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
52
|
+
blockquote: defineAsyncComponent(() => import("./blockquote-CxA1dQZe.js")),
|
|
53
|
+
code: defineAsyncComponent(() => import("./code-CPG6B2Cw.js")),
|
|
54
|
+
delete: defineAsyncComponent(() => import("./delete-DQ21z5-F.js")),
|
|
55
|
+
emphasis: defineAsyncComponent(() => import("./emphasis-BjLkIDQB.js")),
|
|
56
|
+
footnoteDefinition: defineAsyncComponent(() => import("./footnote-definition-BmS8hchP.js")),
|
|
57
|
+
footnoteReference: defineAsyncComponent(() => import("./footnote-reference-Z2tITeCE.js")),
|
|
58
|
+
heading: defineAsyncComponent(() => import("./heading-BwBFJB_E.js")),
|
|
59
|
+
image: defineAsyncComponent(() => import("./image-IKvFWz2r.js")),
|
|
60
|
+
inlineCode: defineAsyncComponent(() => import("./inline-code-Bqu84Yyu.js")),
|
|
61
|
+
inlineMath: defineAsyncComponent(() => import("./inline-math-C2Ryxm-K.js")),
|
|
62
|
+
link: defineAsyncComponent(() => import("./link-BXl7E_6o.js")),
|
|
63
|
+
list: defineAsyncComponent(() => import("./list-DLcwTZns.js")),
|
|
64
|
+
listItem: defineAsyncComponent(() => import("./list-item-H0eYeIdB.js")),
|
|
65
|
+
math: defineAsyncComponent(() => import("./math-C-0d5PaJ.js")),
|
|
66
|
+
paragraph: defineAsyncComponent(() => import("./paragraph-DRPfp6DV.js")),
|
|
67
|
+
strong: defineAsyncComponent(() => import("./strong-D6V4fCRG.js")),
|
|
68
|
+
table: defineAsyncComponent(() => import("./table-DLUgGL5Q.js")),
|
|
69
|
+
text: defineAsyncComponent(() => import("./text-DoY1TIw3.js")),
|
|
70
|
+
thematicBreak: defineAsyncComponent(() => import("./thematic-break-DXDZ5dcO.js")),
|
|
71
|
+
yaml: defineAsyncComponent(() => import("./yaml-3cd5rdJj.js"))
|
|
69
72
|
};
|
|
70
73
|
|
|
71
74
|
//#endregion
|
|
72
75
|
//#region src/components/index.ts
|
|
73
76
|
const UI = {
|
|
74
|
-
Button: defineAsyncComponent(() => import("./button-
|
|
75
|
-
CodeBlock: defineAsyncComponent(() => import("./code-block
|
|
76
|
-
Dropdown: defineAsyncComponent(() => import("./dropdown-
|
|
77
|
-
ErrorComponent: defineAsyncComponent(() => import("./error-component-
|
|
78
|
-
Image: defineAsyncComponent(() => import("./image-
|
|
79
|
-
Modal: defineAsyncComponent(() => import("./modal-
|
|
80
|
-
NodeList: defineAsyncComponent(() => import("./node-list-
|
|
81
|
-
Segmented: defineAsyncComponent(() => import("./segmented-
|
|
82
|
-
Spin: defineAsyncComponent(() => import("./spin-
|
|
83
|
-
Table: defineAsyncComponent(() => import("./table-
|
|
84
|
-
Tooltip: defineAsyncComponent(() => import("./tooltip-
|
|
85
|
-
ZoomContainer: defineAsyncComponent(() => import("./zoom-container-
|
|
77
|
+
Button: defineAsyncComponent(() => import("./button-C6zIegam.js")),
|
|
78
|
+
CodeBlock: defineAsyncComponent(() => import("./code-block--1wFjtmu.js")),
|
|
79
|
+
Dropdown: defineAsyncComponent(() => import("./dropdown-CtWjJiAf.js")),
|
|
80
|
+
ErrorComponent: defineAsyncComponent(() => import("./error-component-DtcRn_0A.js")),
|
|
81
|
+
Image: defineAsyncComponent(() => import("./image-aT9xxnwh.js")),
|
|
82
|
+
Modal: defineAsyncComponent(() => import("./modal-BDgfKnFl.js")),
|
|
83
|
+
NodeList: defineAsyncComponent(() => import("./node-list-CHvX62Zh.js")),
|
|
84
|
+
Segmented: defineAsyncComponent(() => import("./segmented-DIVDGfR5.js")),
|
|
85
|
+
Spin: defineAsyncComponent(() => import("./spin-DWkKEP0G.js")),
|
|
86
|
+
Table: defineAsyncComponent(() => import("./table-B2mghd3l.js")),
|
|
87
|
+
Tooltip: defineAsyncComponent(() => import("./tooltip-DQ1-yPia.js")),
|
|
88
|
+
ZoomContainer: defineAsyncComponent(() => import("./zoom-container-D2DxS8V5.js"))
|
|
86
89
|
};
|
|
87
90
|
|
|
88
91
|
//#endregion
|
|
@@ -17498,6 +17501,17 @@ function math(options) {
|
|
|
17498
17501
|
};
|
|
17499
17502
|
}
|
|
17500
17503
|
|
|
17504
|
+
//#endregion
|
|
17505
|
+
//#region src/postprocess/footnote.ts
|
|
17506
|
+
function postFixFootnote(data) {
|
|
17507
|
+
const footnoteDefinitions = treeFlatFilter(data.children, (node$1) => node$1.type === "footnoteDefinition");
|
|
17508
|
+
const filtered = treeFilter(data.children, (node$1) => node$1.type !== "footnoteDefinition");
|
|
17509
|
+
return {
|
|
17510
|
+
...data,
|
|
17511
|
+
children: [...filtered, ...footnoteDefinitions]
|
|
17512
|
+
};
|
|
17513
|
+
}
|
|
17514
|
+
|
|
17501
17515
|
//#endregion
|
|
17502
17516
|
//#region src/postprocess/text.ts
|
|
17503
17517
|
function postFixText(data) {
|
|
@@ -17512,6 +17526,9 @@ function postFixText(data) {
|
|
|
17512
17526
|
|
|
17513
17527
|
//#endregion
|
|
17514
17528
|
//#region src/postprocess/index.ts
|
|
17529
|
+
function postNormalize(data) {
|
|
17530
|
+
return flow([postFixFootnote])(data);
|
|
17531
|
+
}
|
|
17515
17532
|
function postprocess(data) {
|
|
17516
17533
|
return flow([postFixText])(data);
|
|
17517
17534
|
}
|
|
@@ -17531,8 +17548,15 @@ const singleUnderscorePattern = /_/g;
|
|
|
17531
17548
|
const doubleTildePattern = /~~/g;
|
|
17532
17549
|
const doubleDollarPattern = /\$\$/g;
|
|
17533
17550
|
const incompleteBracketPattern = /!?\[[^\]]*$/;
|
|
17534
|
-
const incompleteLinkTextPattern = /!?\[[^\]]
|
|
17535
|
-
const incompleteUrlPattern = /!?\[[^\]]
|
|
17551
|
+
const incompleteLinkTextPattern = /!?\[[^\]]*\]\s*$/;
|
|
17552
|
+
const incompleteUrlPattern = /!?\[[^\]]*\]\([^)]*$/;
|
|
17553
|
+
const incompleteFootnoteRefPattern = /\[\^[^\]]*$/;
|
|
17554
|
+
const trailingStandaloneBracketPattern = /(\[)\s*$/;
|
|
17555
|
+
const footnoteDefPattern = /\[\^[^\]]+\]:/g;
|
|
17556
|
+
const footnoteRefPattern = /\[\^[^\]]+\]/g;
|
|
17557
|
+
const footnoteDefLinePattern = /^\s*\[\^[^\]]+\]:/;
|
|
17558
|
+
const footnoteDefLabelPattern = /\[\^([^\]]+)\]:/;
|
|
17559
|
+
const footnoteRefLabelPattern = /\[\^([^\]]+)\]/;
|
|
17536
17560
|
const tableRowPattern = /^\|.*\|.*\|/;
|
|
17537
17561
|
const separatorPattern = /^\|[\s:]*-{3,}[\s:]*(?:\|[\s:]*-{3,}[\s:]*)+\|?$/;
|
|
17538
17562
|
const standaloneDashPattern = /^\s*-$/;
|
|
@@ -17761,6 +17785,186 @@ function fixEmphasis(content$2) {
|
|
|
17761
17785
|
return content$2;
|
|
17762
17786
|
}
|
|
17763
17787
|
|
|
17788
|
+
//#endregion
|
|
17789
|
+
//#region src/preprocess/footnote.ts
|
|
17790
|
+
/**
|
|
17791
|
+
* Remove incomplete footnote references ([^...]) in streaming markdown
|
|
17792
|
+
*
|
|
17793
|
+
* Processes the entire content to remove footnote references that don't have
|
|
17794
|
+
* corresponding definitions. This is necessary because footnote references can
|
|
17795
|
+
* appear anywhere in the document, while definitions typically appear at the end.
|
|
17796
|
+
*
|
|
17797
|
+
* A footnote reference is considered incomplete if there's no corresponding
|
|
17798
|
+
* footnote definition ([^...]:) in the entire content.
|
|
17799
|
+
*
|
|
17800
|
+
* @param content - Markdown content (potentially incomplete in stream mode)
|
|
17801
|
+
* @returns Content with incomplete footnote references removed
|
|
17802
|
+
*
|
|
17803
|
+
* @example
|
|
17804
|
+
* fixFootnote('Text [^1] and [^2]')
|
|
17805
|
+
* // Returns: 'Text [^1] and [^2]' (if [^1]: and [^2]: exist)
|
|
17806
|
+
* // Returns: 'Text and ' (if definitions don't exist)
|
|
17807
|
+
*
|
|
17808
|
+
* @example
|
|
17809
|
+
* fixFootnote('Para1 [^1]\n\nPara2 [^2]')
|
|
17810
|
+
* // Removes [^1] and [^2] if their definitions don't exist
|
|
17811
|
+
*
|
|
17812
|
+
* @example
|
|
17813
|
+
* fixFootnote('```\n[^1]\n```\n\nText [^1]')
|
|
17814
|
+
* // Code block content is ignored, only processes Text [^1]
|
|
17815
|
+
*/
|
|
17816
|
+
function fixFootnote(content$2) {
|
|
17817
|
+
const codeBlockMatches = content$2.match(tripleBacktickPattern);
|
|
17818
|
+
if ((codeBlockMatches ? codeBlockMatches.length : 0) % 2 === 1) return content$2;
|
|
17819
|
+
const defMatches = content$2.replace(codeBlockPattern, "").match(footnoteDefPattern);
|
|
17820
|
+
const definedLabels = /* @__PURE__ */ new Set();
|
|
17821
|
+
if (defMatches) for (const def of defMatches) {
|
|
17822
|
+
const labelMatch = def.match(footnoteDefLabelPattern);
|
|
17823
|
+
if (labelMatch) definedLabels.add(labelMatch[1]);
|
|
17824
|
+
}
|
|
17825
|
+
const isFootnoteDefLine = (line) => footnoteDefLinePattern.test(line);
|
|
17826
|
+
const lines = content$2.split("\n");
|
|
17827
|
+
const codeBlockRanges = [];
|
|
17828
|
+
let searchStart = 0;
|
|
17829
|
+
while (true) {
|
|
17830
|
+
const codeBlockStart = content$2.indexOf("```", searchStart);
|
|
17831
|
+
if (codeBlockStart === -1) break;
|
|
17832
|
+
const codeBlockEnd = content$2.indexOf("```", codeBlockStart + 3);
|
|
17833
|
+
if (codeBlockEnd === -1) break;
|
|
17834
|
+
codeBlockRanges.push({
|
|
17835
|
+
start: codeBlockStart,
|
|
17836
|
+
end: codeBlockEnd + 3
|
|
17837
|
+
});
|
|
17838
|
+
searchStart = codeBlockEnd + 3;
|
|
17839
|
+
}
|
|
17840
|
+
const inlineCodeRanges = [];
|
|
17841
|
+
const backtickPositions = [];
|
|
17842
|
+
for (let i = 0; i < content$2.length; i++) {
|
|
17843
|
+
if (content$2.substring(i).startsWith("```")) {
|
|
17844
|
+
const codeBlockEnd = content$2.indexOf("```", i + 3);
|
|
17845
|
+
if (codeBlockEnd !== -1) {
|
|
17846
|
+
i = codeBlockEnd + 2;
|
|
17847
|
+
continue;
|
|
17848
|
+
}
|
|
17849
|
+
}
|
|
17850
|
+
if (content$2[i] === "`") {
|
|
17851
|
+
const before = content$2[i - 1] || "";
|
|
17852
|
+
const before2 = content$2[i - 2] || "";
|
|
17853
|
+
const after = content$2[i + 1] || "";
|
|
17854
|
+
const after2 = content$2[i + 2] || "";
|
|
17855
|
+
if (!(before === "`" && before2 === "`" || before === "`" && after === "`" || after === "`" && after2 === "`")) backtickPositions.push(i);
|
|
17856
|
+
}
|
|
17857
|
+
}
|
|
17858
|
+
for (let i = 0; i < backtickPositions.length; i += 2) if (i + 1 < backtickPositions.length) {
|
|
17859
|
+
const start = backtickPositions[i];
|
|
17860
|
+
const end = backtickPositions[i + 1] + 1;
|
|
17861
|
+
inlineCodeRanges.push({
|
|
17862
|
+
start,
|
|
17863
|
+
end
|
|
17864
|
+
});
|
|
17865
|
+
}
|
|
17866
|
+
const footnoteDefRanges = [];
|
|
17867
|
+
let lineOffset = 0;
|
|
17868
|
+
for (let i = 0; i < lines.length; i++) {
|
|
17869
|
+
const line = lines[i];
|
|
17870
|
+
if (isFootnoteDefLine(line)) {
|
|
17871
|
+
const lineEnd = lineOffset + line.length;
|
|
17872
|
+
footnoteDefRanges.push({
|
|
17873
|
+
start: lineOffset,
|
|
17874
|
+
end: lineEnd
|
|
17875
|
+
});
|
|
17876
|
+
}
|
|
17877
|
+
lineOffset += line.length + 1;
|
|
17878
|
+
}
|
|
17879
|
+
let lastParagraphStartIndex = 0;
|
|
17880
|
+
for (let i = lines.length - 1; i >= 0; i--) if (lines[i].trim() === "") {
|
|
17881
|
+
lastParagraphStartIndex = i + 1;
|
|
17882
|
+
break;
|
|
17883
|
+
}
|
|
17884
|
+
const lastParagraph = lines.slice(lastParagraphStartIndex).join("\n");
|
|
17885
|
+
let result = content$2;
|
|
17886
|
+
if (incompleteFootnoteRefPattern.test(lastParagraph)) {
|
|
17887
|
+
const incompleteRefPos = lastParagraph.lastIndexOf("[^");
|
|
17888
|
+
if (incompleteRefPos !== -1) {
|
|
17889
|
+
const absolutePos = lastParagraphStartIndex > 0 ? lines.slice(0, lastParagraphStartIndex).join("\n").length + 1 + incompleteRefPos : incompleteRefPos;
|
|
17890
|
+
const isInCodeBlock = codeBlockRanges.some((range) => absolutePos >= range.start && absolutePos < range.end);
|
|
17891
|
+
const isInInlineCode = inlineCodeRanges.some((range) => absolutePos >= range.start && absolutePos < range.end);
|
|
17892
|
+
if (!isInCodeBlock && !isInInlineCode) {
|
|
17893
|
+
const lineEnd = lastParagraph.indexOf("\n", incompleteRefPos);
|
|
17894
|
+
const refEnd = lineEnd !== -1 ? lineEnd : lastParagraph.length;
|
|
17895
|
+
const beforeLastParagraph = lines.slice(0, lastParagraphStartIndex).join("\n");
|
|
17896
|
+
const paragraphOffset = beforeLastParagraph.length > 0 ? beforeLastParagraph.length + 1 : 0;
|
|
17897
|
+
const absoluteStart = paragraphOffset + incompleteRefPos;
|
|
17898
|
+
const absoluteEnd = paragraphOffset + refEnd;
|
|
17899
|
+
result = result.substring(0, absoluteStart) + result.substring(absoluteEnd);
|
|
17900
|
+
content$2 = result;
|
|
17901
|
+
codeBlockRanges.length = 0;
|
|
17902
|
+
searchStart = 0;
|
|
17903
|
+
while (true) {
|
|
17904
|
+
const codeBlockStart = content$2.indexOf("```", searchStart);
|
|
17905
|
+
if (codeBlockStart === -1) break;
|
|
17906
|
+
const codeBlockEnd = content$2.indexOf("```", codeBlockStart + 3);
|
|
17907
|
+
if (codeBlockEnd === -1) break;
|
|
17908
|
+
codeBlockRanges.push({
|
|
17909
|
+
start: codeBlockStart,
|
|
17910
|
+
end: codeBlockEnd + 3
|
|
17911
|
+
});
|
|
17912
|
+
searchStart = codeBlockEnd + 3;
|
|
17913
|
+
}
|
|
17914
|
+
inlineCodeRanges.length = 0;
|
|
17915
|
+
backtickPositions.length = 0;
|
|
17916
|
+
for (let i = 0; i < content$2.length; i++) {
|
|
17917
|
+
if (content$2.substring(i).startsWith("```")) {
|
|
17918
|
+
const codeBlockEnd = content$2.indexOf("```", i + 3);
|
|
17919
|
+
if (codeBlockEnd !== -1) {
|
|
17920
|
+
i = codeBlockEnd + 2;
|
|
17921
|
+
continue;
|
|
17922
|
+
}
|
|
17923
|
+
}
|
|
17924
|
+
if (content$2[i] === "`") {
|
|
17925
|
+
const before = content$2[i - 1] || "";
|
|
17926
|
+
const before2 = content$2[i - 2] || "";
|
|
17927
|
+
const after = content$2[i + 1] || "";
|
|
17928
|
+
const after2 = content$2[i + 2] || "";
|
|
17929
|
+
if (!(before === "`" && before2 === "`" || before === "`" && after === "`" || after === "`" && after2 === "`")) backtickPositions.push(i);
|
|
17930
|
+
}
|
|
17931
|
+
}
|
|
17932
|
+
for (let i = 0; i < backtickPositions.length; i += 2) if (i + 1 < backtickPositions.length) inlineCodeRanges.push({
|
|
17933
|
+
start: backtickPositions[i],
|
|
17934
|
+
end: backtickPositions[i + 1] + 1
|
|
17935
|
+
});
|
|
17936
|
+
}
|
|
17937
|
+
}
|
|
17938
|
+
}
|
|
17939
|
+
const refPositions = [];
|
|
17940
|
+
let refMatch = footnoteRefPattern.exec(content$2);
|
|
17941
|
+
while (refMatch !== null) {
|
|
17942
|
+
const absolutePos = refMatch.index;
|
|
17943
|
+
const refText = refMatch[0];
|
|
17944
|
+
const isInCodeBlock = codeBlockRanges.some((range) => absolutePos >= range.start && absolutePos < range.end);
|
|
17945
|
+
const isInInlineCode = inlineCodeRanges.some((range) => absolutePos >= range.start && absolutePos < range.end);
|
|
17946
|
+
const isInFootnoteDef = footnoteDefRanges.some((range) => absolutePos >= range.start && absolutePos < range.end);
|
|
17947
|
+
if (!isInCodeBlock && !isInInlineCode && !isInFootnoteDef) {
|
|
17948
|
+
const labelMatch = refText.match(footnoteRefLabelPattern);
|
|
17949
|
+
if (labelMatch) {
|
|
17950
|
+
const label = labelMatch[1];
|
|
17951
|
+
refPositions.push({
|
|
17952
|
+
start: absolutePos,
|
|
17953
|
+
end: absolutePos + refText.length,
|
|
17954
|
+
label
|
|
17955
|
+
});
|
|
17956
|
+
}
|
|
17957
|
+
}
|
|
17958
|
+
refMatch = footnoteRefPattern.exec(content$2);
|
|
17959
|
+
}
|
|
17960
|
+
if (refPositions.length === 0) return content$2;
|
|
17961
|
+
for (let i = refPositions.length - 1; i >= 0; i--) {
|
|
17962
|
+
const ref$1 = refPositions[i];
|
|
17963
|
+
if (!definedLabels.has(ref$1.label)) result = result.substring(0, ref$1.start) + result.substring(ref$1.end);
|
|
17964
|
+
}
|
|
17965
|
+
return result;
|
|
17966
|
+
}
|
|
17967
|
+
|
|
17764
17968
|
//#endregion
|
|
17765
17969
|
//#region src/preprocess/inline-math.ts
|
|
17766
17970
|
/**
|
|
@@ -17903,6 +18107,16 @@ function findLastDollarPairNotInCodeBlock(text$4) {
|
|
|
17903
18107
|
* @example
|
|
17904
18108
|
* fixLink('
|
|
17905
18109
|
* // Returns: ''
|
|
18110
|
+
*
|
|
18111
|
+
* @example
|
|
18112
|
+
* fixLink('Text [')
|
|
18113
|
+
* // Returns: 'Text '
|
|
18114
|
+
* // Removes trailing standalone [ without content
|
|
18115
|
+
*
|
|
18116
|
+
* @example
|
|
18117
|
+
* fixLink('Text [\n')
|
|
18118
|
+
* // Returns: 'Text '
|
|
18119
|
+
* // Removes trailing standalone bracket and trailing newline
|
|
17906
18120
|
*/
|
|
17907
18121
|
function fixLink(content$2) {
|
|
17908
18122
|
const lines = content$2.split("\n");
|
|
@@ -17912,6 +18126,24 @@ function fixLink(content$2) {
|
|
|
17912
18126
|
break;
|
|
17913
18127
|
}
|
|
17914
18128
|
const lastParagraph = lines.slice(paragraphStartIndex).join("\n");
|
|
18129
|
+
let lastNonEmptyLineIndex = lines.length - 1;
|
|
18130
|
+
while (lastNonEmptyLineIndex >= 0 && lines[lastNonEmptyLineIndex].trim() === "") lastNonEmptyLineIndex--;
|
|
18131
|
+
if (lastNonEmptyLineIndex >= 0) {
|
|
18132
|
+
const lastLine = lines[lastNonEmptyLineIndex];
|
|
18133
|
+
if (trailingStandaloneBracketPattern.test(lastLine)) {
|
|
18134
|
+
const bracketMatch = lastLine.match(trailingStandaloneBracketPattern);
|
|
18135
|
+
if (bracketMatch) {
|
|
18136
|
+
const bracketPos = lastLine.lastIndexOf(bracketMatch[1]);
|
|
18137
|
+
if (lastLine.substring(bracketPos + bracketMatch[1].length).trim().length === 0) {
|
|
18138
|
+
const newLine = lastLine.substring(0, bracketPos);
|
|
18139
|
+
const newLines = [...lines];
|
|
18140
|
+
newLines[lastNonEmptyLineIndex] = newLine;
|
|
18141
|
+
if (lastNonEmptyLineIndex + 1 < newLines.length && newLines[lastNonEmptyLineIndex + 1].trim() === "") newLines.splice(lastNonEmptyLineIndex + 1, 1);
|
|
18142
|
+
return newLines.join("\n");
|
|
18143
|
+
}
|
|
18144
|
+
}
|
|
18145
|
+
}
|
|
18146
|
+
}
|
|
17915
18147
|
if (incompleteBracketPattern.test(lastParagraph)) return `${content$2}]()`;
|
|
17916
18148
|
if (incompleteLinkTextPattern.test(lastParagraph)) return `${content$2}()`;
|
|
17917
18149
|
if (incompleteUrlPattern.test(lastParagraph)) return `${content$2})`;
|
|
@@ -18140,6 +18372,7 @@ function normalize(content$2) {
|
|
|
18140
18372
|
}
|
|
18141
18373
|
function preprocess(content$2) {
|
|
18142
18374
|
return flow([
|
|
18375
|
+
fixFootnote,
|
|
18143
18376
|
fixStrong,
|
|
18144
18377
|
fixEmphasis,
|
|
18145
18378
|
fixDelete,
|
|
@@ -18203,8 +18436,9 @@ var MarkdownParser = class {
|
|
|
18203
18436
|
...((_this$options$mdastOp2 = this.options.mdastOptions) === null || _this$options$mdastOp2 === void 0 ? void 0 : _this$options$mdastOp2.from) ?? []
|
|
18204
18437
|
]
|
|
18205
18438
|
});
|
|
18439
|
+
const treeData = (this.options.postprocess ?? postNormalize)(data);
|
|
18206
18440
|
const post = this.options.postprocess ?? postprocess;
|
|
18207
|
-
const resolved = this.mode === "streaming" ? post(
|
|
18441
|
+
const resolved = this.mode === "streaming" ? post(treeData) : treeData;
|
|
18208
18442
|
if (!loading || this.mode === "static") return resolved;
|
|
18209
18443
|
const node$1 = findLastLeafNode(resolved.children);
|
|
18210
18444
|
if (node$1) node$1.loading = true;
|
|
@@ -18267,6 +18501,11 @@ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
18267
18501
|
required: false,
|
|
18268
18502
|
default: "en-US"
|
|
18269
18503
|
},
|
|
18504
|
+
enableAnimate: {
|
|
18505
|
+
type: Boolean,
|
|
18506
|
+
required: false,
|
|
18507
|
+
default: void 0
|
|
18508
|
+
},
|
|
18270
18509
|
controls: {
|
|
18271
18510
|
type: [Boolean, Object],
|
|
18272
18511
|
required: false,
|
|
@@ -18314,6 +18553,10 @@ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
18314
18553
|
type: Function,
|
|
18315
18554
|
required: false
|
|
18316
18555
|
},
|
|
18556
|
+
postNormalize: {
|
|
18557
|
+
type: Function,
|
|
18558
|
+
required: false
|
|
18559
|
+
},
|
|
18317
18560
|
preprocess: {
|
|
18318
18561
|
type: Function,
|
|
18319
18562
|
required: false
|
|
@@ -18331,7 +18574,7 @@ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
18331
18574
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
18332
18575
|
const props = __props;
|
|
18333
18576
|
const emits = __emit;
|
|
18334
|
-
const { shikiOptions, mermaidOptions, isDark } = toRefs(props);
|
|
18577
|
+
const { mode, shikiOptions, mermaidOptions, isDark, enableAnimate } = toRefs(props);
|
|
18335
18578
|
const containerRef = ref();
|
|
18336
18579
|
const { provideContext } = useContext();
|
|
18337
18580
|
const markdownParser = new MarkdownParser({
|
|
@@ -18368,8 +18611,10 @@ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
18368
18611
|
watch(() => props.mode, () => markdownParser.updateMode(props.mode));
|
|
18369
18612
|
watch(() => props.locale, () => loadLocaleMessages(props.locale));
|
|
18370
18613
|
provideContext({
|
|
18614
|
+
mode,
|
|
18371
18615
|
icons,
|
|
18372
18616
|
isDark,
|
|
18617
|
+
enableAnimate,
|
|
18373
18618
|
parsedNodes,
|
|
18374
18619
|
getContainer,
|
|
18375
18620
|
onCopied: (content$2) => {
|
|
@@ -18409,4 +18654,4 @@ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
18409
18654
|
var src_default = index_vue_vue_type_script_setup_true_lang_default;
|
|
18410
18655
|
|
|
18411
18656
|
//#endregion
|
|
18412
|
-
export { CODE_PREVIEWERS, DEFAULT_DARK_THEME, DEFAULT_HARDEN_OPTIONS, DEFAULT_LIGHT_THEME, ICONS, LANGUAGE_ALIAS, LANGUAGE_EXTENSIONS, LANGUAGE_ICONS, src_default as Markdown, MarkdownParser, NODE_RENDERERS, SHADCN_SCHEMAS, SUPPORT_LANGUAGES, UI, codeBlockPattern, crlfPattern, currentLocale, doubleAsteriskPattern, doubleDollarPattern, doubleTildePattern, doubleUnderscorePattern, escapeMarkdownTableCell, extractTableDataFromElement, findLastLeafNode, findNodeParent, fixCode, fixDelete, fixEmphasis, fixLink, fixStrong, fixTable, fixTaskList, flow, hasKatex, hasMermaid, hasShiki, incompleteBracketPattern, incompleteLinkTextPattern, incompleteUrlPattern, loadLocaleMessages, localeMessages, localesGlob, normalize, postFixText, postprocess, preprocess, preprocessLaTeX, proprocessContent, quoteStandaloneDashPattern, quoteTaskListPattern, remend, save, saveImage, separatorPattern, singleAsteriskPattern, singleBacktickPattern, singleUnderscorePattern, standaloneDashPattern, svgToPngBlob, tableDataToCSV, tableDataToMarkdown, tableDataToTSV, tableRowPattern, taskListPattern, trailingBackticksPattern, trailingWhitespacePattern, transformUrl, tripleBacktickPattern, useCodeOptions, useContext, useControls, useFloatingElement,
|
|
18657
|
+
export { CODE_PREVIEWERS, DEFAULT_DARK_THEME, DEFAULT_HARDEN_OPTIONS, DEFAULT_LIGHT_THEME, ICONS, LANGUAGE_ALIAS, LANGUAGE_EXTENSIONS, LANGUAGE_ICONS, src_default as Markdown, MarkdownParser, NODE_RENDERERS, SHADCN_SCHEMAS, SUPPORT_LANGUAGES, UI, codeBlockPattern, crlfPattern, currentLocale, doubleAsteriskPattern, doubleDollarPattern, doubleTildePattern, doubleUnderscorePattern, escapeMarkdownTableCell, extractTableDataFromElement, findLastLeafNode, findNodeParent, fixCode, fixDelete, fixEmphasis, fixFootnote, fixLink, fixStrong, fixTable, fixTaskList, flow, footnoteDefLabelPattern, footnoteDefLinePattern, footnoteDefPattern, footnoteRefLabelPattern, footnoteRefPattern, hasKatex, hasMermaid, hasShiki, incompleteBracketPattern, incompleteFootnoteRefPattern, incompleteLinkTextPattern, incompleteUrlPattern, loadLocaleMessages, localeMessages, localesGlob, normalize, postFixFootnote, postFixText, postNormalize, postprocess, preprocess, preprocessLaTeX, proprocessContent, quoteStandaloneDashPattern, quoteTaskListPattern, remend, save, saveImage, separatorPattern, singleAsteriskPattern, singleBacktickPattern, singleUnderscorePattern, standaloneDashPattern, svgToPngBlob, tableDataToCSV, tableDataToMarkdown, tableDataToTSV, tableRowPattern, taskListPattern, trailingBackticksPattern, trailingStandaloneBracketPattern, trailingWhitespacePattern, transformUrl, tripleBacktickPattern, useCodeOptions, useContext, useControls, useFloatingElement, useI18n, useKatex, useMathRenderer, useMediumZoom, useMermaid, useSanitizers, useShiki, useTailwindV3Theme, useZoom };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as error_component_default } from "./error-component-
|
|
1
|
+
import { h as useMathRenderer } from "./composables-DWipZHuF.js";
|
|
2
|
+
import { t as error_component_default } from "./error-component-DSOVrE5J.js";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, mergeProps, openBlock, resolveDynamicComponent, toRefs, unref } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/renderers/inline-math.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -19,8 +19,8 @@ var inline_math_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ de
|
|
|
19
19
|
type: Object,
|
|
20
20
|
required: true
|
|
21
21
|
},
|
|
22
|
-
|
|
23
|
-
type:
|
|
22
|
+
nodeKey: {
|
|
23
|
+
type: String,
|
|
24
24
|
required: true
|
|
25
25
|
},
|
|
26
26
|
controls: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as node_list_default } from "./node-list
|
|
3
|
-
import { t as error_component_default } from "./error-component-
|
|
1
|
+
import { i as useSanitizers } from "./composables-DWipZHuF.js";
|
|
2
|
+
import { t as node_list_default } from "./node-list--v2wbxOo.js";
|
|
3
|
+
import { t as error_component_default } from "./error-component-DSOVrE5J.js";
|
|
4
4
|
import { computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, mergeProps, openBlock, resolveDynamicComponent, toRefs, unref, withCtx } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/renderers/link.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -20,8 +20,8 @@ var link_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCom
|
|
|
20
20
|
type: Object,
|
|
21
21
|
required: true
|
|
22
22
|
},
|
|
23
|
-
|
|
24
|
-
type:
|
|
23
|
+
nodeKey: {
|
|
24
|
+
type: String,
|
|
25
25
|
required: true
|
|
26
26
|
},
|
|
27
27
|
controls: {
|
|
@@ -66,7 +66,7 @@ var link_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCom
|
|
|
66
66
|
const { hardenOptions } = toRefs(props);
|
|
67
67
|
const url = computed(() => props.node.url);
|
|
68
68
|
const loading = computed(() => props.node.loading || props.markdownParser.hasLoadingNode(props.node.children) || !url.value);
|
|
69
|
-
const { transformedUrl, isHardenUrl } =
|
|
69
|
+
const { transformedUrl, isHardenUrl } = useSanitizers({
|
|
70
70
|
url,
|
|
71
71
|
hardenOptions,
|
|
72
72
|
loading
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./composables-DWipZHuF.js";
|
|
2
|
+
import { t as node_list_default } from "./node-list--v2wbxOo.js";
|
|
2
3
|
import { computed, createBlock, createVNode, defineComponent, mergeProps, openBlock, resolveDynamicComponent, withCtx } from "vue";
|
|
3
4
|
|
|
4
5
|
//#region src/components/renderers/list.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -17,8 +18,8 @@ var list_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCom
|
|
|
17
18
|
type: Object,
|
|
18
19
|
required: true
|
|
19
20
|
},
|
|
20
|
-
|
|
21
|
-
type:
|
|
21
|
+
nodeKey: {
|
|
22
|
+
type: String,
|
|
22
23
|
required: true
|
|
23
24
|
},
|
|
24
25
|
controls: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./composables-DWipZHuF.js";
|
|
2
|
+
import { t as node_list_default } from "./node-list--v2wbxOo.js";
|
|
2
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, openBlock } from "vue";
|
|
3
4
|
|
|
4
5
|
//#region src/components/renderers/list-item.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -23,8 +24,8 @@ var list_item_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defi
|
|
|
23
24
|
type: Object,
|
|
24
25
|
required: true
|
|
25
26
|
},
|
|
26
|
-
|
|
27
|
-
type:
|
|
27
|
+
nodeKey: {
|
|
28
|
+
type: String,
|
|
28
29
|
required: true
|
|
29
30
|
},
|
|
30
31
|
controls: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as error_component_default } from "./error-component-
|
|
1
|
+
import { h as useMathRenderer } from "./composables-DWipZHuF.js";
|
|
2
|
+
import { t as error_component_default } from "./error-component-DSOVrE5J.js";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, mergeProps, openBlock, resolveDynamicComponent, toRefs, unref } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/renderers/math.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -19,8 +19,8 @@ var math_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCom
|
|
|
19
19
|
type: Object,
|
|
20
20
|
required: true
|
|
21
21
|
},
|
|
22
|
-
|
|
23
|
-
type:
|
|
22
|
+
nodeKey: {
|
|
23
|
+
type: String,
|
|
24
24
|
required: true
|
|
25
25
|
},
|
|
26
26
|
controls: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { V as useControls,
|
|
2
|
-
import "./tooltip-
|
|
3
|
-
import "./button-
|
|
4
|
-
import { t as error_component_default } from "./error-component-
|
|
5
|
-
import { t as zoom_container_default } from "./zoom-container-
|
|
6
|
-
import { t as spin_default } from "./spin
|
|
7
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeStyle, openBlock, ref, resolveDynamicComponent, toRefs, watch, withCtx } from "vue";
|
|
1
|
+
import { V as useControls, g as throttle, p as useMermaid } from "./composables-DWipZHuF.js";
|
|
2
|
+
import "./tooltip-Bdt9-aQx.js";
|
|
3
|
+
import "./button-B2ebQt7R.js";
|
|
4
|
+
import { t as error_component_default } from "./error-component-DSOVrE5J.js";
|
|
5
|
+
import { t as zoom_container_default } from "./zoom-container-f44XxzOI.js";
|
|
6
|
+
import { t as spin_default } from "./spin-D4Oi_m7j.js";
|
|
7
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeStyle, openBlock, ref, resolveDynamicComponent, toRefs, watch, withCtx } from "vue";
|
|
8
8
|
import { useResizeObserver } from "@vueuse/core";
|
|
9
9
|
|
|
10
10
|
//#region src/components/previewers/mermaid.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -24,8 +24,8 @@ var mermaid_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
24
24
|
type: Object,
|
|
25
25
|
required: true
|
|
26
26
|
},
|
|
27
|
-
|
|
28
|
-
type:
|
|
27
|
+
nodeKey: {
|
|
28
|
+
type: String,
|
|
29
29
|
required: true
|
|
30
30
|
},
|
|
31
31
|
controls: {
|
|
@@ -156,7 +156,9 @@ var mermaid_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
156
156
|
const data = await renderMermaid(code.value);
|
|
157
157
|
if (data) {
|
|
158
158
|
svg.value = data;
|
|
159
|
-
|
|
159
|
+
nextTick(() => {
|
|
160
|
+
updateHeight();
|
|
161
|
+
});
|
|
160
162
|
}
|
|
161
163
|
renderFlag.value = true;
|
|
162
164
|
}), { immediate: true });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as useContext } from "./composables-
|
|
1
|
+
import { H as useContext } from "./composables-DWipZHuF.js";
|
|
2
2
|
import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, normalizeStyle, openBlock, renderSlot, toDisplayString, unref, useModel, useSlots, withCtx } from "vue";
|
|
3
3
|
import { createReusableTemplate, useEventListener } from "@vueuse/core";
|
|
4
4
|
|
|
@@ -48,7 +48,7 @@ var modal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
48
48
|
const open = useModel(__props, "open");
|
|
49
49
|
const [DefineTemplate, ReuseTemplate] = createReusableTemplate();
|
|
50
50
|
const { getContainer } = useContext();
|
|
51
|
-
const container = getContainer() || "body";
|
|
51
|
+
const container = computed(() => getContainer() || "body");
|
|
52
52
|
const modalStyle = computed(() => ({
|
|
53
53
|
...props.modalStyle,
|
|
54
54
|
zIndex: props.zIndex
|
|
@@ -74,7 +74,7 @@ var modal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
74
74
|
renderSlot(_ctx.$slots, "actions")
|
|
75
75
|
], 4)) : createCommentVNode("v-if", true), createElementVNode("main", _hoisted_1, [renderSlot(_ctx.$slots, "default")])], 4)) : createCommentVNode("v-if", true)]),
|
|
76
76
|
_: 3
|
|
77
|
-
}), (openBlock(), createBlock(Teleport, { to:
|
|
77
|
+
}), (openBlock(), createBlock(Teleport, { to: container.value }, [__props.transition ? (openBlock(), createBlock(Transition, {
|
|
78
78
|
key: 0,
|
|
79
79
|
name: __props.transition,
|
|
80
80
|
appear: ""
|