kordoc 4.24.70 → 4.24.71
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 -3
- package/dist/{-JPBHAOIR.js → -F7GLIIGT.js} +21 -21
- package/dist/{chunk-KET32GPP.js → chunk-2CPEW6WC.js} +3 -3
- package/dist/{chunk-R6J7X4ND.js → chunk-2OF2YWIZ.js} +2 -2
- package/dist/{chunk-YY54476T.js → chunk-2VBRCIPI.js} +2 -2
- package/dist/{chunk-FPGY6TH2.js → chunk-5WWGC5SG.js} +2 -2
- package/dist/{chunk-N426QQP6.js → chunk-6ZA4V4QS.js} +2 -2
- package/dist/{chunk-XHBJCOWB.js → chunk-7KVDHXP2.js} +4 -4
- package/dist/{chunk-UMVD6PRZ.js → chunk-AUHQRRKM.js} +3 -3
- package/dist/{chunk-6UNCF3PJ.js → chunk-BHYBZSOC.js} +2 -2
- package/dist/{chunk-XRZERCPJ.cjs → chunk-BNP3WXTB.cjs} +3 -3
- package/dist/{chunk-XRZERCPJ.cjs.map → chunk-BNP3WXTB.cjs.map} +1 -1
- package/dist/{chunk-MU7YOHDK.js → chunk-D4UFBXMT.js} +2 -2
- package/dist/{chunk-JVVTJDJY.js → chunk-DSCT67WF.js} +3 -3
- package/dist/{chunk-MIERFAOB.js → chunk-EZNUMAAJ.js} +2 -2
- package/dist/{chunk-TAATW772.js → chunk-GFAWIBHG.js} +10 -10
- package/dist/{chunk-6PVJCEF7.js → chunk-GRCIFCGC.js} +2 -2
- package/dist/{chunk-EESBEBUC.cjs → chunk-H2VOH7X3.cjs} +82 -54
- package/dist/chunk-H2VOH7X3.cjs.map +1 -0
- package/dist/{chunk-QTRQ4KM3.js → chunk-HIYRMYAS.js} +2 -2
- package/dist/{chunk-LEITYWHM.js → chunk-IMT5TVVM.js} +2 -2
- package/dist/{chunk-VZ2J3654.js → chunk-KGCJNPAI.js} +5 -5
- package/dist/{chunk-Q4DDUA7U.js → chunk-KLUI4SAZ.js} +2 -2
- package/dist/{chunk-3EPX46NF.cjs → chunk-LFTO5QAP.cjs} +2 -2
- package/dist/{chunk-3EPX46NF.cjs.map → chunk-LFTO5QAP.cjs.map} +1 -1
- package/dist/{chunk-ZMPNA2W7.js → chunk-LNWURZ2Z.js} +7 -7
- package/dist/{chunk-N6XPJBIS.js → chunk-M27VBFO6.js} +60 -32
- package/dist/chunk-M27VBFO6.js.map +1 -0
- package/dist/{chunk-6SQF5PAM.js → chunk-MHXPW72E.js} +2 -2
- package/dist/{chunk-G3UCY3T7.js → chunk-NPBNJCXZ.js} +2 -2
- package/dist/{chunk-7CLI2Y6A.js → chunk-O7PJFEOC.js} +2 -2
- package/dist/{chunk-KV5YT6L4.js → chunk-OJK4FLS5.js} +3 -3
- package/dist/{chunk-UD7DB4U3.js → chunk-OUHMNF2A.js} +2 -2
- package/dist/{chunk-A5MTYCTO.cjs → chunk-OW2XKTQA.cjs} +8 -8
- package/dist/{chunk-A5MTYCTO.cjs.map → chunk-OW2XKTQA.cjs.map} +1 -1
- package/dist/{chunk-CVH5PB65.js → chunk-QK5KCWLE.js} +2 -2
- package/dist/{chunk-6T6VP4AQ.js → chunk-RUUUGCXS.js} +6 -6
- package/dist/{chunk-YG42FESS.js → chunk-RWU3Y5YK.js} +15 -15
- package/dist/{chunk-OTIYXYOL.cjs → chunk-SK5AOGYK.cjs} +104 -104
- package/dist/{chunk-OTIYXYOL.cjs.map → chunk-SK5AOGYK.cjs.map} +1 -1
- package/dist/{chunk-VCRBRUCO.js → chunk-SMEBVDM2.js} +5 -5
- package/dist/{chunk-G5YCISXC.js → chunk-T7MHZIFG.js} +61 -33
- package/dist/chunk-T7MHZIFG.js.map +1 -0
- package/dist/{chunk-WVQDRZF5.js → chunk-TYGZ6O2A.js} +11 -11
- package/dist/{chunk-OHSTI6C3.js → chunk-UJQRIX4L.js} +2 -2
- package/dist/{chunk-O2RV2FMS.js → chunk-WMA4GJHC.js} +5 -5
- package/dist/{chunk-7D6KEQNU.cjs → chunk-YISBYF7X.cjs} +58 -58
- package/dist/{chunk-7D6KEQNU.cjs.map → chunk-YISBYF7X.cjs.map} +1 -1
- package/dist/{chunk-JLMNWMZJ.cjs → chunk-YJ2YVG6N.cjs} +88 -88
- package/dist/{chunk-JLMNWMZJ.cjs.map → chunk-YJ2YVG6N.cjs.map} +1 -1
- package/dist/{chunk-ICK4R4HF.js → chunk-YPRIJDH6.js} +2 -2
- package/dist/{chunk-HUKGGV5M.js → chunk-YTDHH362.js} +2 -2
- package/dist/{chunk-NIFJSZR7.cjs → chunk-YTP7FPA5.cjs} +3 -3
- package/dist/{chunk-NIFJSZR7.cjs.map → chunk-YTP7FPA5.cjs.map} +1 -1
- package/dist/{chunk-RTQ2N6DG.js → chunk-ZPJZXTEG.js} +6 -6
- package/dist/chunks-JAD5Z5YY.js +11 -0
- package/dist/cli.js +45 -45
- package/dist/{formula-ESTBYQ67.js → formula-3PJYUQMG.js} +4 -4
- package/dist/{formula-BVDS6XNY.cjs → formula-RTPZD2IM.cjs} +9 -9
- package/dist/{formula-BVDS6XNY.cjs.map → formula-RTPZD2IM.cjs.map} +1 -1
- package/dist/{formula-BJU6ZM3X.js → formula-UJF4RZ6W.js} +3 -3
- package/dist/generator-EB2436BE.js +18 -0
- package/dist/generator-INMUN6KB.cjs +12 -0
- package/dist/{generator-JBGS3C5H.cjs.map → generator-INMUN6KB.cjs.map} +1 -1
- package/dist/generator-K5KMPSLC.js +11 -0
- package/dist/{hancom-YC2LGVBP.cjs → hancom-MVPEYI4X.cjs} +5 -5
- package/dist/{hancom-YC2LGVBP.cjs.map → hancom-MVPEYI4X.cjs.map} +1 -1
- package/dist/{hancom-TE4NLTFM.js → hancom-P3SUQXM4.js} +2 -2
- package/dist/{hancom-FINYE4NT.js → hancom-RYIZHWJ5.js} +2 -2
- package/dist/{image-ocr-TB5QRYYM.js → image-ocr-GL5YVCNU.js} +10 -10
- package/dist/{image-ocr-T77T2NQO.cjs → image-ocr-ZS4EMQN3.cjs} +28 -28
- package/dist/{image-ocr-T77T2NQO.cjs.map → image-ocr-ZS4EMQN3.cjs.map} +1 -1
- package/dist/{image-ocr-L256UYPI.js → image-ocr-ZXLHPQI2.js} +7 -7
- package/dist/index.cjs +1115 -1115
- package/dist/index.js +9 -9
- package/dist/mcp.js +36 -36
- package/dist/memo-JNMSGIO7.js +17 -0
- package/dist/{model-bundle-THGO5EUW.js → model-bundle-VCUAKBF3.js} +5 -5
- package/dist/{models-MKIZDK2U.js → models-UACAGYBI.js} +5 -5
- package/dist/{parse-worker-v2-MGNDWJDE.js → parse-worker-v2-LJB4QXGF.js} +22 -22
- package/dist/{parser-C6EZWRQM.js → parser-5GZUD22P.js} +12 -12
- package/dist/{parser-EULDI5W6.js → parser-HCZD4DUO.js} +9 -9
- package/dist/{parser-IC2X7P2S.cjs → parser-T4HAQ3QW.cjs} +166 -166
- package/dist/{parser-IC2X7P2S.cjs.map → parser-T4HAQ3QW.cjs.map} +1 -1
- package/dist/pdf-ocr-H4DKZSOB.cjs +43 -0
- package/dist/{pdf-ocr-7SNY67NL.cjs.map → pdf-ocr-H4DKZSOB.cjs.map} +1 -1
- package/dist/{pdf-ocr-LQ5SYFCE.js → pdf-ocr-JXVGK5MR.js} +6 -6
- package/dist/{pdf-ocr-4Y6VPEZC.js → pdf-ocr-YCMC2VL4.js} +9 -9
- package/dist/{profile-io-SDJTSIFY.js → profile-io-MVTEOXAU.js} +3 -3
- package/dist/{rasterize-TGFUBV6B.js → rasterize-VWT3C3RW.js} +3 -3
- package/dist/{redact-doc-X5WKER3O.js → redact-doc-SU3JDC6F.js} +21 -21
- package/dist/{render-6KIT7GYL.js → render-D5N4FKWB.js} +12 -12
- package/dist/{rewrite-fallback-ARYCZKU6.js → rewrite-fallback-QXTWSPGY.js} +13 -13
- package/dist/seal-Q3BD6CRB.js +16 -0
- package/dist/{setup-ZEMI2HI4.js → setup-TXNJYX6P.js} +3 -3
- package/dist/to-hwpx-KZTTH7EY.cjs +16 -0
- package/dist/{to-hwpx-MVDTG25O.cjs.map → to-hwpx-KZTTH7EY.cjs.map} +1 -1
- package/dist/{to-hwpx-QRVTR6VA.js → to-hwpx-YHGVFTBO.js} +4 -4
- package/dist/{to-hwpx-XCS6LSWE.js → to-hwpx-Z7NHUMUD.js} +7 -7
- package/dist/visual-LNHFYJDL.js +38 -0
- package/dist/{watch-LFL26YPL.js → watch-EI5QYDT2.js} +22 -22
- package/package.json +1 -1
- package/dist/chunk-EESBEBUC.cjs.map +0 -1
- package/dist/chunk-G5YCISXC.js.map +0 -1
- package/dist/chunk-N6XPJBIS.js.map +0 -1
- package/dist/chunks-7ABYRV7K.js +0 -11
- package/dist/generator-B5RBQFEP.js +0 -18
- package/dist/generator-JBGS3C5H.cjs +0 -12
- package/dist/generator-NZFUFJL4.js +0 -11
- package/dist/memo-VDT6J2FA.js +0 -17
- package/dist/pdf-ocr-7SNY67NL.cjs +0 -43
- package/dist/seal-4IPGOMFX.js +0 -16
- package/dist/to-hwpx-MVDTG25O.cjs +0 -16
- package/dist/visual-4D32BQGS.js +0 -38
- /package/dist/{-JPBHAOIR.js.map → -F7GLIIGT.js.map} +0 -0
- /package/dist/{chunk-KET32GPP.js.map → chunk-2CPEW6WC.js.map} +0 -0
- /package/dist/{chunk-R6J7X4ND.js.map → chunk-2OF2YWIZ.js.map} +0 -0
- /package/dist/{chunk-YY54476T.js.map → chunk-2VBRCIPI.js.map} +0 -0
- /package/dist/{chunk-FPGY6TH2.js.map → chunk-5WWGC5SG.js.map} +0 -0
- /package/dist/{chunk-N426QQP6.js.map → chunk-6ZA4V4QS.js.map} +0 -0
- /package/dist/{chunk-XHBJCOWB.js.map → chunk-7KVDHXP2.js.map} +0 -0
- /package/dist/{chunk-UMVD6PRZ.js.map → chunk-AUHQRRKM.js.map} +0 -0
- /package/dist/{chunk-6UNCF3PJ.js.map → chunk-BHYBZSOC.js.map} +0 -0
- /package/dist/{chunk-MU7YOHDK.js.map → chunk-D4UFBXMT.js.map} +0 -0
- /package/dist/{chunk-JVVTJDJY.js.map → chunk-DSCT67WF.js.map} +0 -0
- /package/dist/{chunk-MIERFAOB.js.map → chunk-EZNUMAAJ.js.map} +0 -0
- /package/dist/{chunk-TAATW772.js.map → chunk-GFAWIBHG.js.map} +0 -0
- /package/dist/{chunk-6PVJCEF7.js.map → chunk-GRCIFCGC.js.map} +0 -0
- /package/dist/{chunk-QTRQ4KM3.js.map → chunk-HIYRMYAS.js.map} +0 -0
- /package/dist/{chunk-LEITYWHM.js.map → chunk-IMT5TVVM.js.map} +0 -0
- /package/dist/{chunk-VZ2J3654.js.map → chunk-KGCJNPAI.js.map} +0 -0
- /package/dist/{chunk-Q4DDUA7U.js.map → chunk-KLUI4SAZ.js.map} +0 -0
- /package/dist/{chunk-ZMPNA2W7.js.map → chunk-LNWURZ2Z.js.map} +0 -0
- /package/dist/{chunk-6SQF5PAM.js.map → chunk-MHXPW72E.js.map} +0 -0
- /package/dist/{chunk-G3UCY3T7.js.map → chunk-NPBNJCXZ.js.map} +0 -0
- /package/dist/{chunk-7CLI2Y6A.js.map → chunk-O7PJFEOC.js.map} +0 -0
- /package/dist/{chunk-KV5YT6L4.js.map → chunk-OJK4FLS5.js.map} +0 -0
- /package/dist/{chunk-UD7DB4U3.js.map → chunk-OUHMNF2A.js.map} +0 -0
- /package/dist/{chunk-CVH5PB65.js.map → chunk-QK5KCWLE.js.map} +0 -0
- /package/dist/{chunk-6T6VP4AQ.js.map → chunk-RUUUGCXS.js.map} +0 -0
- /package/dist/{chunk-YG42FESS.js.map → chunk-RWU3Y5YK.js.map} +0 -0
- /package/dist/{chunk-VCRBRUCO.js.map → chunk-SMEBVDM2.js.map} +0 -0
- /package/dist/{chunk-WVQDRZF5.js.map → chunk-TYGZ6O2A.js.map} +0 -0
- /package/dist/{chunk-OHSTI6C3.js.map → chunk-UJQRIX4L.js.map} +0 -0
- /package/dist/{chunk-O2RV2FMS.js.map → chunk-WMA4GJHC.js.map} +0 -0
- /package/dist/{chunk-ICK4R4HF.js.map → chunk-YPRIJDH6.js.map} +0 -0
- /package/dist/{chunk-HUKGGV5M.js.map → chunk-YTDHH362.js.map} +0 -0
- /package/dist/{chunk-RTQ2N6DG.js.map → chunk-ZPJZXTEG.js.map} +0 -0
- /package/dist/{chunks-7ABYRV7K.js.map → chunks-JAD5Z5YY.js.map} +0 -0
- /package/dist/{formula-ESTBYQ67.js.map → formula-3PJYUQMG.js.map} +0 -0
- /package/dist/{formula-BJU6ZM3X.js.map → formula-UJF4RZ6W.js.map} +0 -0
- /package/dist/{generator-B5RBQFEP.js.map → generator-EB2436BE.js.map} +0 -0
- /package/dist/{generator-NZFUFJL4.js.map → generator-K5KMPSLC.js.map} +0 -0
- /package/dist/{hancom-TE4NLTFM.js.map → hancom-P3SUQXM4.js.map} +0 -0
- /package/dist/{hancom-FINYE4NT.js.map → hancom-RYIZHWJ5.js.map} +0 -0
- /package/dist/{image-ocr-TB5QRYYM.js.map → image-ocr-GL5YVCNU.js.map} +0 -0
- /package/dist/{image-ocr-L256UYPI.js.map → image-ocr-ZXLHPQI2.js.map} +0 -0
- /package/dist/{memo-VDT6J2FA.js.map → memo-JNMSGIO7.js.map} +0 -0
- /package/dist/{model-bundle-THGO5EUW.js.map → model-bundle-VCUAKBF3.js.map} +0 -0
- /package/dist/{models-MKIZDK2U.js.map → models-UACAGYBI.js.map} +0 -0
- /package/dist/{parse-worker-v2-MGNDWJDE.js.map → parse-worker-v2-LJB4QXGF.js.map} +0 -0
- /package/dist/{parser-C6EZWRQM.js.map → parser-5GZUD22P.js.map} +0 -0
- /package/dist/{parser-EULDI5W6.js.map → parser-HCZD4DUO.js.map} +0 -0
- /package/dist/{pdf-ocr-4Y6VPEZC.js.map → pdf-ocr-JXVGK5MR.js.map} +0 -0
- /package/dist/{pdf-ocr-LQ5SYFCE.js.map → pdf-ocr-YCMC2VL4.js.map} +0 -0
- /package/dist/{profile-io-SDJTSIFY.js.map → profile-io-MVTEOXAU.js.map} +0 -0
- /package/dist/{rasterize-TGFUBV6B.js.map → rasterize-VWT3C3RW.js.map} +0 -0
- /package/dist/{redact-doc-X5WKER3O.js.map → redact-doc-SU3JDC6F.js.map} +0 -0
- /package/dist/{render-6KIT7GYL.js.map → render-D5N4FKWB.js.map} +0 -0
- /package/dist/{rewrite-fallback-ARYCZKU6.js.map → rewrite-fallback-QXTWSPGY.js.map} +0 -0
- /package/dist/{seal-4IPGOMFX.js.map → seal-Q3BD6CRB.js.map} +0 -0
- /package/dist/{setup-ZEMI2HI4.js.map → setup-TXNJYX6P.js.map} +0 -0
- /package/dist/{to-hwpx-QRVTR6VA.js.map → to-hwpx-YHGVFTBO.js.map} +0 -0
- /package/dist/{to-hwpx-XCS6LSWE.js.map → to-hwpx-Z7NHUMUD.js.map} +0 -0
- /package/dist/{visual-4D32BQGS.js.map → visual-LNHFYJDL.js.map} +0 -0
- /package/dist/{watch-LFL26YPL.js.map → watch-EI5QYDT2.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
escapeHtml,
|
|
4
4
|
isGfmUrl,
|
|
5
5
|
sanitizeHref
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2VBRCIPI.js";
|
|
7
7
|
|
|
8
8
|
// src/script-tags.ts
|
|
9
9
|
var LITERAL_TAG = /<(?=\/?(?:u|sup|sub)>)/g;
|
|
@@ -1560,4 +1560,4 @@ export {
|
|
|
1560
1560
|
HEADING_RATIO_H2,
|
|
1561
1561
|
HEADING_RATIO_H3
|
|
1562
1562
|
};
|
|
1563
|
-
//# sourceMappingURL=chunk-
|
|
1563
|
+
//# sourceMappingURL=chunk-MHXPW72E.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
visibleText
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2OF2YWIZ.js";
|
|
5
5
|
|
|
6
6
|
// src/script-tags.ts
|
|
7
7
|
var LITERAL_TAG = /<(?=\/?(?:u|sup|sub)>)/g;
|
|
@@ -336,4 +336,4 @@ export {
|
|
|
336
336
|
HEADING_RATIO_H2,
|
|
337
337
|
HEADING_RATIO_H3
|
|
338
338
|
};
|
|
339
|
-
//# sourceMappingURL=chunk-
|
|
339
|
+
//# sourceMappingURL=chunk-NPBNJCXZ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
KordocError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QK5KCWLE.js";
|
|
5
5
|
|
|
6
6
|
// src/roundtrip/zip-patch.ts
|
|
7
7
|
import { deflateRawSync } from "zlib";
|
|
@@ -233,4 +233,4 @@ export {
|
|
|
233
233
|
readZipEntries,
|
|
234
234
|
patchZipEntries
|
|
235
235
|
};
|
|
236
|
-
//# sourceMappingURL=chunk-
|
|
236
|
+
//# sourceMappingURL=chunk-O7PJFEOC.js.map
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
tidyScriptTags,
|
|
41
41
|
visibleText,
|
|
42
42
|
wrapScript
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-MHXPW72E.js";
|
|
44
44
|
import {
|
|
45
45
|
BARE_URL,
|
|
46
46
|
KordocError,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
stripDtd,
|
|
58
58
|
unescapeHtml,
|
|
59
59
|
unzipLimitBytes
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-2VBRCIPI.js";
|
|
61
61
|
|
|
62
62
|
// src/hwpx/generator.ts
|
|
63
63
|
import JSZip2 from "jszip";
|
|
@@ -23931,4 +23931,4 @@ export {
|
|
|
23931
23931
|
markdownToHwpxFromTemplate,
|
|
23932
23932
|
markdownToHwpx
|
|
23933
23933
|
};
|
|
23934
|
-
//# sourceMappingURL=chunk-
|
|
23934
|
+
//# sourceMappingURL=chunk-OJK4FLS5.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
findChildByLocalName
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-D4UFBXMT.js";
|
|
5
5
|
import {
|
|
6
6
|
circledHangul,
|
|
7
7
|
circledNumber,
|
|
@@ -11038,4 +11038,4 @@ export {
|
|
|
11038
11038
|
simulateWrapKeepWord,
|
|
11039
11039
|
fitRatioForFewerLines
|
|
11040
11040
|
};
|
|
11041
|
-
//# sourceMappingURL=chunk-
|
|
11041
|
+
//# sourceMappingURL=chunk-OUHMNF2A.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkLFTO5QAPcjs = require('./chunk-LFTO5QAP.cjs');
|
|
7
7
|
|
|
8
8
|
// src/script-tags.ts
|
|
9
9
|
var LITERAL_TAG = /<(?=\/?(?:u|sup|sub)>)/g;
|
|
@@ -727,12 +727,12 @@ var CELL_URL = new RegExp(String.raw`(?:(?<![A-Za-z])https?:\/\/|(?<![^\s(])www\
|
|
|
727
727
|
function gfmCellMarkdown(text) {
|
|
728
728
|
return text.replace(/\r\n|\r|\n/g, "<br>").replace(CELL_URL, (u) => u.replace(/\|/g, "%7C")).replace(/(?<!\\)\|/g, "\\|");
|
|
729
729
|
}
|
|
730
|
-
var GFM_PROTECTED = new RegExp(/!\[[^\]<>\n]*\]\([^)\s<>"'\x60:]*\)|\]\((?:https?:|mailto:|tel:|#)[^)\s<>"'\x60]*\)|(?<!\\)\$\$(?:\\[\s\S]|[^\\$])*\$\$|(?<!\\)\$(?:\\[^\n]|[^\\$\n])*\$/.source + `|(${
|
|
730
|
+
var GFM_PROTECTED = new RegExp(/!\[[^\]<>\n]*\]\([^)\s<>"'\x60:]*\)|\]\((?:https?:|mailto:|tel:|#)[^)\s<>"'\x60]*\)|(?<!\\)\$\$(?:\\[\s\S]|[^\\$])*\$\$|(?<!\\)\$(?:\\[^\n]|[^\\$\n])*\$/.source + `|(${_chunkLFTO5QAPcjs.BARE_URL})`, "gi");
|
|
731
731
|
function escapeGfm(text) {
|
|
732
732
|
const NUL = String.fromCharCode(0);
|
|
733
733
|
const spans = [];
|
|
734
734
|
const masked = text.replace(GFM_PROTECTED, (m, url, at, s) => {
|
|
735
|
-
if (url && !
|
|
735
|
+
if (url && !_chunkLFTO5QAPcjs.isGfmUrl.call(void 0, url, s, at + url.length)) return m;
|
|
736
736
|
spans.push(m);
|
|
737
737
|
return NUL + (spans.length - 1) + NUL;
|
|
738
738
|
});
|
|
@@ -966,7 +966,7 @@ function blocksToMarkdown(blocks, options) {
|
|
|
966
966
|
if (_optionalChain([block, 'access', _38 => _38.spans, 'optionalAccess', _39 => _39.length])) {
|
|
967
967
|
let rendered = spansToMarkdown(block.spans);
|
|
968
968
|
if (block.href) {
|
|
969
|
-
const href =
|
|
969
|
+
const href = _chunkLFTO5QAPcjs.sanitizeHref.call(void 0, block.href);
|
|
970
970
|
if (href) rendered = `[${rendered}](${href})`;
|
|
971
971
|
}
|
|
972
972
|
if (block.footnoteText) rendered += noteTable || escapeGfm(` (\uC8FC: ${block.footnoteText})`);
|
|
@@ -974,7 +974,7 @@ function blocksToMarkdown(blocks, options) {
|
|
|
974
974
|
continue;
|
|
975
975
|
}
|
|
976
976
|
if (block.href) {
|
|
977
|
-
const href =
|
|
977
|
+
const href = _chunkLFTO5QAPcjs.sanitizeHref.call(void 0, block.href);
|
|
978
978
|
if (href) text = `[${text}](${href})`;
|
|
979
979
|
}
|
|
980
980
|
if (block.footnoteText && !noteTable) {
|
|
@@ -1063,7 +1063,7 @@ function visibleText(b) {
|
|
|
1063
1063
|
return _optionalChain([b, 'access', _53 => _53.spans, 'optionalAccess', _54 => _54.some, 'call', _55 => _55((s) => s.placeholder)]) ? b.spans.filter((s) => !s.placeholder).map((s) => s.text).join("") : _nullishCoalesce(b.text, () => ( ""));
|
|
1064
1064
|
}
|
|
1065
1065
|
function escapeHtmlCellText(text) {
|
|
1066
|
-
return
|
|
1066
|
+
return _chunkLFTO5QAPcjs.escapeHtml.call(void 0, text).replace(/(\\)?<(\/?)(u|sup|sub)>/g, (_, esc, sl, tag) => esc ? `<${sl}${tag}>` : `<${sl}${tag}>`);
|
|
1067
1067
|
}
|
|
1068
1068
|
function cellInnerHtml(cell) {
|
|
1069
1069
|
if (_optionalChain([cell, 'access', _56 => _56.blocks, 'optionalAccess', _57 => _57.length])) {
|
|
@@ -1072,7 +1072,7 @@ function cellInnerHtml(cell) {
|
|
|
1072
1072
|
const cap = captionToHtml(b.table);
|
|
1073
1073
|
return (cap ? cap + "<br>" : "") + tableToHtml(b.table);
|
|
1074
1074
|
}
|
|
1075
|
-
if (b.type === "image" && b.text) return `<img src="${
|
|
1075
|
+
if (b.type === "image" && b.text) return `<img src="${_chunkLFTO5QAPcjs.escapeHtml.call(void 0, b.text, true)}" alt="image">` + (_nullishCoalesce(b.qr, () => ( []))).map((v) => "<br>" + escapeHtmlCellText(v).replace(/\r?\n/g, "<br>")).join("");
|
|
1076
1076
|
const note = noteTableHtml(b);
|
|
1077
1077
|
const t = (sanitizeText(visibleText(b)) + (note ? "" : noteSuffix(b))).trim();
|
|
1078
1078
|
return ((t ? escapeHtmlCellText(t).replace(/\n/g, "<br>") : "") + note).trim();
|
|
@@ -1560,4 +1560,4 @@ var HEADING_RATIO_H3 = 1.15;
|
|
|
1560
1560
|
|
|
1561
1561
|
|
|
1562
1562
|
exports.escapeLiteralTags = escapeLiteralTags; exports.wrapScript = wrapScript; exports.tidyScriptTags = tidyScriptTags; exports.plainScripts = plainScripts; exports.stripScriptTags = stripScriptTags; exports.WINGDINGS = WINGDINGS; exports.hangulOrdinal = hangulOrdinal; exports.circledNumber = circledNumber; exports.circledHangul = circledHangul; exports.hangulAmount = hangulAmount; exports.romanNumeral = romanNumeral; exports.enclosedNumber = enclosedNumber; exports.composeDigits = composeDigits; exports.pairedNumber = pairedNumber; exports.composeText = composeText; exports.mapPuaText = mapPuaText; exports.MAX_COLS = MAX_COLS; exports.MAX_ROWS = MAX_ROWS; exports.MAX_TABLE_CELLS = MAX_TABLE_CELLS; exports.buildTable = buildTable; exports.captionedText = captionedText; exports.convertTableToText = convertTableToText; exports.gfmCellMarkdown = gfmCellMarkdown; exports.escapeGfm = escapeGfm; exports.escapeLiteralDollar = escapeLiteralDollar; exports.sanitizeText = sanitizeText; exports.markNonLayoutTable = markNonLayoutTable; exports.flattenLayoutTables = flattenLayoutTables; exports.dedupeRunningHeaders = dedupeRunningHeaders; exports.assignTableIds = assignTableIds; exports.blocksToMarkdown = blocksToMarkdown; exports.hasStructuredCellContent = hasStructuredCellContent; exports.noteSuffix = noteSuffix; exports.noteTableHtml = noteTableHtml; exports.visibleText = visibleText; exports.escapeHtmlCellText = escapeHtmlCellText; exports.hasInlineCellBlocks = hasInlineCellBlocks; exports.cellToMarkdown = cellToMarkdown; exports.CELL_EDGES = CELL_EDGES; exports.CELL_PAGES = CELL_PAGES; exports.CONTENT_CELLS = CONTENT_CELLS; exports.CELL_BASELINES = CELL_BASELINES; exports.toTex = toTex; exports.unframeLayoutTables = unframeLayoutTables; exports.HEADING_RATIO_H1 = HEADING_RATIO_H1; exports.HEADING_RATIO_H2 = HEADING_RATIO_H2; exports.HEADING_RATIO_H3 = HEADING_RATIO_H3;
|
|
1563
|
-
//# sourceMappingURL=chunk-
|
|
1563
|
+
//# sourceMappingURL=chunk-OW2XKTQA.cjs.map
|