vue-stream-markdown 0.1.4 → 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/README.md +3 -1
- package/dist/arrow-left-DiHYz8df.js +25 -0
- package/dist/{blockquote-DdEg2gww.js → blockquote-CxA1dQZe.js} +4 -11
- package/dist/{button-jFTF378X.js → button-B2ebQt7R.js} +2 -3
- package/dist/button-C6zIegam.js +5 -0
- package/dist/{code-BxWvKFxG.js → code-CPG6B2Cw.js} +12 -20
- package/dist/code-block--1wFjtmu.js +9 -0
- package/dist/{code-block-uZcUI59D.js → code-block-I_Yd1Flg.js} +62 -67
- package/dist/{composables-Cx0nvyHl.js → composables-DWipZHuF.js} +1119 -840
- package/dist/corner-down-left-jxlwq3ox.js +24 -0
- package/dist/{delete-BdWzKJCy.js → delete-DQ21z5-F.js} +4 -11
- package/dist/dist-CYkm26BF.js +119 -0
- package/dist/dropdown-CtWjJiAf.js +5 -0
- package/dist/{emphasis-CTuGt1Ok.js → emphasis-BjLkIDQB.js} +4 -11
- package/dist/{en-US-Bfc50l3I.js → en-US-K7SXR3gy.js} +8 -1
- package/dist/{error-component-Bhl770lu.js → error-component-DSOVrE5J.js} +1 -1
- package/dist/error-component-DtcRn_0A.js +4 -0
- package/dist/flip-horizontal-CEf7aAdM.js +25 -0
- package/dist/footnote-definition-BmS8hchP.js +103 -0
- package/dist/footnote-reference-Z2tITeCE.js +86 -0
- package/dist/{heading-2vpQQtTH.js → heading-BwBFJB_E.js} +4 -11
- package/dist/{html-DL0PcUXX.js → html-DFU0myJP.js} +2 -10
- package/dist/image-BLlap3ce.js +242 -0
- package/dist/{image-BDtPwitR.js → image-IKvFWz2r.js} +43 -78
- package/dist/image-aT9xxnwh.js +8 -0
- package/dist/index.css +69 -64
- package/dist/index.d.ts +192 -82
- package/dist/index.js +291 -65
- package/dist/{inline-code-CBoqhfz7.js → inline-code-Bqu84Yyu.js} +2 -10
- package/dist/{inline-math-CAqboT7h.js → inline-math-C2Ryxm-K.js} +4 -12
- package/dist/{link-C8BSlPhZ.js → link-BXl7E_6o.js} +6 -14
- package/dist/{list-BCiFKGaz.js → list-DLcwTZns.js} +4 -11
- package/dist/{list-item-p-OLUR_9.js → list-item-H0eYeIdB.js} +4 -11
- package/dist/{math-CT1TB2pK.js → math-C-0d5PaJ.js} +4 -12
- package/dist/{mermaid-CYrA8rCl.js → mermaid-0x6C2MY5.js} +12 -18
- package/dist/modal-BDgfKnFl.js +4 -0
- package/dist/modal-CEqU9Ubu.js +94 -0
- package/dist/{node-list-CGr_EVtn.js → node-list--v2wbxOo.js} +19 -26
- package/dist/node-list-CHvX62Zh.js +4 -0
- package/dist/{paragraph-DYjqr_Sa.js → paragraph-DRPfp6DV.js} +4 -11
- package/dist/previewers-DsN-cTwd.js +10 -0
- package/dist/rotate-ccw-square-5sO65BY9.js +24 -0
- package/dist/segmented-DIVDGfR5.js +6 -0
- package/dist/{segmented-DBW9ignu.js → segmented-Drf8EBQD.js} +1 -1
- package/dist/{shiki-bQYWLdW3.js → shiki-CkwRD3TS.js} +6 -14
- package/dist/spin-DWkKEP0G.js +3 -0
- package/dist/{strong-CvOjLZiq.js → strong-D6V4fCRG.js} +4 -11
- package/dist/table-B2mghd3l.js +3 -0
- package/dist/{table-l_3z210v.js → table-DLUgGL5Q.js} +13 -18
- package/dist/{text-DuONUqRA.js → text-DoY1TIw3.js} +2 -10
- package/dist/{thematic-break-CcNPEI9Y.js → thematic-break-DXDZ5dcO.js} +2 -10
- package/dist/tooltip-Bdt9-aQx.js +68 -0
- package/dist/tooltip-DQ1-yPia.js +4 -0
- package/dist/{vanilla-CFWVwBvD.js → vanilla-BSgZTIo9.js} +1 -1
- package/dist/vanilla-DUbuBied.js +4 -0
- package/dist/{yaml-DJHrmzSe.js → yaml-3cd5rdJj.js} +3 -11
- package/dist/{zh-CN-CL1XGe0H.js → zh-CN-CykTNqF_.js} +9 -2
- package/dist/zoom-container-D2DxS8V5.js +6 -0
- package/dist/{zoom-container-gjQ0EMyk.js → zoom-container-f44XxzOI.js} +52 -23
- package/package.json +9 -10
- package/dist/button-D6ccVxGm.js +0 -5
- package/dist/code-block-B72JfFy-.js +0 -9
- package/dist/dropdown-oiCw8QVq.js +0 -5
- package/dist/error-component-8y13-fYG.js +0 -4
- package/dist/modal-CuQR21UD.js +0 -71
- package/dist/modal-DcpxxDDX.js +0 -3
- package/dist/node-list-lgY1wbfQ.js +0 -3
- package/dist/previewers-ByaS2Ksa.js +0 -10
- package/dist/segmented-B4IEw3wg.js +0 -6
- package/dist/spin-Bz4zGBEo.js +0 -3
- package/dist/table-CZLbUHiJ.js +0 -3
- package/dist/tooltip-3UDC9mw-.js +0 -71
- package/dist/tooltip-CAoc_U1X.js +0 -4
- package/dist/vanilla-De7W3PpS.js +0 -4
- package/dist/zoom-container-DBgGdbJS.js +0 -6
- /package/dist/{angular-Chs-UKBr.js → angular-CEQtRU3N.js} +0 -0
- /package/dist/{angular-component-Cc_FANXU.js → angular-component-QEWXDi5W.js} +0 -0
- /package/dist/{apache-COYnc6xR.js → apache-D1WYHuA2.js} +0 -0
- /package/dist/{asciidoc-BabXBDAL.js → asciidoc-BbV_Tvaj.js} +0 -0
- /package/dist/{assembly-CDqKhexW.js → assembly-DOdgqSeT.js} +0 -0
- /package/dist/{astro-C9kftzFG.js → astro-I7-Zr25r.js} +0 -0
- /package/dist/{bash-Ce4pNIkV.js → bash-BC7HOdMh.js} +0 -0
- /package/dist/{batch-CHQBRjFL.js → batch-XAv7F3kV.js} +0 -0
- /package/dist/{bicep-8jxWtuBF.js → bicep-B9IAZzHb.js} +0 -0
- /package/dist/{c-FBUef746.js → c-B3pMu4KG.js} +0 -0
- /package/dist/{check-C4xOk8um.js → check-BjAiKMbo.js} +0 -0
- /package/dist/{chevron-down-cnOJ4h1g.js → chevron-down-B4lkjpIC.js} +0 -0
- /package/dist/{circle-alert-CLX-h5rZ.js → circle-alert-DlAafH7h.js} +0 -0
- /package/dist/{clojure-BulUroSy.js → clojure-DwxK-YDX.js} +0 -0
- /package/dist/{cmake-CW3vz1Mo.js → cmake-DtnmI6Z6.js} +0 -0
- /package/dist/{cobol-CIn3oFju.js → cobol--wWeXL_f.js} +0 -0
- /package/dist/{code-D8LSp8rK.js → code-lfRPXNJI.js} +0 -0
- /package/dist/{codeowners-CJggXF_b.js → codeowners-Dtwyh-5g.js} +0 -0
- /package/dist/{coffeescript-CBrVvzGY.js → coffeescript-BlF7y2QG.js} +0 -0
- /package/dist/{copy-Cabve0xf.js → copy-BTFPPhff.js} +0 -0
- /package/dist/{cpp-BTKeuyd-.js → cpp-D_TbJeEH.js} +0 -0
- /package/dist/{crystal-DyIYvZbm.js → crystal-lJ2ZzJQu.js} +0 -0
- /package/dist/{csharp-NqZ1vyF9.js → csharp-D-5hlCJT.js} +0 -0
- /package/dist/{css-BpR5Lajb.js → css-Drykp8uH.js} +0 -0
- /package/dist/{csv-eCMFnKKK.js → csv-oLjD_o9N.js} +0 -0
- /package/dist/{cue-TY97dGOQ.js → cue-BBe_9OA4.js} +0 -0
- /package/dist/{d-NftUsdTd.js → d-CPNK2-3G.js} +0 -0
- /package/dist/{dart-DJpwZZbk.js → dart-BNaQZJdJ.js} +0 -0
- /package/dist/{database-aZwE71Px.js → database-DRAhifbf.js} +0 -0
- /package/dist/{diff-CYRzypaU.js → diff-D_vIvULL.js} +0 -0
- /package/dist/{docker-CxHBuukH.js → docker-BgJkkqCD.js} +0 -0
- /package/dist/{download-Bnn7rtYw.js → download-Bk2mYZyf.js} +0 -0
- /package/dist/{elixir-BKSxVc1h.js → elixir-CTx5aScS.js} +0 -0
- /package/dist/{elm-DScuAf3X.js → elm-nHy9iRuu.js} +0 -0
- /package/dist/{env-CDAKsodl.js → env-CrWzDcwP.js} +0 -0
- /package/dist/{erlang-D2M1ZL3m.js → erlang-CxR4-Qdt.js} +0 -0
- /package/dist/{eye-CdeX8PhP.js → eye-DpAj1af-.js} +0 -0
- /package/dist/{fortran-CORyQ0wt.js → fortran-DhUZYzo3.js} +0 -0
- /package/dist/{fsharp-BJz_Jgpl.js → fsharp-DyIvnsyH.js} +0 -0
- /package/dist/{git-DgrlTr1E.js → git-D4qjCZtd.js} +0 -0
- /package/dist/{gleam-t_xad9Kw.js → gleam-D-ovCBt_.js} +0 -0
- /package/dist/{go-Cvlh1xtL.js → go-CEH2y3pJ.js} +0 -0
- /package/dist/{graphql-ApIm0mDD.js → graphql-DbV-8_AJ.js} +0 -0
- /package/dist/{groovy-CaLnK8PV.js → groovy-B-_VVp4c.js} +0 -0
- /package/dist/{haml-MwijEO_6.js → haml-Cnm_v56B.js} +0 -0
- /package/dist/{handlebars-CKdUPI9h.js → handlebars-8EEQS0El.js} +0 -0
- /package/dist/{haskell-NPOXEnck.js → haskell-cLvKQFrd.js} +0 -0
- /package/dist/{haxe-DyKBMsDE.js → haxe-DtCGwrr1.js} +0 -0
- /package/dist/{html-CMgES1dE.js → html-C2NHp3i4.js} +0 -0
- /package/dist/{http-B9FFNmUr.js → http-DYO1Ugj7.js} +0 -0
- /package/dist/{image-CMZAakWu.js → image-DDiNDOKJ.js} +0 -0
- /package/dist/{java-iU-L9wJz.js → java-it6UCC5M.js} +0 -0
- /package/dist/{javascript-DtnWdTFC.js → javascript-DVxfoa-a.js} +0 -0
- /package/dist/{jinja-CoWszo_D.js → jinja-CUKX2CXM.js} +0 -0
- /package/dist/{json-C80qKCnh.js → json-O68iFOiu.js} +0 -0
- /package/dist/{julia-DG2BCBLx.js → julia-Dq3BwHeZ.js} +0 -0
- /package/dist/{kdl-7twRfIlJ.js → kdl-CFVZba8u.js} +0 -0
- /package/dist/{kotlin-BjrOgP7R.js → kotlin-BKhxhG0q.js} +0 -0
- /package/dist/{latex-DIQfUvG8.js → latex-B3hQqfJO.js} +0 -0
- /package/dist/{less-BJ1yEAWt.js → less-Bw2JZJkw.js} +0 -0
- /package/dist/{link-DeV4CQOB.js → link-DCaSecEI.js} +0 -0
- /package/dist/{liquid-BqKFZ1wQ.js → liquid-BsGDMxjJ.js} +0 -0
- /package/dist/{lisp-oekhB2ti.js → lisp-CnrazyOe.js} +0 -0
- /package/dist/{log-D1XEqR9q.js → log-BuRjhdbZ.js} +0 -0
- /package/dist/{lua-C5Q97-1D.js → lua-CA97s0xX.js} +0 -0
- /package/dist/{luau-BT8KwqZ2.js → luau-hq6gk9_N.js} +0 -0
- /package/dist/{makefile-B4a0ciG4.js → makefile-mNhrnPWo.js} +0 -0
- /package/dist/{markdown-DvNyKsiJ.js → markdown-El6B7b99.js} +0 -0
- /package/dist/{marko-BzsIf6bg.js → marko-8nTOMumd.js} +0 -0
- /package/dist/{matlab-cMBkmDhQ.js → matlab-DuqengFv.js} +0 -0
- /package/dist/{maximize-4PIqBONS.js → maximize-B1-N6kOL.js} +0 -0
- /package/dist/{mermaid-8JIH2gkQ.js → mermaid-Byu8TsQE.js} +0 -0
- /package/dist/{minimize-BJ8htyDF.js → minimize-CVVLdf2H.js} +0 -0
- /package/dist/{nextflow-DNmqU1xg.js → nextflow-DRCOPmGT.js} +0 -0
- /package/dist/{nginx-DDfYF_rj.js → nginx-DTgW--wm.js} +0 -0
- /package/dist/{nim-D9xEmy4k.js → nim-r-ftp-xj.js} +0 -0
- /package/dist/{nix-BV1Deshw.js → nix-BdWPBS1Z.js} +0 -0
- /package/dist/{ocaml-BkFn4LL3.js → ocaml-vXi6ujuu.js} +0 -0
- /package/dist/{perl-BytUHDE7.js → perl-C_g5vs30.js} +0 -0
- /package/dist/{php-BImJJtNM.js → php-C_b0sjdl.js} +0 -0
- /package/dist/{postcss-CrZ9_0sT.js → postcss-Bsz3PPjI.js} +0 -0
- /package/dist/{powershell-DYSGu7TM.js → powershell-D0kxdwKl.js} +0 -0
- /package/dist/{prisma-BhRvcOFY.js → prisma-BocqbK7a.js} +0 -0
- /package/dist/{prolog-DuaCKek_.js → prolog-D-zd1rzT.js} +0 -0
- /package/dist/{properties-BbIJwuP-.js → properties-Dds-063G.js} +0 -0
- /package/dist/{proto-CE0aVW11.js → proto-CzD9trm_.js} +0 -0
- /package/dist/{pug-B1-IC-Tc.js → pug-B1V2RxQS.js} +0 -0
- /package/dist/{puppet-8nYquiMG.js → puppet-BcnVd0q5.js} +0 -0
- /package/dist/{python-DhRyfBrD.js → python-BcZnB7mH.js} +0 -0
- /package/dist/{r-Cjje17IA.js → r-CxSFFuvL.js} +0 -0
- /package/dist/{racket-Dx0gMnpg.js → racket-DJ_82PRG.js} +0 -0
- /package/dist/{razor-DPht_bdD.js → razor-D7IkXHVQ.js} +0 -0
- /package/dist/{ruby-B8RxtCzI.js → ruby-Cidk52Rl.js} +0 -0
- /package/dist/{rust-Cjtli6yf.js → rust-DJvcpkbm.js} +0 -0
- /package/dist/{sass-Dv3DMzjs.js → sass-DTFDeixE.js} +0 -0
- /package/dist/{scala-B7bZGKXq.js → scala-GlHhGi5O.js} +0 -0
- /package/dist/{scheme-B2PsEdVN.js → scheme-rNcj5mL9.js} +0 -0
- /package/dist/{shader-BZzu3zGr.js → shader-Df9eByRK.js} +0 -0
- /package/dist/{shiki-token-renderer-D164wC7Y.js → shiki-token-renderer-BMveKuYt.js} +0 -0
- /package/dist/{solidity-CLieFYpL.js → solidity-CfuYjRuT.js} +0 -0
- /package/dist/{spin-Ds5W7qC_.js → spin-D4Oi_m7j.js} +0 -0
- /package/dist/{stata-C0yUiO47.js → stata-BB5c_hbh.js} +0 -0
- /package/dist/{svelte-rtF4yNGL.js → svelte-2ISqxu6B.js} +0 -0
- /package/dist/{swift-CzvYoIM0.js → swift-wpybyudn.js} +0 -0
- /package/dist/{table-4ec9FVB_.js → table-iNA4la0w.js} +0 -0
- /package/dist/{terraform-CD_BZGb-.js → terraform-CLzhaCaX.js} +0 -0
- /package/dist/{text-D1-vbZ7l.js → text-C0mKr3tC.js} +0 -0
- /package/dist/{toml-C6jUF0Xd.js → toml-DImd1uev.js} +0 -0
- /package/dist/{twig-C4dfP84J.js → twig-DEBVmtOq.js} +0 -0
- /package/dist/{typescript-Bk-pp-cK.js → typescript-Xo5tgeOd.js} +0 -0
- /package/dist/{typst-DPCpaVSH.js → typst-_Ui0vNYP.js} +0 -0
- /package/dist/{v-nRGMJ2Ki.js → v-Ch6vEAHG.js} +0 -0
- /package/dist/{vala-B78bKcY0.js → vala-Ds_Ad1cC.js} +0 -0
- /package/dist/{verilog-CRpkl76S.js → verilog-CUqRomTC.js} +0 -0
- /package/dist/{vim-DpKnut7b.js → vim-BFUPh6oM.js} +0 -0
- /package/dist/{vue-D5eadhjo.js → vue-DzgIlbJ2.js} +0 -0
- /package/dist/{xml-Dvx5F-hl.js → xml-CmbQxaqc.js} +0 -0
- /package/dist/{yaml-n1S8nAOh.js → yaml-BhwCoLnZ.js} +0 -0
- /package/dist/{zig-R-iFzxfW.js → zig-Bmrmp8vo.js} +0 -0
- /package/dist/{zoomIn-CEukuh3x.js → zoomIn-CCKcyIEv.js} +0 -0
- /package/dist/{zoomOut-qlzQyQli.js → zoomOut-BrSwLQZ_.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue42 from "vue";
|
|
2
2
|
import { Component, MaybeRef, MaybeRefOrGetter } from "vue";
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "tippy.js/dist/border.css";
|
|
6
|
-
import "tippy.js/dist/svg-arrow.css";
|
|
7
|
-
import { Zoom } from "medium-zoom";
|
|
3
|
+
import * as _floating_ui_vue0 from "@floating-ui/vue";
|
|
4
|
+
import { Placement } from "@floating-ui/vue";
|
|
8
5
|
import { MarkdownItAsync } from "markdown-it-async";
|
|
9
6
|
import { KatexOptions as KatexOptions$1 } from "katex";
|
|
10
7
|
import remend from "remend";
|
|
11
|
-
import "medium-zoom/dist/style.css";
|
|
12
8
|
import { BuiltinLanguage, BuiltinTheme, BundledLanguage, BundledTheme, CodeToTokensOptions, Highlighter, SpecialLanguage, TokensResult } from "shiki";
|
|
13
9
|
import { Mermaid, MermaidConfig } from "mermaid";
|
|
14
10
|
import { Extension, fromMarkdown } from "mdast-util-from-markdown";
|
|
15
11
|
import { Options as Options$1 } from "mdast-util-to-markdown";
|
|
16
12
|
import { Extension as Extension$1 } from "micromark-util-types";
|
|
17
|
-
import { DefaultProps } from "tippy.js";
|
|
18
13
|
|
|
19
14
|
//#region src/components/previewers/index.d.ts
|
|
20
15
|
declare const CODE_PREVIEWERS: Record<string, Component>;
|
|
@@ -121,6 +116,13 @@ interface LocaleConfig {
|
|
|
121
116
|
download: string;
|
|
122
117
|
minimize: string;
|
|
123
118
|
maximize: string;
|
|
119
|
+
flipY: string;
|
|
120
|
+
flipX: string;
|
|
121
|
+
rotateLeft: string;
|
|
122
|
+
rotateRight: string;
|
|
123
|
+
previous: string;
|
|
124
|
+
next: string;
|
|
125
|
+
back: string;
|
|
124
126
|
};
|
|
125
127
|
error: {
|
|
126
128
|
vanilla: string;
|
|
@@ -143,27 +145,31 @@ declare const DEFAULT_HARDEN_OPTIONS: HardenOptions;
|
|
|
143
145
|
//#endregion
|
|
144
146
|
//#region src/constants/icons.d.ts
|
|
145
147
|
declare const ICONS: {
|
|
146
|
-
readonly
|
|
147
|
-
readonly
|
|
148
|
-
readonly
|
|
149
|
-
readonly
|
|
150
|
-
readonly
|
|
151
|
-
readonly
|
|
152
|
-
readonly
|
|
153
|
-
readonly
|
|
154
|
-
readonly
|
|
155
|
-
readonly
|
|
156
|
-
readonly
|
|
157
|
-
readonly
|
|
158
|
-
readonly
|
|
159
|
-
readonly
|
|
148
|
+
readonly arrowLeft: vue42.FunctionalComponent<vue42.SVGAttributes, {}, any, {}>;
|
|
149
|
+
readonly check: vue42.FunctionalComponent<vue42.SVGAttributes, {}, any, {}>;
|
|
150
|
+
readonly code: vue42.FunctionalComponent<vue42.SVGAttributes, {}, any, {}>;
|
|
151
|
+
readonly collapse: vue42.FunctionalComponent<vue42.SVGAttributes, {}, any, {}>;
|
|
152
|
+
readonly copy: vue42.FunctionalComponent<vue42.SVGAttributes, {}, any, {}>;
|
|
153
|
+
readonly cornerDownLeft: vue42.FunctionalComponent<vue42.SVGAttributes, {}, any, {}>;
|
|
154
|
+
readonly download: vue42.FunctionalComponent<vue42.SVGAttributes, {}, any, {}>;
|
|
155
|
+
readonly error: vue42.FunctionalComponent<vue42.SVGAttributes, {}, any, {}>;
|
|
156
|
+
readonly flipHorizontal: vue42.FunctionalComponent<vue42.SVGAttributes, {}, any, {}>;
|
|
157
|
+
readonly image: vue42.FunctionalComponent<vue42.SVGAttributes, {}, any, {}>;
|
|
158
|
+
readonly link: vue42.FunctionalComponent<vue42.SVGAttributes, {}, any, {}>;
|
|
159
|
+
readonly maximize: vue42.FunctionalComponent<vue42.SVGAttributes, {}, any, {}>;
|
|
160
|
+
readonly mermaid: vue42.FunctionalComponent<vue42.SVGAttributes, {}, any, {}>;
|
|
161
|
+
readonly minimize: vue42.FunctionalComponent<vue42.SVGAttributes, {}, any, {}>;
|
|
162
|
+
readonly preview: vue42.FunctionalComponent<vue42.SVGAttributes, {}, any, {}>;
|
|
163
|
+
readonly rotateLeft: vue42.FunctionalComponent<vue42.SVGAttributes, {}, any, {}>;
|
|
164
|
+
readonly zoomIn: vue42.FunctionalComponent<vue42.SVGAttributes, {}, any, {}>;
|
|
165
|
+
readonly zoomOut: vue42.FunctionalComponent<vue42.SVGAttributes, {}, any, {}>;
|
|
160
166
|
};
|
|
161
167
|
//#endregion
|
|
162
168
|
//#region src/constants/theme.d.ts
|
|
163
169
|
declare const SHADCN_SCHEMAS: readonly ["background", "foreground", "card", "card-foreground", "popover", "popover-foreground", "primary", "primary-foreground", "secondary", "secondary-foreground", "muted", "muted-foreground", "accent", "accent-foreground", "destructive", "border", "input", "ring", "chart-1", "chart-2", "chart-3", "chart-4", "chart-5", "sidebar", "sidebar-foreground", "sidebar-primary", "sidebar-primary-foreground", "sidebar-accent", "sidebar-accent-foreground", "sidebar-border", "sidebar-ring"];
|
|
164
170
|
//#endregion
|
|
165
171
|
//#region src/types/shared.d.ts
|
|
166
|
-
type IconName = keyof typeof ICONS;
|
|
172
|
+
type IconName = keyof typeof ICONS | 'flipVertical' | 'rotateRight' | 'arrowRight';
|
|
167
173
|
interface SelectItem {
|
|
168
174
|
label: string;
|
|
169
175
|
value: string;
|
|
@@ -177,12 +183,14 @@ interface StreamMarkdownProps extends StreamMarkdownContext, MarkdownParserOptio
|
|
|
177
183
|
nodeRenderers?: NodeRenderers;
|
|
178
184
|
icons?: Partial<Record<IconName, Component>>;
|
|
179
185
|
locale?: string | LocaleConfig;
|
|
186
|
+
enableAnimate?: boolean;
|
|
180
187
|
}
|
|
181
188
|
interface MarkdownParserOptions {
|
|
182
189
|
mdastOptions?: MdastOptions;
|
|
183
190
|
normalize?: (content: string) => string;
|
|
191
|
+
postNormalize?: (data: SyntaxTree) => SyntaxTree;
|
|
184
192
|
preprocess?: (content: string) => string;
|
|
185
|
-
postprocess?: (
|
|
193
|
+
postprocess?: (data: SyntaxTree) => SyntaxTree;
|
|
186
194
|
extendMarkdownIt?: (md: MarkdownItAsync) => void;
|
|
187
195
|
}
|
|
188
196
|
interface MdastOptions {
|
|
@@ -212,9 +220,14 @@ type CodeControlsConfig = boolean | {
|
|
|
212
220
|
fullscreen?: boolean;
|
|
213
221
|
};
|
|
214
222
|
type ImageControlsConfig = boolean | {
|
|
223
|
+
preview?: boolean;
|
|
215
224
|
download?: boolean;
|
|
225
|
+
carousel?: boolean;
|
|
226
|
+
flip?: boolean;
|
|
227
|
+
rotate?: boolean;
|
|
228
|
+
controlPosition?: ZoomControlPosition;
|
|
216
229
|
};
|
|
217
|
-
type ZoomControlPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
230
|
+
type ZoomControlPosition = 'top-left' | 'top-right' | 'top-center' | 'bottom-left' | 'bottom-right' | 'bottom-center';
|
|
218
231
|
type ZoomControlsConfig = boolean | {
|
|
219
232
|
position?: ZoomControlPosition;
|
|
220
233
|
};
|
|
@@ -232,6 +245,7 @@ type PreviewerConfig = boolean | ({
|
|
|
232
245
|
});
|
|
233
246
|
interface ShikiOptions {
|
|
234
247
|
theme?: [BuiltinTheme, BuiltinTheme];
|
|
248
|
+
langs?: BundledLanguage[];
|
|
235
249
|
langAlias?: Record<string, string>;
|
|
236
250
|
codeToTokenOptions?: CodeToTokensOptions<BundledLanguage, BundledTheme>;
|
|
237
251
|
}
|
|
@@ -253,6 +267,7 @@ interface CodeOptions {
|
|
|
253
267
|
languageIcon?: boolean;
|
|
254
268
|
languageName?: boolean;
|
|
255
269
|
lineNumbers?: boolean;
|
|
270
|
+
maxHeight?: number | string;
|
|
256
271
|
/**
|
|
257
272
|
* Language specific code options
|
|
258
273
|
* @example
|
|
@@ -299,17 +314,15 @@ declare class MarkdownParser {
|
|
|
299
314
|
}
|
|
300
315
|
//#endregion
|
|
301
316
|
//#region src/types/renderer.d.ts
|
|
302
|
-
interface NodeRendererListProps extends Omit<NodeRendererProps, 'node' | '
|
|
317
|
+
interface NodeRendererListProps extends Omit<NodeRendererProps, 'node' | 'nodeKey'> {
|
|
303
318
|
nodes?: ParsedNode[];
|
|
304
|
-
|
|
319
|
+
nodeKey?: string;
|
|
305
320
|
}
|
|
306
321
|
interface NodeRendererProps extends StreamMarkdownContext {
|
|
307
322
|
markdownParser: MarkdownParser;
|
|
308
323
|
nodeRenderers: NodeRenderers;
|
|
309
324
|
node: ParsedNode;
|
|
310
|
-
|
|
311
|
-
indexKey: number | string;
|
|
312
|
-
getContainer: () => HTMLElement | undefined;
|
|
325
|
+
nodeKey: string;
|
|
313
326
|
}
|
|
314
327
|
interface BlockquoteNodeRendererProps extends NodeRendererProps {
|
|
315
328
|
node: BlockquoteNode;
|
|
@@ -397,7 +410,7 @@ interface InlineMathNodeRendererProps extends NodeRendererProps {
|
|
|
397
410
|
declare const NODE_RENDERERS: NodeRenderers;
|
|
398
411
|
//#endregion
|
|
399
412
|
//#region src/components/index.d.ts
|
|
400
|
-
declare const
|
|
413
|
+
declare const UI: Record<string, Component>;
|
|
401
414
|
//#endregion
|
|
402
415
|
//#region src/composables/use-code-options.d.ts
|
|
403
416
|
interface UseCodeOptionsOptions {
|
|
@@ -405,16 +418,25 @@ interface UseCodeOptionsOptions {
|
|
|
405
418
|
language?: MaybeRef<string>;
|
|
406
419
|
}
|
|
407
420
|
declare function useCodeOptions(options: UseCodeOptionsOptions): {
|
|
408
|
-
languageCodeOptions:
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
421
|
+
languageCodeOptions: vue42.ComputedRef<{
|
|
422
|
+
languageIcon?: boolean | vue42.Component | undefined;
|
|
423
|
+
language?: Record<string, CodeOptionsLanguage>;
|
|
424
|
+
languageName?: boolean;
|
|
425
|
+
lineNumbers?: boolean;
|
|
426
|
+
maxHeight?: number | string;
|
|
427
|
+
}>;
|
|
428
|
+
showLanguageIcon: vue42.ComputedRef<boolean>;
|
|
429
|
+
showLanguageName: vue42.ComputedRef<boolean>;
|
|
430
|
+
showLineNumbers: vue42.ComputedRef<boolean>;
|
|
412
431
|
};
|
|
413
432
|
//#endregion
|
|
414
433
|
//#region src/composables/use-context.d.ts
|
|
415
434
|
interface Context {
|
|
435
|
+
mode?: MaybeRef<'static' | 'streaming'>;
|
|
416
436
|
isDark?: MaybeRef<boolean>;
|
|
417
437
|
icons?: MaybeRef<Record<IconName, Component>>;
|
|
438
|
+
enableAnimate?: MaybeRef<boolean | undefined>;
|
|
439
|
+
parsedNodes?: MaybeRef<ParsedNode[]>;
|
|
418
440
|
getContainer?: () => HTMLElement | undefined;
|
|
419
441
|
onCopied?: (content: string) => void;
|
|
420
442
|
}
|
|
@@ -422,8 +444,11 @@ declare function useContext(): {
|
|
|
422
444
|
context: Context;
|
|
423
445
|
provideContext: (ctx: Partial<Context>) => void;
|
|
424
446
|
injectContext: () => Context;
|
|
425
|
-
|
|
426
|
-
|
|
447
|
+
mode: vue42.ComputedRef<"streaming" | "static">;
|
|
448
|
+
icons: vue42.ComputedRef<Record<string, Component>>;
|
|
449
|
+
isDark: vue42.ComputedRef<boolean>;
|
|
450
|
+
enableAnimate: vue42.ComputedRef<boolean | undefined>;
|
|
451
|
+
parsedNodes: vue42.ComputedRef<ParsedNode[]>;
|
|
427
452
|
readonly getContainer: () => HTMLElement | undefined;
|
|
428
453
|
readonly onCopied: (content: string) => void;
|
|
429
454
|
};
|
|
@@ -437,18 +462,30 @@ declare function useControls(options: UseControlsOptions): {
|
|
|
437
462
|
getControlValue: <T = any>(key: string) => T | undefined;
|
|
438
463
|
};
|
|
439
464
|
//#endregion
|
|
440
|
-
//#region src/composables/use-
|
|
441
|
-
interface
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
465
|
+
//#region src/composables/use-floating-element.d.ts
|
|
466
|
+
interface UseFloatingElementOptions {
|
|
467
|
+
trigger?: MaybeRef<'hover' | 'click'>;
|
|
468
|
+
placement?: MaybeRef<Placement>;
|
|
469
|
+
delay?: MaybeRef<number | [number, number]>;
|
|
470
|
+
getContainer?: () => HTMLElement | undefined;
|
|
446
471
|
}
|
|
447
|
-
declare function
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
472
|
+
declare function useFloatingElement(options: UseFloatingElementOptions): {
|
|
473
|
+
referenceEl: vue42.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
474
|
+
floatingEl: vue42.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
475
|
+
open: vue42.Ref<boolean, boolean>;
|
|
476
|
+
appendTo: vue42.ComputedRef<HTMLElement | "body">;
|
|
477
|
+
floatingStyle: vue42.ComputedRef<{
|
|
478
|
+
position: _floating_ui_vue0.Strategy;
|
|
479
|
+
top: string;
|
|
480
|
+
left: string;
|
|
481
|
+
}>;
|
|
482
|
+
show: () => void;
|
|
483
|
+
hide: () => void;
|
|
484
|
+
onMouseEnter: () => void;
|
|
485
|
+
onMouseLeave: () => void;
|
|
486
|
+
onClick: () => void;
|
|
487
|
+
onFloatingEnter: () => void;
|
|
488
|
+
onFloatingLeave: () => void;
|
|
452
489
|
};
|
|
453
490
|
//#endregion
|
|
454
491
|
//#region src/composables/use-i18n.d.ts
|
|
@@ -458,7 +495,7 @@ declare function useI18n(): {
|
|
|
458
495
|
//#endregion
|
|
459
496
|
//#region src/composables/use-katex.d.ts
|
|
460
497
|
declare function useKatex(): {
|
|
461
|
-
installed:
|
|
498
|
+
installed: vue42.Ref<boolean, boolean>;
|
|
462
499
|
render: (code: string, options?: KatexOptions$1) => Promise<{
|
|
463
500
|
html?: string;
|
|
464
501
|
error?: string;
|
|
@@ -474,9 +511,26 @@ interface UseMathRendererOptions {
|
|
|
474
511
|
throttle?: MaybeRef<number>;
|
|
475
512
|
}
|
|
476
513
|
declare function useMathRenderer(options: UseMathRendererOptions): {
|
|
477
|
-
html:
|
|
478
|
-
error:
|
|
479
|
-
errorMessage:
|
|
514
|
+
html: vue42.Ref<string, string>;
|
|
515
|
+
error: vue42.ComputedRef<boolean>;
|
|
516
|
+
errorMessage: vue42.Ref<string, string>;
|
|
517
|
+
};
|
|
518
|
+
//#endregion
|
|
519
|
+
//#region src/composables/use-medium-zoom.d.ts
|
|
520
|
+
interface UseMediumZoomOptions {
|
|
521
|
+
margin?: MaybeRef<number>;
|
|
522
|
+
open?: () => void;
|
|
523
|
+
close?: () => void;
|
|
524
|
+
}
|
|
525
|
+
declare function useMediumZoom(options: UseMediumZoomOptions): {
|
|
526
|
+
isAnimating: vue42.Ref<boolean, boolean>;
|
|
527
|
+
elementStyle: vue42.ComputedRef<{
|
|
528
|
+
opacity: number;
|
|
529
|
+
}>;
|
|
530
|
+
elementRef: vue42.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
531
|
+
zoomElementRef: vue42.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
532
|
+
zoomIn: () => Promise<void>;
|
|
533
|
+
zoomOut: () => Promise<void>;
|
|
480
534
|
};
|
|
481
535
|
//#endregion
|
|
482
536
|
//#region src/composables/use-mermaid.d.ts
|
|
@@ -485,7 +539,7 @@ interface UseMermaidOptions {
|
|
|
485
539
|
isDark?: MaybeRef<boolean>;
|
|
486
540
|
}
|
|
487
541
|
declare function useMermaid(options?: UseMermaidOptions): {
|
|
488
|
-
installed:
|
|
542
|
+
installed: vue42.Ref<boolean, boolean>;
|
|
489
543
|
getMermaid: () => Promise<Mermaid>;
|
|
490
544
|
parseMermaid: (code: string) => Promise<boolean>;
|
|
491
545
|
renderMermaid: (code: string) => Promise<string | null>;
|
|
@@ -494,6 +548,20 @@ declare function useMermaid(options?: UseMermaidOptions): {
|
|
|
494
548
|
dispose: () => void;
|
|
495
549
|
};
|
|
496
550
|
//#endregion
|
|
551
|
+
//#region src/composables/use-sanitizers.d.ts
|
|
552
|
+
interface UseSanitizersOptions {
|
|
553
|
+
url?: MaybeRef<string | undefined>;
|
|
554
|
+
hardenOptions?: MaybeRef<HardenOptions | undefined>;
|
|
555
|
+
loading?: MaybeRef<boolean | undefined>;
|
|
556
|
+
isImage?: MaybeRef<boolean | undefined>;
|
|
557
|
+
}
|
|
558
|
+
declare function useSanitizers(options: UseSanitizersOptions): {
|
|
559
|
+
hardenOptions: vue42.ComputedRef<HardenOptions>;
|
|
560
|
+
transformHardenUrl: (url: string) => string | null;
|
|
561
|
+
transformedUrl: vue42.ComputedRef<string | null>;
|
|
562
|
+
isHardenUrl: vue42.ComputedRef<boolean>;
|
|
563
|
+
};
|
|
564
|
+
//#endregion
|
|
497
565
|
//#region src/composables/use-shiki.d.ts
|
|
498
566
|
interface UseShikiOptions {
|
|
499
567
|
lang?: MaybeRef<string>;
|
|
@@ -501,7 +569,7 @@ interface UseShikiOptions {
|
|
|
501
569
|
isDark?: MaybeRef<boolean>;
|
|
502
570
|
}
|
|
503
571
|
declare function useShiki(options?: UseShikiOptions): {
|
|
504
|
-
installed:
|
|
572
|
+
installed: vue42.Ref<boolean, boolean>;
|
|
505
573
|
getHighlighter: () => Promise<Highlighter>;
|
|
506
574
|
codeToTokens: (code: string) => Promise<TokensResult>;
|
|
507
575
|
preload: () => Promise<void>;
|
|
@@ -514,24 +582,15 @@ interface UseTailwindV3ThemeOptions {
|
|
|
514
582
|
styleScope?: MaybeRef<string>;
|
|
515
583
|
}
|
|
516
584
|
declare function useTailwindV3Theme(options: UseTailwindV3ThemeOptions): {
|
|
517
|
-
element:
|
|
585
|
+
element: vue42.ComputedRef<Element | undefined>;
|
|
518
586
|
id: string;
|
|
519
|
-
css:
|
|
587
|
+
css: vue42.ShallowRef<string>;
|
|
520
588
|
load: () => void;
|
|
521
589
|
unload: () => void;
|
|
522
|
-
isLoaded: Readonly<
|
|
590
|
+
isLoaded: Readonly<vue42.ShallowRef<boolean>>;
|
|
523
591
|
generateCSS: () => void;
|
|
524
592
|
};
|
|
525
593
|
//#endregion
|
|
526
|
-
//#region src/composables/use-tippy.d.ts
|
|
527
|
-
interface UseTippyOptions {
|
|
528
|
-
isDark?: MaybeRef<boolean>;
|
|
529
|
-
options?: MaybeRef<DefaultProps>;
|
|
530
|
-
}
|
|
531
|
-
declare function useTippy(options?: UseTippyOptions): {
|
|
532
|
-
initTippy: () => void;
|
|
533
|
-
};
|
|
534
|
-
//#endregion
|
|
535
594
|
//#region src/composables/use-zoom.d.ts
|
|
536
595
|
interface UseZoomOptions {
|
|
537
596
|
minZoom?: number;
|
|
@@ -542,17 +601,17 @@ interface UseZoomOptions {
|
|
|
542
601
|
initialTranslateX?: number;
|
|
543
602
|
initialTranslateY?: number;
|
|
544
603
|
}
|
|
545
|
-
interface
|
|
604
|
+
interface ZoomState {
|
|
546
605
|
zoom: number;
|
|
547
606
|
translateX: number;
|
|
548
607
|
translateY: number;
|
|
549
608
|
}
|
|
550
609
|
declare function useZoom(options?: UseZoomOptions): {
|
|
551
|
-
zoom:
|
|
552
|
-
translateX:
|
|
553
|
-
translateY:
|
|
554
|
-
isDragging:
|
|
555
|
-
transformStyle:
|
|
610
|
+
zoom: vue42.Ref<number, number>;
|
|
611
|
+
translateX: vue42.Ref<number, number>;
|
|
612
|
+
translateY: vue42.Ref<number, number>;
|
|
613
|
+
isDragging: vue42.Ref<boolean, boolean>;
|
|
614
|
+
transformStyle: vue42.ComputedRef<{
|
|
556
615
|
transform: string;
|
|
557
616
|
}>;
|
|
558
617
|
zoomIn: () => void;
|
|
@@ -563,20 +622,20 @@ declare function useZoom(options?: UseZoomOptions): {
|
|
|
563
622
|
onDrag: (e: PointerEvent) => void;
|
|
564
623
|
stopDrag: () => void;
|
|
565
624
|
handleWheel: (event: WheelEvent, containerElement: HTMLElement) => void;
|
|
566
|
-
getState: () =>
|
|
567
|
-
setState: (state: Partial<
|
|
625
|
+
getState: () => ZoomState;
|
|
626
|
+
setState: (state: Partial<ZoomState>) => void;
|
|
568
627
|
handleTouchStart: (event: TouchEvent, containerElement: HTMLElement) => void;
|
|
569
628
|
handleTouchMove: (event: TouchEvent, containerElement: HTMLElement) => void;
|
|
570
629
|
handleTouchEnd: (event: TouchEvent) => void;
|
|
571
630
|
};
|
|
572
631
|
//#endregion
|
|
573
632
|
//#region src/index.vue.d.ts
|
|
574
|
-
declare const __VLS_export:
|
|
633
|
+
declare const __VLS_export: vue42.DefineComponent<StreamMarkdownProps, {
|
|
575
634
|
getMarkdownParser: () => MarkdownParser;
|
|
576
635
|
getParsedNodes: () => ParsedNode[];
|
|
577
|
-
}, {}, {}, {},
|
|
636
|
+
}, {}, {}, {}, vue42.ComponentOptionsMixin, vue42.ComponentOptionsMixin, {} & {
|
|
578
637
|
copied: (content: string) => any;
|
|
579
|
-
}, string,
|
|
638
|
+
}, string, vue42.PublicProps, Readonly<StreamMarkdownProps> & Readonly<{
|
|
580
639
|
onCopied?: ((content: string) => any) | undefined;
|
|
581
640
|
}>, {
|
|
582
641
|
mode: "static" | "streaming";
|
|
@@ -584,23 +643,28 @@ declare const __VLS_export: vue29.DefineComponent<StreamMarkdownProps, {
|
|
|
584
643
|
nodeRenderers: Partial<Record<"blockquote" | "break" | "code" | "definition" | "delete" | "emphasis" | "footnoteDefinition" | "footnoteReference" | "heading" | "html" | "image" | "imageReference" | "inlineCode" | "link" | "linkReference" | "list" | "listItem" | "paragraph" | "strong" | "table" | "tableCell" | "tableRow" | "text" | "thematicBreak" | "yaml" | "inlineMath" | "math", Component>>;
|
|
585
644
|
icons: Partial<Record<IconName, Component>>;
|
|
586
645
|
locale: string | LocaleConfig;
|
|
646
|
+
enableAnimate: boolean;
|
|
587
647
|
controls: ControlsConfig;
|
|
588
648
|
previewers: PreviewerConfig;
|
|
589
649
|
isDark: boolean;
|
|
590
|
-
}, {}, {}, {}, string,
|
|
650
|
+
}, {}, {}, {}, string, vue42.ComponentProvideOptions, false, {}, any>;
|
|
591
651
|
declare const _default: typeof __VLS_export;
|
|
592
652
|
//#endregion
|
|
593
653
|
//#region src/locales/index.d.ts
|
|
594
654
|
declare const SUPPORT_LANGUAGES: string[];
|
|
595
655
|
declare const localesGlob: Record<string, () => Promise<unknown>>;
|
|
596
|
-
declare const localeMessages:
|
|
597
|
-
declare const currentLocale:
|
|
656
|
+
declare const localeMessages: vue42.Ref<LocaleConfig | undefined, LocaleConfig | undefined>;
|
|
657
|
+
declare const currentLocale: vue42.Ref<string, string>;
|
|
598
658
|
declare function loadLocaleMessages(language: string | LocaleConfig): Promise<void>;
|
|
599
659
|
//#endregion
|
|
660
|
+
//#region src/postprocess/footnote.d.ts
|
|
661
|
+
declare function postFixFootnote(data: SyntaxTree): SyntaxTree;
|
|
662
|
+
//#endregion
|
|
600
663
|
//#region src/postprocess/text.d.ts
|
|
601
664
|
declare function postFixText(data: SyntaxTree): SyntaxTree;
|
|
602
665
|
//#endregion
|
|
603
666
|
//#region src/postprocess/index.d.ts
|
|
667
|
+
declare function postNormalize(data: SyntaxTree): SyntaxTree;
|
|
604
668
|
declare function postprocess(data: SyntaxTree): SyntaxTree;
|
|
605
669
|
//#endregion
|
|
606
670
|
//#region src/preprocess/code.d.ts
|
|
@@ -668,6 +732,35 @@ declare function fixDelete(content: string): string;
|
|
|
668
732
|
*/
|
|
669
733
|
declare function fixEmphasis(content: string): string;
|
|
670
734
|
//#endregion
|
|
735
|
+
//#region src/preprocess/footnote.d.ts
|
|
736
|
+
/**
|
|
737
|
+
* Remove incomplete footnote references ([^...]) in streaming markdown
|
|
738
|
+
*
|
|
739
|
+
* Processes the entire content to remove footnote references that don't have
|
|
740
|
+
* corresponding definitions. This is necessary because footnote references can
|
|
741
|
+
* appear anywhere in the document, while definitions typically appear at the end.
|
|
742
|
+
*
|
|
743
|
+
* A footnote reference is considered incomplete if there's no corresponding
|
|
744
|
+
* footnote definition ([^...]:) in the entire content.
|
|
745
|
+
*
|
|
746
|
+
* @param content - Markdown content (potentially incomplete in stream mode)
|
|
747
|
+
* @returns Content with incomplete footnote references removed
|
|
748
|
+
*
|
|
749
|
+
* @example
|
|
750
|
+
* fixFootnote('Text [^1] and [^2]')
|
|
751
|
+
* // Returns: 'Text [^1] and [^2]' (if [^1]: and [^2]: exist)
|
|
752
|
+
* // Returns: 'Text and ' (if definitions don't exist)
|
|
753
|
+
*
|
|
754
|
+
* @example
|
|
755
|
+
* fixFootnote('Para1 [^1]\n\nPara2 [^2]')
|
|
756
|
+
* // Removes [^1] and [^2] if their definitions don't exist
|
|
757
|
+
*
|
|
758
|
+
* @example
|
|
759
|
+
* fixFootnote('```\n[^1]\n```\n\nText [^1]')
|
|
760
|
+
* // Code block content is ignored, only processes Text [^1]
|
|
761
|
+
*/
|
|
762
|
+
declare function fixFootnote(content: string): string;
|
|
763
|
+
//#endregion
|
|
671
764
|
//#region src/preprocess/link.d.ts
|
|
672
765
|
/**
|
|
673
766
|
* Fix unclosed link/image syntax in streaming markdown
|
|
@@ -700,6 +793,16 @@ declare function fixEmphasis(content: string): string;
|
|
|
700
793
|
* @example
|
|
701
794
|
* fixLink('
|
|
702
795
|
* // Returns: ''
|
|
796
|
+
*
|
|
797
|
+
* @example
|
|
798
|
+
* fixLink('Text [')
|
|
799
|
+
* // Returns: 'Text '
|
|
800
|
+
* // Removes trailing standalone [ without content
|
|
801
|
+
*
|
|
802
|
+
* @example
|
|
803
|
+
* fixLink('Text [\n')
|
|
804
|
+
* // Returns: 'Text '
|
|
805
|
+
* // Removes trailing standalone bracket and trailing newline
|
|
703
806
|
*/
|
|
704
807
|
declare function fixLink(content: string): string;
|
|
705
808
|
//#endregion
|
|
@@ -765,7 +868,6 @@ declare function fixTaskList(content: string): string;
|
|
|
765
868
|
//#endregion
|
|
766
869
|
//#region src/preprocess/vendored/markdown-utils.d.ts
|
|
767
870
|
declare function preprocessLaTeX(content: string): string;
|
|
768
|
-
declare function preprocessThinkTag(content: string): string;
|
|
769
871
|
//#endregion
|
|
770
872
|
//#region src/preprocess/pattern.d.ts
|
|
771
873
|
declare const crlfPattern: RegExp;
|
|
@@ -783,6 +885,13 @@ declare const doubleDollarPattern: RegExp;
|
|
|
783
885
|
declare const incompleteBracketPattern: RegExp;
|
|
784
886
|
declare const incompleteLinkTextPattern: RegExp;
|
|
785
887
|
declare const incompleteUrlPattern: RegExp;
|
|
888
|
+
declare const incompleteFootnoteRefPattern: RegExp;
|
|
889
|
+
declare const trailingStandaloneBracketPattern: RegExp;
|
|
890
|
+
declare const footnoteDefPattern: RegExp;
|
|
891
|
+
declare const footnoteRefPattern: RegExp;
|
|
892
|
+
declare const footnoteDefLinePattern: RegExp;
|
|
893
|
+
declare const footnoteDefLabelPattern: RegExp;
|
|
894
|
+
declare const footnoteRefLabelPattern: RegExp;
|
|
786
895
|
declare const tableRowPattern: RegExp;
|
|
787
896
|
declare const separatorPattern: RegExp;
|
|
788
897
|
declare const standaloneDashPattern: RegExp;
|
|
@@ -801,6 +910,7 @@ declare function transformUrl(url: unknown, allowedPrefixes: string[], defaultOr
|
|
|
801
910
|
//#region src/utils/helper.d.ts
|
|
802
911
|
declare function flow<T>(fns: Array<(arg: T) => T>): (arg: T) => T;
|
|
803
912
|
declare function save(filename: string, content: string | Blob, mimeType: string): void;
|
|
913
|
+
declare function saveImage(url: string, alt?: string): Promise<void>;
|
|
804
914
|
declare function svgToPngBlob(svgString: string, options?: {
|
|
805
915
|
scale?: number;
|
|
806
916
|
}): Promise<Blob>;
|
|
@@ -832,4 +942,4 @@ declare function tableDataToTSV(data: TableData): string;
|
|
|
832
942
|
declare function escapeMarkdownTableCell(cell: string): string;
|
|
833
943
|
declare function tableDataToMarkdown(data: TableData): string;
|
|
834
944
|
//#endregion
|
|
835
|
-
export { BlockquoteNode, BlockquoteNodeRendererProps, BreakNode, BreakNodeRendererProps, CODE_PREVIEWERS,
|
|
945
|
+
export { BlockquoteNode, BlockquoteNodeRendererProps, BreakNode, BreakNodeRendererProps, CODE_PREVIEWERS, CodeControlsConfig, CodeNode, CodeNodeRendererProps, CodeOptions, CodeOptionsLanguage, ControlsConfig, DEFAULT_DARK_THEME, DEFAULT_HARDEN_OPTIONS, DEFAULT_LIGHT_THEME, DefinitionNode, DefinitionNodeRendererProps, DeleteNode, DeleteNodeRendererProps, EmphasisNode, EmphasisNodeRendererProps, FootnoteDefinitionNode, FootnoteDefinitionNodeRendererProps, FootnoteReferenceNode, FootnoteReferenceNodeRendererProps, HardenOptions, HeadingNode, HeadingNodeRendererProps, HtmlNode, HtmlNodeRendererProps, ICONS, IconName, ImageControlsConfig, ImageNode, ImageNodeRendererProps, ImageOptions, ImageReferenceNode, ImageReferenceNodeRendererProps, InlineCodeNode, InlineCodeNodeRendererProps, InlineMathNode, InlineMathNodeRendererProps, KatexOptions, LANGUAGE_ALIAS, LANGUAGE_EXTENSIONS, LANGUAGE_ICONS, LinkNode, LinkNodeRendererProps, LinkReferenceNode, LinkReferenceNodeRendererProps, ListItemNode, ListItemNodeRendererProps, ListNode, ListNodeRendererProps, LocaleConfig, _default as Markdown, MarkdownParser, MarkdownParserOptions, MathNode, MathNodeRendererProps, MdastOptions, MermaidOptions, NODE_RENDERERS, NodeRendererListProps, NodeRendererProps, NodeRenderers, NodeType, Options, ParagraphNode, ParagraphNodeRendererProps, ParsedNode, PreviewerConfig, SHADCN_SCHEMAS, SUPPORT_LANGUAGES, SelectItem, ShikiOptions, StreamMarkdownContext, StreamMarkdownProps, StrongNode, StrongNodeRendererProps, SyntaxTree, TableCellNode, TableCellNodeRendererProps, TableControlsConfig, TableData, TableNode, TableNodeRendererProps, TableRowNode, TableRowNodeRendererProps, TextNode, TextNodeRendererProps, ThematicBreakNode, ThematicBreakNodeRendererProps, UI, YamlNode, YamlNodeRendererProps, ZoomControlPosition, ZoomControlsConfig, 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 };
|