kordoc 4.24.69 → 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 +4 -4
- package/dist/{-KG4BXVPV.js → -F7GLIIGT.js} +21 -21
- package/dist/{chunk-3MQXPZ6R.js → chunk-2CPEW6WC.js} +3 -3
- package/dist/{chunk-3LYXCBQ6.js → chunk-2OF2YWIZ.js} +2 -2
- package/dist/{chunk-PZ7NOQHD.js → chunk-2VBRCIPI.js} +2 -2
- package/dist/{chunk-OWYYRDZR.js → chunk-5WWGC5SG.js} +2 -2
- package/dist/{chunk-LERHV2DV.js → chunk-6ZA4V4QS.js} +2 -2
- package/dist/{chunk-EBBPXRLU.js → chunk-7KVDHXP2.js} +4 -4
- package/dist/{chunk-YBV3DCBB.js → chunk-AUHQRRKM.js} +3 -3
- package/dist/{chunk-6RAP7IYO.js → chunk-BHYBZSOC.js} +2 -2
- package/dist/{chunk-YYGN4RAC.cjs → chunk-BNP3WXTB.cjs} +3 -3
- package/dist/{chunk-YYGN4RAC.cjs.map → chunk-BNP3WXTB.cjs.map} +1 -1
- package/dist/{chunk-53KBBSHJ.js → chunk-D4UFBXMT.js} +2 -2
- package/dist/{chunk-QXZZ37WG.js → chunk-DSCT67WF.js} +3 -3
- package/dist/{chunk-C3OMT5XO.js → chunk-EZNUMAAJ.js} +2 -2
- package/dist/{chunk-4NPX2NIK.js → chunk-GFAWIBHG.js} +10 -10
- package/dist/{chunk-KXVMRGSM.js → chunk-GRCIFCGC.js} +2 -2
- package/dist/{chunk-SQXRRR75.cjs → chunk-H2VOH7X3.cjs} +246 -198
- package/dist/chunk-H2VOH7X3.cjs.map +1 -0
- package/dist/{chunk-AAIU5QXZ.js → chunk-HIYRMYAS.js} +2 -2
- package/dist/{chunk-OYXFVDEL.js → chunk-IMT5TVVM.js} +2 -2
- package/dist/{chunk-KCA54CHN.js → chunk-KGCJNPAI.js} +5 -5
- package/dist/{chunk-EM6II5KB.js → chunk-KLUI4SAZ.js} +2 -2
- package/dist/{chunk-4SKZG3K4.cjs → chunk-LFTO5QAP.cjs} +2 -2
- package/dist/{chunk-4SKZG3K4.cjs.map → chunk-LFTO5QAP.cjs.map} +1 -1
- package/dist/{chunk-4P4ZWHNQ.js → chunk-LNWURZ2Z.js} +7 -7
- package/dist/{chunk-V37SADMF.js → chunk-M27VBFO6.js} +83 -35
- package/dist/chunk-M27VBFO6.js.map +1 -0
- package/dist/{chunk-I776RNAM.js → chunk-MHXPW72E.js} +2 -2
- package/dist/{chunk-YJA4HQUO.js → chunk-NPBNJCXZ.js} +2 -2
- package/dist/{chunk-3APUYEC6.js → chunk-O7PJFEOC.js} +2 -2
- package/dist/{chunk-3CUPBG7W.js → chunk-OJK4FLS5.js} +3 -3
- package/dist/{chunk-U456OELH.js → chunk-OUHMNF2A.js} +2 -2
- package/dist/{chunk-AQSU4NAT.cjs → chunk-OW2XKTQA.cjs} +8 -8
- package/dist/{chunk-AQSU4NAT.cjs.map → chunk-OW2XKTQA.cjs.map} +1 -1
- package/dist/{chunk-ZPSCL2UV.js → chunk-QK5KCWLE.js} +2 -2
- package/dist/{chunk-FQHTZNNA.js → chunk-RUUUGCXS.js} +6 -6
- package/dist/{chunk-MQHAFMEU.js → chunk-RWU3Y5YK.js} +15 -15
- package/dist/{chunk-5ZDXCGBI.cjs → chunk-SK5AOGYK.cjs} +104 -104
- package/dist/{chunk-5ZDXCGBI.cjs.map → chunk-SK5AOGYK.cjs.map} +1 -1
- package/dist/{chunk-6ZWX733V.js → chunk-SMEBVDM2.js} +7 -6
- package/dist/chunk-SMEBVDM2.js.map +1 -0
- package/dist/{chunk-R32ERRRI.js → chunk-T7MHZIFG.js} +84 -36
- package/dist/chunk-T7MHZIFG.js.map +1 -0
- package/dist/{chunk-GMTI7GBK.js → chunk-TYGZ6O2A.js} +11 -11
- package/dist/{chunk-OEBMM2WZ.js → chunk-UJQRIX4L.js} +2 -2
- package/dist/{chunk-XHAM4CGG.js → chunk-WMA4GJHC.js} +7 -6
- package/dist/chunk-WMA4GJHC.js.map +1 -0
- package/dist/{chunk-6T2QXCFD.cjs → chunk-YISBYF7X.cjs} +60 -59
- package/dist/chunk-YISBYF7X.cjs.map +1 -0
- package/dist/{chunk-OZWNUIUS.cjs → chunk-YJ2YVG6N.cjs} +88 -88
- package/dist/{chunk-OZWNUIUS.cjs.map → chunk-YJ2YVG6N.cjs.map} +1 -1
- package/dist/{chunk-JDHX44G4.js → chunk-YPRIJDH6.js} +2 -2
- package/dist/{chunk-ONKURIVQ.js → chunk-YTDHH362.js} +2 -2
- package/dist/{chunk-6RWM6WRI.cjs → chunk-YTP7FPA5.cjs} +3 -3
- package/dist/{chunk-6RWM6WRI.cjs.map → chunk-YTP7FPA5.cjs.map} +1 -1
- package/dist/{chunk-MHRKKMCS.js → chunk-ZPJZXTEG.js} +6 -6
- package/dist/chunks-JAD5Z5YY.js +11 -0
- package/dist/cli.js +45 -45
- package/dist/{formula-ACYUF2DL.js → formula-3PJYUQMG.js} +4 -4
- package/dist/{formula-4HIPZCUM.cjs → formula-RTPZD2IM.cjs} +9 -9
- package/dist/{formula-4HIPZCUM.cjs.map → formula-RTPZD2IM.cjs.map} +1 -1
- package/dist/{formula-TO3RLKBZ.js → formula-UJF4RZ6W.js} +3 -3
- package/dist/generator-EB2436BE.js +18 -0
- package/dist/generator-INMUN6KB.cjs +12 -0
- package/dist/{generator-UAEKNWCY.cjs.map → generator-INMUN6KB.cjs.map} +1 -1
- package/dist/generator-K5KMPSLC.js +11 -0
- package/dist/{hancom-4FAVUJFH.cjs → hancom-MVPEYI4X.cjs} +5 -5
- package/dist/{hancom-4FAVUJFH.cjs.map → hancom-MVPEYI4X.cjs.map} +1 -1
- package/dist/{hancom-JLRWAJ7K.js → hancom-P3SUQXM4.js} +2 -2
- package/dist/{hancom-FCNE5FBM.js → hancom-RYIZHWJ5.js} +2 -2
- package/dist/{image-ocr-53K5Y7RJ.js → image-ocr-GL5YVCNU.js} +10 -10
- package/dist/{image-ocr-HGYEY56S.cjs → image-ocr-ZS4EMQN3.cjs} +28 -28
- package/dist/{image-ocr-HGYEY56S.cjs.map → image-ocr-ZS4EMQN3.cjs.map} +1 -1
- package/dist/{image-ocr-ZIHIC6E7.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-VR77PCZE.js → model-bundle-VCUAKBF3.js} +5 -5
- package/dist/{models-CLF7ODRG.js → models-UACAGYBI.js} +5 -5
- package/dist/{parse-worker-v2-WXRS3WBA.js → parse-worker-v2-LJB4QXGF.js} +22 -22
- package/dist/{parser-LKSBUPHG.js → parser-5GZUD22P.js} +12 -12
- package/dist/{parser-H27KVKB7.js → parser-HCZD4DUO.js} +9 -9
- package/dist/{parser-7UHFKMVL.cjs → parser-T4HAQ3QW.cjs} +166 -166
- package/dist/{parser-7UHFKMVL.cjs.map → parser-T4HAQ3QW.cjs.map} +1 -1
- package/dist/pdf-ocr-H4DKZSOB.cjs +43 -0
- package/dist/{pdf-ocr-Z22C7K6C.cjs.map → pdf-ocr-H4DKZSOB.cjs.map} +1 -1
- package/dist/{pdf-ocr-AYLXK6OF.js → pdf-ocr-JXVGK5MR.js} +6 -6
- package/dist/{pdf-ocr-ABMCDMIV.js → pdf-ocr-YCMC2VL4.js} +9 -9
- package/dist/{profile-io-HGOQULXZ.js → profile-io-MVTEOXAU.js} +3 -3
- package/dist/{rasterize-5RWYKMSP.js → rasterize-VWT3C3RW.js} +3 -3
- package/dist/{redact-doc-HNKVSOLJ.js → redact-doc-SU3JDC6F.js} +21 -21
- package/dist/{render-TUDHFNDV.js → render-D5N4FKWB.js} +12 -12
- package/dist/{rewrite-fallback-EWVH2MR4.js → rewrite-fallback-QXTWSPGY.js} +13 -13
- package/dist/seal-Q3BD6CRB.js +16 -0
- package/dist/{setup-5EEOZUUH.js → setup-TXNJYX6P.js} +3 -3
- package/dist/to-hwpx-KZTTH7EY.cjs +16 -0
- package/dist/{to-hwpx-RNZ72ZYF.cjs.map → to-hwpx-KZTTH7EY.cjs.map} +1 -1
- package/dist/{to-hwpx-UHNIAQ2L.js → to-hwpx-YHGVFTBO.js} +4 -4
- package/dist/{to-hwpx-6KY7WGVN.js → to-hwpx-Z7NHUMUD.js} +7 -7
- package/dist/visual-LNHFYJDL.js +38 -0
- package/dist/{watch-SZJOKRCO.js → watch-EI5QYDT2.js} +22 -22
- package/package.json +1 -1
- package/dist/chunk-6T2QXCFD.cjs.map +0 -1
- package/dist/chunk-6ZWX733V.js.map +0 -1
- package/dist/chunk-R32ERRRI.js.map +0 -1
- package/dist/chunk-SQXRRR75.cjs.map +0 -1
- package/dist/chunk-V37SADMF.js.map +0 -1
- package/dist/chunk-XHAM4CGG.js.map +0 -1
- package/dist/chunks-HN36MEGV.js +0 -11
- package/dist/generator-5NUDHWLL.js +0 -11
- package/dist/generator-K2CNNN64.js +0 -18
- package/dist/generator-UAEKNWCY.cjs +0 -12
- package/dist/memo-ALIRNVIU.js +0 -17
- package/dist/pdf-ocr-Z22C7K6C.cjs +0 -43
- package/dist/seal-R6WDXSRI.js +0 -16
- package/dist/to-hwpx-RNZ72ZYF.cjs +0 -16
- package/dist/visual-Z5HND4S7.js +0 -38
- /package/dist/{-KG4BXVPV.js.map → -F7GLIIGT.js.map} +0 -0
- /package/dist/{chunk-3MQXPZ6R.js.map → chunk-2CPEW6WC.js.map} +0 -0
- /package/dist/{chunk-3LYXCBQ6.js.map → chunk-2OF2YWIZ.js.map} +0 -0
- /package/dist/{chunk-PZ7NOQHD.js.map → chunk-2VBRCIPI.js.map} +0 -0
- /package/dist/{chunk-OWYYRDZR.js.map → chunk-5WWGC5SG.js.map} +0 -0
- /package/dist/{chunk-LERHV2DV.js.map → chunk-6ZA4V4QS.js.map} +0 -0
- /package/dist/{chunk-EBBPXRLU.js.map → chunk-7KVDHXP2.js.map} +0 -0
- /package/dist/{chunk-YBV3DCBB.js.map → chunk-AUHQRRKM.js.map} +0 -0
- /package/dist/{chunk-6RAP7IYO.js.map → chunk-BHYBZSOC.js.map} +0 -0
- /package/dist/{chunk-53KBBSHJ.js.map → chunk-D4UFBXMT.js.map} +0 -0
- /package/dist/{chunk-QXZZ37WG.js.map → chunk-DSCT67WF.js.map} +0 -0
- /package/dist/{chunk-C3OMT5XO.js.map → chunk-EZNUMAAJ.js.map} +0 -0
- /package/dist/{chunk-4NPX2NIK.js.map → chunk-GFAWIBHG.js.map} +0 -0
- /package/dist/{chunk-KXVMRGSM.js.map → chunk-GRCIFCGC.js.map} +0 -0
- /package/dist/{chunk-AAIU5QXZ.js.map → chunk-HIYRMYAS.js.map} +0 -0
- /package/dist/{chunk-OYXFVDEL.js.map → chunk-IMT5TVVM.js.map} +0 -0
- /package/dist/{chunk-KCA54CHN.js.map → chunk-KGCJNPAI.js.map} +0 -0
- /package/dist/{chunk-EM6II5KB.js.map → chunk-KLUI4SAZ.js.map} +0 -0
- /package/dist/{chunk-4P4ZWHNQ.js.map → chunk-LNWURZ2Z.js.map} +0 -0
- /package/dist/{chunk-I776RNAM.js.map → chunk-MHXPW72E.js.map} +0 -0
- /package/dist/{chunk-YJA4HQUO.js.map → chunk-NPBNJCXZ.js.map} +0 -0
- /package/dist/{chunk-3APUYEC6.js.map → chunk-O7PJFEOC.js.map} +0 -0
- /package/dist/{chunk-3CUPBG7W.js.map → chunk-OJK4FLS5.js.map} +0 -0
- /package/dist/{chunk-U456OELH.js.map → chunk-OUHMNF2A.js.map} +0 -0
- /package/dist/{chunk-ZPSCL2UV.js.map → chunk-QK5KCWLE.js.map} +0 -0
- /package/dist/{chunk-FQHTZNNA.js.map → chunk-RUUUGCXS.js.map} +0 -0
- /package/dist/{chunk-MQHAFMEU.js.map → chunk-RWU3Y5YK.js.map} +0 -0
- /package/dist/{chunk-GMTI7GBK.js.map → chunk-TYGZ6O2A.js.map} +0 -0
- /package/dist/{chunk-OEBMM2WZ.js.map → chunk-UJQRIX4L.js.map} +0 -0
- /package/dist/{chunk-JDHX44G4.js.map → chunk-YPRIJDH6.js.map} +0 -0
- /package/dist/{chunk-ONKURIVQ.js.map → chunk-YTDHH362.js.map} +0 -0
- /package/dist/{chunk-MHRKKMCS.js.map → chunk-ZPJZXTEG.js.map} +0 -0
- /package/dist/{chunks-HN36MEGV.js.map → chunks-JAD5Z5YY.js.map} +0 -0
- /package/dist/{formula-ACYUF2DL.js.map → formula-3PJYUQMG.js.map} +0 -0
- /package/dist/{formula-TO3RLKBZ.js.map → formula-UJF4RZ6W.js.map} +0 -0
- /package/dist/{generator-5NUDHWLL.js.map → generator-EB2436BE.js.map} +0 -0
- /package/dist/{generator-K2CNNN64.js.map → generator-K5KMPSLC.js.map} +0 -0
- /package/dist/{hancom-JLRWAJ7K.js.map → hancom-P3SUQXM4.js.map} +0 -0
- /package/dist/{hancom-FCNE5FBM.js.map → hancom-RYIZHWJ5.js.map} +0 -0
- /package/dist/{image-ocr-53K5Y7RJ.js.map → image-ocr-GL5YVCNU.js.map} +0 -0
- /package/dist/{image-ocr-ZIHIC6E7.js.map → image-ocr-ZXLHPQI2.js.map} +0 -0
- /package/dist/{memo-ALIRNVIU.js.map → memo-JNMSGIO7.js.map} +0 -0
- /package/dist/{model-bundle-VR77PCZE.js.map → model-bundle-VCUAKBF3.js.map} +0 -0
- /package/dist/{models-CLF7ODRG.js.map → models-UACAGYBI.js.map} +0 -0
- /package/dist/{parse-worker-v2-WXRS3WBA.js.map → parse-worker-v2-LJB4QXGF.js.map} +0 -0
- /package/dist/{parser-LKSBUPHG.js.map → parser-5GZUD22P.js.map} +0 -0
- /package/dist/{parser-H27KVKB7.js.map → parser-HCZD4DUO.js.map} +0 -0
- /package/dist/{pdf-ocr-ABMCDMIV.js.map → pdf-ocr-JXVGK5MR.js.map} +0 -0
- /package/dist/{pdf-ocr-AYLXK6OF.js.map → pdf-ocr-YCMC2VL4.js.map} +0 -0
- /package/dist/{profile-io-HGOQULXZ.js.map → profile-io-MVTEOXAU.js.map} +0 -0
- /package/dist/{rasterize-5RWYKMSP.js.map → rasterize-VWT3C3RW.js.map} +0 -0
- /package/dist/{redact-doc-HNKVSOLJ.js.map → redact-doc-SU3JDC6F.js.map} +0 -0
- /package/dist/{render-TUDHFNDV.js.map → render-D5N4FKWB.js.map} +0 -0
- /package/dist/{rewrite-fallback-EWVH2MR4.js.map → rewrite-fallback-QXTWSPGY.js.map} +0 -0
- /package/dist/{seal-R6WDXSRI.js.map → seal-Q3BD6CRB.js.map} +0 -0
- /package/dist/{setup-5EEOZUUH.js.map → setup-TXNJYX6P.js.map} +0 -0
- /package/dist/{to-hwpx-6KY7WGVN.js.map → to-hwpx-YHGVFTBO.js.map} +0 -0
- /package/dist/{to-hwpx-UHNIAQ2L.js.map → to-hwpx-Z7NHUMUD.js.map} +0 -0
- /package/dist/{visual-Z5HND4S7.js.map → visual-LNHFYJDL.js.map} +0 -0
- /package/dist/{watch-SZJOKRCO.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
|