@aiquants/markdown 12.2.3 → 12.3.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.
- package/README.md +113 -16
- package/dist/{abnfDiagram-VRR7QNED-DQ52KUbH.js → abnfDiagram-VRR7QNED-B_QmXzWv.js} +3 -3
- package/dist/{abnfDiagram-VRR7QNED-1fn6qV_P.cjs → abnfDiagram-VRR7QNED-Crz-ChMJ.cjs} +1 -1
- package/dist/{arc-D9kg3f8-.js → arc-BKGy6Me1.js} +32 -32
- package/dist/{arc-D8xGHwLe.cjs → arc-CYJCyviq.cjs} +1 -1
- package/dist/{architectureDiagram-ZJ3FMSHR-Cc9gQRX2.js → architectureDiagram-ZJ3FMSHR-CEb923Bc.js} +123 -123
- package/dist/{architectureDiagram-ZJ3FMSHR-C4QxQA-o.cjs → architectureDiagram-ZJ3FMSHR-gTB8pttO.cjs} +1 -1
- package/dist/{blockDiagram-677ZJIJ3-DIpIE77y.js → blockDiagram-677ZJIJ3-CmKMdhaS.js} +166 -166
- package/dist/{blockDiagram-677ZJIJ3-BCgCtZXM.cjs → blockDiagram-677ZJIJ3-D7RRzjUx.cjs} +1 -1
- package/dist/{c4Diagram-LMCZKHZV-jgR25uUP.js → c4Diagram-LMCZKHZV-CG6fvZQo.js} +2 -2
- package/dist/{c4Diagram-LMCZKHZV-q0iHoZqg.cjs → c4Diagram-LMCZKHZV-W7Qa-ecL.cjs} +1 -1
- package/dist/{channel-DuWQwUVP.cjs → channel-BKoPLS2j.cjs} +1 -1
- package/dist/{channel-Bw3o-12p.js → channel-TsF8sms_.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-0amJDSXB.js → chunk-2Q5K7J3B-CopwR1m3.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-gCP3NILS.cjs → chunk-2Q5K7J3B-DgtYKcDs.cjs} +1 -1
- package/dist/{chunk-32BRIVSS-BMqTi8UH.js → chunk-32BRIVSS-BnNlhc1M.js} +1 -1
- package/dist/{chunk-32BRIVSS-PidRQo43.cjs → chunk-32BRIVSS-D-6GBFtx.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-EGE3VaH8.js → chunk-5VM5RSS4-O28FGAOF.js} +1 -1
- package/dist/{chunk-5VM5RSS4-C0OtlojA.cjs → chunk-5VM5RSS4-lKwSmIqG.cjs} +1 -1
- package/dist/{chunk-EX3LRPZG-wasnZ2h7.js → chunk-EX3LRPZG-C36gZH3_.js} +26 -26
- package/dist/{chunk-EX3LRPZG-4qSuVZkz.cjs → chunk-EX3LRPZG-CtFe4olX.cjs} +1 -1
- package/dist/{chunk-JWPE2WC7-CHK_g5p5.cjs → chunk-JWPE2WC7-5sd39cpa.cjs} +1 -1
- package/dist/{chunk-JWPE2WC7-O891tu2Q.js → chunk-JWPE2WC7-DG0ebjV4.js} +1 -1
- package/dist/{chunk-MOJQB5TN-BSfpWEVd.cjs → chunk-MOJQB5TN-DADVbG98.cjs} +1 -1
- package/dist/{chunk-MOJQB5TN-BzuZr6pz.js → chunk-MOJQB5TN-nqR_swpx.js} +15 -15
- package/dist/{chunk-PUDLZKDR-DNbm7Xzd.cjs → chunk-PUDLZKDR-BUSFO-Gx.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-BRL3efwE.js → chunk-PUDLZKDR-CD96jce3.js} +13 -13
- package/dist/{chunk-RYQCIY6F-B_33Thwg.cjs → chunk-RYQCIY6F-BBTBydZd.cjs} +1 -1
- package/dist/{chunk-RYQCIY6F-DwmsCCiA.js → chunk-RYQCIY6F-DJkrr1sD.js} +5 -5
- package/dist/{chunk-V7JOEXUC-BowEdIo-.cjs → chunk-V7JOEXUC-BzCaDGop.cjs} +1 -1
- package/dist/{chunk-V7JOEXUC-D0oynREN.js → chunk-V7JOEXUC-eBy2sAXD.js} +15 -15
- package/dist/{chunk-VR4S4FIN-Dg_3SNs1.js → chunk-VR4S4FIN-C-qPzUSR.js} +3 -3
- package/dist/{chunk-VR4S4FIN-Ca3mlCgX.cjs → chunk-VR4S4FIN-CHKLwvYh.cjs} +1 -1
- package/dist/{chunk-XXDRQBXY-Byo5u3b_.js → chunk-XXDRQBXY-BK6HOWf6.js} +1 -1
- package/dist/{chunk-XXDRQBXY-CeZMmeIi.cjs → chunk-XXDRQBXY-DttkP7wv.cjs} +1 -1
- package/dist/{classDiagram-OUVF2IWQ-DPzttpgE.cjs → classDiagram-OUVF2IWQ-BKruajP_.cjs} +1 -1
- package/dist/{classDiagram-v2-EOCWNBFH-CVu4_B8x.js → classDiagram-OUVF2IWQ-CPDmG5kI.js} +2 -2
- package/dist/{classDiagram-v2-EOCWNBFH-DPzttpgE.cjs → classDiagram-v2-EOCWNBFH-BKruajP_.cjs} +1 -1
- package/dist/{classDiagram-OUVF2IWQ-CVu4_B8x.js → classDiagram-v2-EOCWNBFH-CPDmG5kI.js} +2 -2
- package/dist/components/CopyButton.d.ts +9 -0
- package/dist/components/HostedScrollArea.d.ts +2 -1
- package/dist/components/MarkdownRenderer.d.ts +7 -2
- package/dist/components/MarkdownViewer.d.ts +5 -3
- package/dist/components/SpreadsheetBlock.d.ts +3 -2
- package/dist/components/codeBlockLabels.d.ts +9 -0
- package/dist/components/cssLength.d.ts +1 -0
- package/dist/components/displayMathLabels.d.ts +11 -0
- package/dist/components/mathRendering.d.ts +3 -1
- package/dist/components/mdastNodes/CodeNode.d.ts +3 -1
- package/dist/components/mdastNodes/MathNode.d.ts +6 -5
- package/dist/components/ownPixels.d.ts +3 -0
- package/dist/components/toolbarOverlap.d.ts +4 -1
- package/dist/components/viewerLabels.d.ts +11 -1
- package/dist/components/viewerToolbarStyles.d.ts +2 -0
- package/dist/converter.wasm +0 -0
- package/dist/{cose-bilkent-JH36ORCC-BmM-AQ-j.js → cose-bilkent-JH36ORCC-BxO1rjEU.js} +24 -24
- package/dist/{cose-bilkent-JH36ORCC-C3UAMvQQ.cjs → cose-bilkent-JH36ORCC-Cjfa6NyL.cjs} +1 -1
- package/dist/{cynefinDiagram-TSTJHNR4-DStGofoE.cjs → cynefinDiagram-TSTJHNR4-B3boTACW.cjs} +1 -1
- package/dist/{cynefinDiagram-TSTJHNR4-iS4n-7T_.js → cynefinDiagram-TSTJHNR4-DBD-B_Un.js} +60 -60
- package/dist/{dagre-VKFMJZFB-C1Y6S6Dm.js → dagre-VKFMJZFB-B8vZCPJg.js} +17 -17
- package/dist/{dagre-VKFMJZFB-BXsQ5-Ek.cjs → dagre-VKFMJZFB-DF3Mvuas.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-CRXs7mU1.cjs → diagram-FQU43EPY-DwhEcKWF.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-CFG9AlAq.js → diagram-FQU43EPY-YrRTNuX-.js} +36 -36
- package/dist/{diagram-G47NLZAW-BaX-jrfs.cjs → diagram-G47NLZAW-CKIEbGLS.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-Bqr76Qn5.js → diagram-G47NLZAW-D4vmirJw.js} +51 -51
- package/dist/{diagram-NH7WQ7WH-Cczq2y99.cjs → diagram-NH7WQ7WH-D6wMwkLQ.cjs} +1 -1
- package/dist/{diagram-NH7WQ7WH-BDWfQ8xs.js → diagram-NH7WQ7WH-Drekwiur.js} +10 -10
- package/dist/{diagram-OA4YK3LP-DuW90Uhk.js → diagram-OA4YK3LP-DZsM4Fpo.js} +21 -21
- package/dist/{diagram-OA4YK3LP-uBVV8yBB.cjs → diagram-OA4YK3LP-DeJ7pMIO.cjs} +1 -1
- package/dist/{diagram-WEI45ONY-Cd3qe8Wi.js → diagram-WEI45ONY-CjRbsbkF.js} +32 -32
- package/dist/{diagram-WEI45ONY-C_L-4kui.cjs → diagram-WEI45ONY-SYHw7k8b.cjs} +1 -1
- package/dist/{ebnfDiagram-CCIWWBDH-Cg7DTSlM.cjs → ebnfDiagram-CCIWWBDH-23bjk9FU.cjs} +1 -1
- package/dist/{ebnfDiagram-CCIWWBDH-CMmTdVTT.js → ebnfDiagram-CCIWWBDH-D0kt5Zdu.js} +3 -3
- package/dist/{erDiagram-Q63AITRT-tOZoI25O.js → erDiagram-Q63AITRT-Ce4GpK2Z.js} +7 -7
- package/dist/{erDiagram-Q63AITRT-ONnVKrzr.cjs → erDiagram-Q63AITRT-DqFANbZx.cjs} +1 -1
- package/dist/{extractHeadings-3qWVTkb9.js → extractHeadings-DlQcPv5N.js} +8033 -7962
- package/dist/extractHeadings-wWAipplS.cjs +315 -0
- package/dist/flowDiagram-23GEKE2U-CRC9U6qD.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-CRo7TM3K.js +7 -0
- package/dist/{ganttDiagram-NO4QXBWP-CHP_muri.cjs → ganttDiagram-NO4QXBWP-CR55KG5d.cjs} +1 -1
- package/dist/{ganttDiagram-NO4QXBWP-C23vm5cK.js → ganttDiagram-NO4QXBWP-DjpANtqX.js} +2 -2
- package/dist/{gitGraphDiagram-IHSO6WYX-DOH3WBNZ.cjs → gitGraphDiagram-IHSO6WYX-BWYUn1Bi.cjs} +1 -1
- package/dist/{gitGraphDiagram-IHSO6WYX-BXWses91.js → gitGraphDiagram-IHSO6WYX-DzhnsGXo.js} +24 -24
- package/dist/index.cjs +1 -1
- package/dist/index.client.cjs +1 -1
- package/dist/index.client.d.ts +3 -1
- package/dist/index.client.js +50 -48
- package/dist/index.js +50 -48
- package/dist/{infoDiagram-FWYZ7A6U-Bj2fnr5Y.cjs → infoDiagram-FWYZ7A6U-CsUGc58_.cjs} +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-C4NsbHAN.js → infoDiagram-FWYZ7A6U-hraoyboI.js} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-Cjqwv-T2.cjs → ishikawaDiagram-FXEZZL3T-D5b25aDN.cjs} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-B2bMsFnl.js → ishikawaDiagram-FXEZZL3T-cBJei3wJ.js} +32 -32
- package/dist/{journeyDiagram-5HDEW3XC-DfRiiYRf.cjs → journeyDiagram-5HDEW3XC-DrNyUSsx.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-DO1Xx-OE.js → journeyDiagram-5HDEW3XC-IkQqMl8f.js} +28 -28
- package/dist/{kanban-definition-HUTT4EX6-Cu_E-BJj.cjs → kanban-definition-HUTT4EX6-CvBgN3eX.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-RfpoaM17.js → kanban-definition-HUTT4EX6-D2UL88Cz.js} +46 -46
- package/dist/{linear-BbWOUIQi.js → linear-BiJV9gYf.js} +10 -10
- package/dist/{linear-Cz3x9Lkl.cjs → linear-DwqXGYLc.cjs} +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-CB606E3L.cjs → mindmap-definition-LN4V7U3C-CBrUse7P.cjs} +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-B5LpvJ9m.js → mindmap-definition-LN4V7U3C-CK67hf6V.js} +11 -11
- package/dist/{pegDiagram-2B236MQR-BCqBc3Re.cjs → pegDiagram-2B236MQR-C5pLIpKI.cjs} +1 -1
- package/dist/{pegDiagram-2B236MQR-DaosueJV.js → pegDiagram-2B236MQR-CwWX4Irn.js} +3 -3
- package/dist/{pieDiagram-ENE6RG2P-BUY2Dvjo.cjs → pieDiagram-ENE6RG2P-BKvggS7k.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-wfsOfWyT.js → pieDiagram-ENE6RG2P-MO42pSl8.js} +68 -68
- package/dist/{quadrantDiagram-ABIIQ3AL-BSvHqsTp.cjs → quadrantDiagram-ABIIQ3AL-BHhoAvLS.cjs} +1 -1
- package/dist/{quadrantDiagram-ABIIQ3AL-Bgc3vspL.js → quadrantDiagram-ABIIQ3AL-CzHgLdS3.js} +7 -7
- package/dist/{railroadDiagram-RFXS5EU6-Du2CFU9M.js → railroadDiagram-RFXS5EU6-Bu_Fhi5x.js} +3 -3
- package/dist/{railroadDiagram-RFXS5EU6-DdF2c_n3.cjs → railroadDiagram-RFXS5EU6-CwGmOFD_.cjs} +1 -1
- package/dist/{requirementDiagram-TGXJPOKE-WM3sItRw.cjs → requirementDiagram-TGXJPOKE-BhdvQnjG.cjs} +1 -1
- package/dist/{requirementDiagram-TGXJPOKE-CnafqSUP.js → requirementDiagram-TGXJPOKE-CY-JYM-P.js} +18 -18
- package/dist/{sankeyDiagram-HTMAVEWB-D4Qv4d98.js → sankeyDiagram-HTMAVEWB-BmHtjxlW.js} +10 -10
- package/dist/{sankeyDiagram-HTMAVEWB-DaZN3ZDb.cjs → sankeyDiagram-HTMAVEWB-CUeYKZeQ.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-CmP6XGGE.js → sequenceDiagram-DBY2YBRQ-Cn2CC9BC.js} +47 -47
- package/dist/{sequenceDiagram-DBY2YBRQ-C6fa7Axs.cjs → sequenceDiagram-DBY2YBRQ-GepntdDB.cjs} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-mWZkTwA5.js → sizeCapture-X5ZJPWSS-CZF99dy_.js} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-B6sRQba9.cjs → sizeCapture-X5ZJPWSS-Cd-k8xwk.cjs} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-ClDZKhLD.js → stateDiagram-2N3HPSRC-CCbBvBua.js} +18 -18
- package/dist/{stateDiagram-2N3HPSRC-B__29zPZ.cjs → stateDiagram-2N3HPSRC-D2cvrAtN.cjs} +1 -1
- package/dist/{stateDiagram-v2-6OUMAXLB-BA-_ovVY.cjs → stateDiagram-v2-6OUMAXLB-BaktPIVY.cjs} +1 -1
- package/dist/{stateDiagram-v2-6OUMAXLB-K7slPgH_.js → stateDiagram-v2-6OUMAXLB-_A1QESxx.js} +2 -2
- package/dist/styles/markdown.css +1 -1
- package/dist/styles/markdown.standalone.css +1 -1
- package/dist/{swimlanes-5IMT3BWC-Cpowlk7O.js → swimlanes-5IMT3BWC-B-BDM_Ae.js} +3 -3
- package/dist/{swimlanes-5IMT3BWC-BhxZhB7M.cjs → swimlanes-5IMT3BWC-DtdLK5z3.cjs} +1 -1
- package/dist/{swimlanesDiagram-G3AALYLV-36K4ynZn.js → swimlanesDiagram-G3AALYLV-BysT2rWl.js} +2 -2
- package/dist/{swimlanesDiagram-G3AALYLV-BZ0eguZa.cjs → swimlanesDiagram-G3AALYLV-DZuQxKuB.cjs} +1 -1
- package/dist/{timeline-definition-FHXFAJF6-C2xHtlkw.js → timeline-definition-FHXFAJF6-DVzdzbl1.js} +58 -58
- package/dist/{timeline-definition-FHXFAJF6-BJN69nkZ.cjs → timeline-definition-FHXFAJF6-oFf_sUOI.cjs} +1 -1
- package/dist/utils/promiseTry.d.ts +1 -0
- package/dist/{vennDiagram-L72KCM5P-3R1vuMWd.cjs → vennDiagram-L72KCM5P-Ba2FGeN1.cjs} +1 -1
- package/dist/{vennDiagram-L72KCM5P-DbqRaWm5.js → vennDiagram-L72KCM5P-Bm1TGZux.js} +146 -146
- package/dist/{wardleyDiagram-EHGQE667-CF5I0pM9.js → wardleyDiagram-EHGQE667-BC_1RAbp.js} +32 -32
- package/dist/{wardleyDiagram-EHGQE667-CyU76ilz.cjs → wardleyDiagram-EHGQE667-CqB3gLCH.cjs} +1 -1
- package/dist/{xychartDiagram-FW5EYKEG-spkx-w6w.js → xychartDiagram-FW5EYKEG-ClITdEhV.js} +47 -47
- package/dist/{xychartDiagram-FW5EYKEG-DaKE_uIg.cjs → xychartDiagram-FW5EYKEG-a1vb5UxD.cjs} +1 -1
- package/package.json +10 -11
- package/dist/extractHeadings-DpvwXCio.cjs +0 -315
- package/dist/flowDiagram-23GEKE2U-DfDAl_qd.cjs +0 -1
- package/dist/flowDiagram-23GEKE2U-p6ccACf3.js +0 -7
|
@@ -5,7 +5,9 @@ export type MarkdownMathDiagnostic = {
|
|
|
5
5
|
readonly displayMode: boolean;
|
|
6
6
|
};
|
|
7
7
|
export type RenderedMath = {
|
|
8
|
-
readonly
|
|
8
|
+
readonly innerHtml: {
|
|
9
|
+
readonly __html: string;
|
|
10
|
+
};
|
|
9
11
|
readonly diagnostics: readonly MarkdownMathDiagnostic[];
|
|
10
12
|
};
|
|
11
13
|
export declare const renderMath: (formula: string, displayMode: boolean) => RenderedMath;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
import { CodeBlockLabels } from "../codeBlockLabels.ts";
|
|
1
2
|
export declare const resolveCodeLanguage: (lang: string) => string;
|
|
2
3
|
type CodeNodeProps = {
|
|
3
4
|
lang?: string;
|
|
4
5
|
code?: string;
|
|
5
6
|
theme?: "light" | "dark";
|
|
6
7
|
sourceLines?: string;
|
|
8
|
+
labels?: CodeBlockLabels;
|
|
7
9
|
node?: {
|
|
8
10
|
lang?: string | null;
|
|
9
11
|
meta?: string | null;
|
|
10
12
|
value: string;
|
|
11
13
|
};
|
|
12
14
|
};
|
|
13
|
-
export declare const CodeNode: ({ lang: langProp, code, node, sourceLines }: CodeNodeProps) => import("react").JSX.Element;
|
|
15
|
+
export declare const CodeNode: ({ lang: langProp, code, node, sourceLines, labels }: CodeNodeProps) => import("react").JSX.Element;
|
|
14
16
|
export {};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { RootContentMap } from "mdast";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
|
|
4
|
-
code: string;
|
|
5
|
-
}) => import("react").JSX.Element;
|
|
3
|
+
import { ResolvedDisplayMathLabels } from "../displayMathLabels.ts";
|
|
6
4
|
export type DisplayMathPlacement = "flow" | "block";
|
|
7
|
-
export declare const DisplayMathFrame: ({ source, placement, children }: {
|
|
5
|
+
export declare const DisplayMathFrame: ({ source, placement, labels, children }: {
|
|
8
6
|
readonly source: string;
|
|
9
7
|
readonly placement: DisplayMathPlacement;
|
|
8
|
+
readonly labels: ResolvedDisplayMathLabels;
|
|
10
9
|
readonly children: ReactNode;
|
|
11
10
|
}) => import("react").JSX.Element;
|
|
12
11
|
type MdastMathMarkup = {
|
|
13
12
|
readonly kind: "rendered";
|
|
14
|
-
readonly
|
|
13
|
+
readonly innerHtml: {
|
|
14
|
+
readonly __html: string;
|
|
15
|
+
};
|
|
15
16
|
} | {
|
|
16
17
|
readonly kind: "failed";
|
|
17
18
|
readonly error: unknown;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const TOOLBAR_BLOCK_OVERLAP_PROPERTY = "--aqmd-toolbar-block-overlap";
|
|
2
|
+
export declare const TOOLBAR_BLOCK_REACH_PX_PROPERTY = "--aqmd-toolbar-block-reach-px";
|
|
2
3
|
type Box = Readonly<{
|
|
3
4
|
top: number;
|
|
4
5
|
bottom: number;
|
|
@@ -12,6 +13,8 @@ export interface ToolbarBlockOverlapInput {
|
|
|
12
13
|
readonly content: Pick<Box, "left" | "right">;
|
|
13
14
|
readonly scrollportTop: number;
|
|
14
15
|
readonly scrollportBottom: number;
|
|
16
|
+
readonly scale: number;
|
|
17
|
+
readonly reach: number;
|
|
15
18
|
}
|
|
16
|
-
export declare const toolbarBlockOverlapOf: ({ toolbar, content, scrollportTop, scrollportBottom }: ToolbarBlockOverlapInput) => number;
|
|
19
|
+
export declare const toolbarBlockOverlapOf: ({ toolbar, content, scrollportTop, scrollportBottom, scale, reach }: ToolbarBlockOverlapInput) => number;
|
|
17
20
|
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CodeBlockLabelKey, CodeBlockLabels } from "./codeBlockLabels.ts";
|
|
2
|
+
import { DisplayMathLabelKey, DisplayMathLabels } from "./displayMathLabels.ts";
|
|
1
3
|
import { MarkdownEmbedLabels } from "./embeds/embedLabels.ts";
|
|
2
4
|
import { ResolvedLabel } from "./labels.ts";
|
|
3
5
|
import { MermaidDiagramLabelKey, MermaidDiagramLabels } from "./mermaidLabels.ts";
|
|
@@ -13,7 +15,13 @@ type SpreadsheetViewerLabelKey = keyof SpreadsheetViewerLabels;
|
|
|
13
15
|
export type SvgImageViewerLabels = {
|
|
14
16
|
[K in SvgImageLabelKey as `svgImage${Capitalize<K>}`]?: string;
|
|
15
17
|
};
|
|
16
|
-
export
|
|
18
|
+
export type CodeBlockViewerLabels = {
|
|
19
|
+
[K in CodeBlockLabelKey as `codeBlock${Capitalize<K>}`]?: string;
|
|
20
|
+
};
|
|
21
|
+
export type DisplayMathViewerLabels = {
|
|
22
|
+
[K in DisplayMathLabelKey as `displayMath${Capitalize<K>}`]?: string;
|
|
23
|
+
};
|
|
24
|
+
export interface MarkdownViewerLabels extends MermaidViewerLabels, SpreadsheetViewerLabels, SvgImageViewerLabels, CodeBlockViewerLabels, DisplayMathViewerLabels, MarkdownEmbedLabels {
|
|
17
25
|
loading?: string;
|
|
18
26
|
errorPrefix?: string;
|
|
19
27
|
defaultErrorTitle?: string;
|
|
@@ -43,5 +51,7 @@ export declare const resolveViewerLabels: (labels: MarkdownViewerLabels | undefi
|
|
|
43
51
|
export declare const toMermaidDiagramLabels: (labels: MarkdownViewerLabels | undefined) => MermaidDiagramLabels;
|
|
44
52
|
export declare const toSpreadsheetBlockLabels: (labels: MarkdownViewerLabels | undefined) => SpreadsheetBlockLabels;
|
|
45
53
|
export declare const toSvgImageLabels: (labels: MarkdownViewerLabels | undefined) => SvgImageLabels;
|
|
54
|
+
export declare const toCodeBlockLabels: (labels: MarkdownViewerLabels | undefined) => CodeBlockLabels;
|
|
55
|
+
export declare const toDisplayMathLabels: (labels: MarkdownViewerLabels | undefined) => DisplayMathLabels;
|
|
46
56
|
export declare const toMarkdownEmbedLabels: (labels: MarkdownEmbedLabels | undefined) => MarkdownEmbedLabels;
|
|
47
57
|
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const TOOLBAR_BUTTON_CLASS_NAME = "pointer-events-auto rounded-full border border-gray-200 bg-white p-3 shadow-lg transition-colors hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:hover:bg-gray-700";
|
|
2
|
+
export declare const TOOLBAR_BUTTON_ICON_CLASS_NAME = "h-5 w-5 text-gray-600 dark:text-gray-300";
|
package/dist/converter.wasm
CHANGED
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bP as lt, _ as V, W as k, V as gt } from "./extractHeadings-DlQcPv5N.js";
|
|
2
2
|
import { c as tt } from "./cytoscape.esm-kVAWcYoG.js";
|
|
3
3
|
var Z = { exports: {} }, $ = { exports: {} }, Q = { exports: {} }, ut = Q.exports, j;
|
|
4
4
|
function ft() {
|
|
@@ -646,22 +646,22 @@ function ft() {
|
|
|
646
646
|
if (g < d)
|
|
647
647
|
return l[0] = p, l[1] = n, l[2] = O, l[3] = r, !1;
|
|
648
648
|
} else {
|
|
649
|
-
var S = t.height / t.width, Y = i.height / i.width, w = (r - n) / (d - g), x = void 0, F = void 0,
|
|
649
|
+
var S = t.height / t.width, Y = i.height / i.width, w = (r - n) / (d - g), x = void 0, F = void 0, P = void 0, U = void 0, _ = void 0, X = void 0;
|
|
650
650
|
if (-S === w ? g > d ? (l[0] = v, l[1] = D, R = !0) : (l[0] = p, l[1] = a, R = !0) : S === w && (g > d ? (l[0] = h, l[1] = a, R = !0) : (l[0] = u, l[1] = D, R = !0)), -Y === w ? d > g ? (l[2] = c, l[3] = E, M = !0) : (l[2] = f, l[3] = s, M = !0) : Y === w && (d > g ? (l[2] = O, l[3] = s, M = !0) : (l[2] = A, l[3] = E, M = !0)), R && M)
|
|
651
651
|
return !1;
|
|
652
652
|
if (g > d ? n > r ? (x = this.getCardinalDirection(S, w, 4), F = this.getCardinalDirection(Y, w, 2)) : (x = this.getCardinalDirection(-S, w, 3), F = this.getCardinalDirection(-Y, w, 1)) : n > r ? (x = this.getCardinalDirection(-S, w, 1), F = this.getCardinalDirection(-Y, w, 3)) : (x = this.getCardinalDirection(S, w, 2), F = this.getCardinalDirection(Y, w, 4)), !R)
|
|
653
653
|
switch (x) {
|
|
654
654
|
case 1:
|
|
655
|
-
|
|
655
|
+
U = a, P = g + -y / w, l[0] = P, l[1] = U;
|
|
656
656
|
break;
|
|
657
657
|
case 2:
|
|
658
|
-
|
|
658
|
+
P = u, U = n + T * w, l[0] = P, l[1] = U;
|
|
659
659
|
break;
|
|
660
660
|
case 3:
|
|
661
|
-
|
|
661
|
+
U = D, P = g + y / w, l[0] = P, l[1] = U;
|
|
662
662
|
break;
|
|
663
663
|
case 4:
|
|
664
|
-
|
|
664
|
+
P = v, U = n + -T * w, l[0] = P, l[1] = U;
|
|
665
665
|
break;
|
|
666
666
|
}
|
|
667
667
|
if (!M)
|
|
@@ -1902,14 +1902,14 @@ function pt() {
|
|
|
1902
1902
|
w = w.concat(s.getEdges());
|
|
1903
1903
|
var x = w.length;
|
|
1904
1904
|
f != null && x--;
|
|
1905
|
-
for (var F = 0,
|
|
1905
|
+
for (var F = 0, P = w.length, U, _ = s.getEdgesBetween(f); _.length > 1; ) {
|
|
1906
1906
|
var X = _[0];
|
|
1907
1907
|
_.splice(0, 1);
|
|
1908
1908
|
var H = w.indexOf(X);
|
|
1909
|
-
H >= 0 && w.splice(H, 1),
|
|
1909
|
+
H >= 0 && w.splice(H, 1), P--, x--;
|
|
1910
1910
|
}
|
|
1911
|
-
f != null ?
|
|
1912
|
-
for (var W = Math.abs(E - c) / x, B =
|
|
1911
|
+
f != null ? U = (w.indexOf(_[0]) + 1) % P : U = 0;
|
|
1912
|
+
for (var W = Math.abs(E - c) / x, B = U; F != x; B = ++B % P) {
|
|
1913
1913
|
var K = w[B].getOtherEnd(s);
|
|
1914
1914
|
if (K != f) {
|
|
1915
1915
|
var q = (c + F * W) % 360, ht = (q + W) % 360;
|
|
@@ -1943,9 +1943,9 @@ function pt() {
|
|
|
1943
1943
|
w.id = S, w.paddingLeft = Y.paddingLeft || 0, w.paddingRight = Y.paddingRight || 0, w.paddingBottom = Y.paddingBottom || 0, w.paddingTop = Y.paddingTop || 0, s.idToDummyNode[S] = w;
|
|
1944
1944
|
var x = s.getGraphManager().add(s.newGraph(), w), F = Y.getChild();
|
|
1945
1945
|
F.add(w);
|
|
1946
|
-
for (var
|
|
1947
|
-
var
|
|
1948
|
-
F.remove(
|
|
1946
|
+
for (var P = 0; P < f[M].length; P++) {
|
|
1947
|
+
var U = f[M][P];
|
|
1948
|
+
F.remove(U), x.add(U);
|
|
1949
1949
|
}
|
|
1950
1950
|
}
|
|
1951
1951
|
});
|
|
@@ -2131,14 +2131,14 @@ function pt() {
|
|
|
2131
2131
|
if (A > 0)
|
|
2132
2132
|
for (var F = C; F <= R; F++)
|
|
2133
2133
|
x[3] += this.grid[A - 1][F].length + this.grid[A][F].length - 1;
|
|
2134
|
-
for (var
|
|
2135
|
-
x[X] <
|
|
2136
|
-
if (
|
|
2134
|
+
for (var P = v.MAX_VALUE, U, _, X = 0; X < x.length; X++)
|
|
2135
|
+
x[X] < P ? (P = x[X], U = 1, _ = X) : x[X] == P && U++;
|
|
2136
|
+
if (U == 3 && P == 0)
|
|
2137
2137
|
x[0] == 0 && x[1] == 0 && x[2] == 0 ? f = 1 : x[0] == 0 && x[1] == 0 && x[3] == 0 ? f = 0 : x[0] == 0 && x[2] == 0 && x[3] == 0 ? f = 3 : x[1] == 0 && x[2] == 0 && x[3] == 0 && (f = 2);
|
|
2138
|
-
else if (
|
|
2138
|
+
else if (U == 2 && P == 0) {
|
|
2139
2139
|
var H = Math.floor(Math.random() * 2);
|
|
2140
2140
|
x[0] == 0 && x[1] == 0 ? H == 0 ? f = 0 : f = 1 : x[0] == 0 && x[2] == 0 ? H == 0 ? f = 0 : f = 2 : x[0] == 0 && x[3] == 0 ? H == 0 ? f = 0 : f = 3 : x[1] == 0 && x[2] == 0 ? H == 0 ? f = 1 : f = 2 : x[1] == 0 && x[3] == 0 ? H == 0 ? f = 1 : f = 3 : H == 0 ? f = 2 : f = 3;
|
|
2141
|
-
} else if (
|
|
2141
|
+
} else if (U == 4 && P == 0) {
|
|
2142
2142
|
var H = Math.floor(Math.random() * 4);
|
|
2143
2143
|
f = H;
|
|
2144
2144
|
} else
|
|
@@ -2304,24 +2304,24 @@ function vt() {
|
|
|
2304
2304
|
}
|
|
2305
2305
|
var M = function(w, x) {
|
|
2306
2306
|
typeof w == "number" && (w = x);
|
|
2307
|
-
var F = w.data("id"),
|
|
2307
|
+
var F = w.data("id"), P = O.idToLNode[F];
|
|
2308
2308
|
return {
|
|
2309
|
-
x:
|
|
2310
|
-
y:
|
|
2309
|
+
x: P.getRect().getCenterX(),
|
|
2310
|
+
y: P.getRect().getCenterY()
|
|
2311
2311
|
};
|
|
2312
2312
|
}, S = function Y() {
|
|
2313
2313
|
for (var w = function() {
|
|
2314
2314
|
T.fit && T.cy.fit(T.eles, T.padding), D || (D = !0, O.cy.one("layoutready", T.ready), O.cy.trigger({ type: "layoutready", layout: O }));
|
|
2315
|
-
}, x = O.options.refresh, F,
|
|
2315
|
+
}, x = O.options.refresh, F, P = 0; P < x && !F; P++)
|
|
2316
2316
|
F = O.stopped || O.layout.tick();
|
|
2317
2317
|
if (F) {
|
|
2318
2318
|
y.checkLayoutSuccess() && !y.isSubLayout && y.doPostLayout(), y.tilingPostLayout && y.tilingPostLayout(), y.isLayoutFinished = !0, O.options.eles.nodes().positions(M), w(), O.cy.one("layoutstop", O.options.stop), O.cy.trigger({ type: "layoutstop", layout: O }), u && cancelAnimationFrame(u), D = !1;
|
|
2319
2319
|
return;
|
|
2320
2320
|
}
|
|
2321
|
-
var
|
|
2321
|
+
var U = O.layout.getPositionsData();
|
|
2322
2322
|
T.eles.nodes().positions(function(_, X) {
|
|
2323
2323
|
if (typeof _ == "number" && (_ = X), !_.isParent()) {
|
|
2324
|
-
for (var H = _.id(), W =
|
|
2324
|
+
for (var H = _.id(), W = U[H], B = _; W == null && (W = U[B.data("parent")] || U["DummyCompound_" + B.data("parent")], U[H] = W, B = B.parent()[0], B != null); )
|
|
2325
2325
|
;
|
|
2326
2326
|
return W != null ? {
|
|
2327
2327
|
x: W.x,
|