kordoc 4.24.62 → 4.24.63

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.
Files changed (192) hide show
  1. package/README.md +2 -2
  2. package/dist/{-THTBNQ5Y.js → -JKJWVZ7E.js} +21 -21
  3. package/dist/{chunk-GO54TANI.js → chunk-3R4LS2QM.js} +57 -16
  4. package/dist/chunk-3R4LS2QM.js.map +1 -0
  5. package/dist/{chunk-JGQE6QI5.cjs → chunk-4J7PCDT5.cjs} +28 -3
  6. package/dist/chunk-4J7PCDT5.cjs.map +1 -0
  7. package/dist/{chunk-3GHNP4YF.js → chunk-55QH5LSM.js} +25 -7
  8. package/dist/chunk-55QH5LSM.js.map +1 -0
  9. package/dist/{chunk-JYM2MSUJ.js → chunk-7OBVSSAQ.js} +34 -7
  10. package/dist/chunk-7OBVSSAQ.js.map +1 -0
  11. package/dist/{chunk-FHUEJWZL.js → chunk-A73BTJH5.js} +4 -4
  12. package/dist/{chunk-5RRLMFPB.js → chunk-AKMBPYRU.js} +5 -5
  13. package/dist/{chunk-KQHO2DUH.js → chunk-B7JISVV7.js} +2 -2
  14. package/dist/{chunk-T52EPT77.js → chunk-BW2KS7VQ.js} +37 -10
  15. package/dist/chunk-BW2KS7VQ.js.map +1 -0
  16. package/dist/{chunk-YQ7SSNXP.cjs → chunk-CB365CYO.cjs} +109 -88
  17. package/dist/chunk-CB365CYO.cjs.map +1 -0
  18. package/dist/{chunk-GD4DHA2U.js → chunk-CD7YHKSF.js} +11 -11
  19. package/dist/{chunk-QQN4LZLX.js → chunk-CL2GZ7JO.js} +2 -2
  20. package/dist/{chunk-2KMS4LSR.js → chunk-DQEZVDKS.js} +27 -2
  21. package/dist/chunk-DQEZVDKS.js.map +1 -0
  22. package/dist/{chunk-WACUI2XZ.js → chunk-E3IGBNLD.js} +2 -2
  23. package/dist/{chunk-N2VSP3PP.js → chunk-FIKCNQ5Q.js} +2 -2
  24. package/dist/{chunk-VJZ6TVEG.js → chunk-FZNNNXEW.js} +5 -5
  25. package/dist/{chunk-OKUO5X5Z.js → chunk-HG6K7PDG.js} +2 -2
  26. package/dist/{chunk-Q3GESJGN.js → chunk-JCNNDOOW.js} +2 -2
  27. package/dist/{chunk-CGOWSDCT.cjs → chunk-JIH23K74.cjs} +58 -58
  28. package/dist/{chunk-CGOWSDCT.cjs.map → chunk-JIH23K74.cjs.map} +1 -1
  29. package/dist/{chunk-ULMPRHSC.js → chunk-JMYWAW2S.js} +7 -7
  30. package/dist/{chunk-X4DZCB3U.js → chunk-KWISIIRJ.js} +2 -2
  31. package/dist/{chunk-72JZ2QE2.cjs → chunk-MKH2CVD2.cjs} +3 -3
  32. package/dist/{chunk-72JZ2QE2.cjs.map → chunk-MKH2CVD2.cjs.map} +1 -1
  33. package/dist/{chunk-6RQWHFEZ.js → chunk-MQNJY7II.js} +2 -2
  34. package/dist/{chunk-CZAGX76E.js → chunk-NCI5VSUC.js} +2 -2
  35. package/dist/{chunk-XALE4HY2.js → chunk-PEDFVAXJ.js} +24 -3
  36. package/dist/chunk-PEDFVAXJ.js.map +1 -0
  37. package/dist/{chunk-6PQL2BGI.js → chunk-PTWPZYBM.js} +11 -11
  38. package/dist/{chunk-6PQL2BGI.js.map → chunk-PTWPZYBM.js.map} +1 -1
  39. package/dist/{chunk-UF6ZDIPI.js → chunk-Q2ZKAVNU.js} +25 -4
  40. package/dist/chunk-Q2ZKAVNU.js.map +1 -0
  41. package/dist/{chunk-UYO6HP4Z.js → chunk-ROHCAUUO.js} +3 -3
  42. package/dist/{chunk-EQWU5IAR.js → chunk-SPEEZYS4.js} +6 -6
  43. package/dist/{chunk-KPN4F3DO.cjs → chunk-SQT5Z35B.cjs} +25 -25
  44. package/dist/{chunk-KPN4F3DO.cjs.map → chunk-SQT5Z35B.cjs.map} +1 -1
  45. package/dist/{chunk-UC7KD3VI.js → chunk-SUMSKQ43.js} +2 -2
  46. package/dist/{chunk-6FFGCPG2.js → chunk-SUXFV3AL.js} +5 -5
  47. package/dist/{chunk-QGCSYIUV.js → chunk-TFEQHER2.js} +2 -2
  48. package/dist/{chunk-QGCSYIUV.js.map → chunk-TFEQHER2.js.map} +1 -1
  49. package/dist/{chunk-OWNA5FR2.js → chunk-UMF44YJH.js} +2 -2
  50. package/dist/{chunk-PI3R3KRN.js → chunk-UZDSVTD4.js} +2 -2
  51. package/dist/{chunk-PDYDMIHJ.cjs → chunk-WB4LZYGW.cjs} +129 -102
  52. package/dist/chunk-WB4LZYGW.cjs.map +1 -0
  53. package/dist/{chunk-KM6S5SKE.cjs → chunk-WDFJGFAH.cjs} +3 -3
  54. package/dist/{chunk-KM6S5SKE.cjs.map → chunk-WDFJGFAH.cjs.map} +1 -1
  55. package/dist/{chunk-DCY4MZWB.js → chunk-WIPBQVIK.js} +3 -3
  56. package/dist/{chunk-T472IK5V.js → chunk-X4PFJ3S3.js} +27 -2
  57. package/dist/chunk-X4PFJ3S3.js.map +1 -0
  58. package/dist/{chunk-DFEHSLNA.js → chunk-XABC4RKP.js} +2 -2
  59. package/dist/{chunk-QCT23BII.js → chunk-XIJH4QF7.js} +25 -7
  60. package/dist/chunk-XIJH4QF7.js.map +1 -0
  61. package/dist/{chunk-NVMLYTJ7.cjs → chunk-XYMBGOXH.cjs} +30 -12
  62. package/dist/chunk-XYMBGOXH.cjs.map +1 -0
  63. package/dist/{chunk-7U4KDW4H.js → chunk-YRMVLAYZ.js} +2 -2
  64. package/dist/{chunk-AA5M6DA2.js → chunk-ZVUZZFGY.js} +3 -3
  65. package/dist/chunks-XCTKHHQF.js +11 -0
  66. package/dist/cli.js +49 -46
  67. package/dist/cli.js.map +1 -1
  68. package/dist/{formula-6KWYDTHQ.js → formula-DNS3KV3C.js} +4 -4
  69. package/dist/{formula-IVEXGWTS.js → formula-VKUUIOIT.js} +3 -3
  70. package/dist/{formula-Y3YXFE2K.cjs → formula-WTTPNY2I.cjs} +9 -9
  71. package/dist/{formula-Y3YXFE2K.cjs.map → formula-WTTPNY2I.cjs.map} +1 -1
  72. package/dist/generator-B7BQ7GSG.js +11 -0
  73. package/dist/generator-NDQUC266.cjs +12 -0
  74. package/dist/{generator-2Y7IQWGL.cjs.map → generator-NDQUC266.cjs.map} +1 -1
  75. package/dist/generator-SBFQTDAS.js +18 -0
  76. package/dist/{hancom-ESZFNI2E.js → hancom-IBHKEOO5.js} +2 -2
  77. package/dist/{hancom-BNZ4RKKJ.cjs → hancom-JYQQYZPV.cjs} +5 -5
  78. package/dist/{hancom-BNZ4RKKJ.cjs.map → hancom-JYQQYZPV.cjs.map} +1 -1
  79. package/dist/{hancom-OGPHOPDG.js → hancom-QGPXR2US.js} +2 -2
  80. package/dist/{image-ocr-T3RZGPNO.js → image-ocr-6O6E6XIZ.js} +7 -7
  81. package/dist/{image-ocr-BPEHDIDO.cjs → image-ocr-OHVXCHWL.cjs} +28 -28
  82. package/dist/{image-ocr-BPEHDIDO.cjs.map → image-ocr-OHVXCHWL.cjs.map} +1 -1
  83. package/dist/{image-ocr-AOMJNQAY.js → image-ocr-TKWNXWUY.js} +10 -10
  84. package/dist/index.cjs +1163 -1124
  85. package/dist/index.cjs.map +1 -1
  86. package/dist/index.d.cts +3 -0
  87. package/dist/index.d.ts +3 -0
  88. package/dist/index.js +50 -11
  89. package/dist/index.js.map +1 -1
  90. package/dist/mcp.js +36 -36
  91. package/dist/memo-TRWRHDYB.js +17 -0
  92. package/dist/{model-bundle-XCNGV2TZ.js → model-bundle-ICW2B75K.js} +5 -5
  93. package/dist/{models-2RZY4GJP.js → models-ZIAOV7EN.js} +5 -5
  94. package/dist/{parse-worker-v2-A5KZLAJ2.js → parse-worker-v2-QBMUV2FV.js} +23 -22
  95. package/dist/parse-worker-v2-QBMUV2FV.js.map +1 -0
  96. package/dist/{parser-7FV3T72F.js → parser-7SXRUERF.js} +9 -9
  97. package/dist/{parser-5WN44OJ5.cjs → parser-FIVOMRFD.cjs} +166 -166
  98. package/dist/{parser-5WN44OJ5.cjs.map → parser-FIVOMRFD.cjs.map} +1 -1
  99. package/dist/{parser-L5CTEVGS.js → parser-IYDEYLT2.js} +12 -12
  100. package/dist/{pdf-ocr-26I4EGEK.js → pdf-ocr-L2FDPW4J.js} +9 -9
  101. package/dist/{pdf-ocr-ZOJBTE6Y.js → pdf-ocr-NJAOCNPW.js} +6 -6
  102. package/dist/pdf-ocr-YVLMXFYG.cjs +43 -0
  103. package/dist/{pdf-ocr-KZHIINRN.cjs.map → pdf-ocr-YVLMXFYG.cjs.map} +1 -1
  104. package/dist/{profile-io-MC6IUVMK.js → profile-io-ZFFUBVD7.js} +3 -3
  105. package/dist/{rasterize-GN2L3JMX.js → rasterize-73LPY77L.js} +3 -3
  106. package/dist/{redact-doc-MVQFRD2M.js → redact-doc-PMLOYY4I.js} +21 -21
  107. package/dist/{render-VILHFOHS.js → render-6IUG73FB.js} +12 -12
  108. package/dist/{rewrite-fallback-LMQ4LCUY.js → rewrite-fallback-MLILIZUH.js} +13 -13
  109. package/dist/seal-KDPRMM4D.js +16 -0
  110. package/dist/{setup-A5KRXMHQ.js → setup-GOFOC4YG.js} +3 -3
  111. package/dist/{to-hwpx-7DO3UM4O.js → to-hwpx-3LMSUQTA.js} +7 -7
  112. package/dist/to-hwpx-OPZN5DZY.cjs +16 -0
  113. package/dist/{to-hwpx-F3CYK3SQ.cjs.map → to-hwpx-OPZN5DZY.cjs.map} +1 -1
  114. package/dist/{to-hwpx-3ANHUBYN.js → to-hwpx-Y3MXBDML.js} +4 -4
  115. package/dist/visual-VI4WYIWM.js +38 -0
  116. package/dist/{watch-SQMT2LDX.js → watch-WHMWDPKY.js} +22 -22
  117. package/package.json +1 -1
  118. package/dist/chunk-2KMS4LSR.js.map +0 -1
  119. package/dist/chunk-3GHNP4YF.js.map +0 -1
  120. package/dist/chunk-GO54TANI.js.map +0 -1
  121. package/dist/chunk-JGQE6QI5.cjs.map +0 -1
  122. package/dist/chunk-JYM2MSUJ.js.map +0 -1
  123. package/dist/chunk-NVMLYTJ7.cjs.map +0 -1
  124. package/dist/chunk-PDYDMIHJ.cjs.map +0 -1
  125. package/dist/chunk-QCT23BII.js.map +0 -1
  126. package/dist/chunk-T472IK5V.js.map +0 -1
  127. package/dist/chunk-T52EPT77.js.map +0 -1
  128. package/dist/chunk-UF6ZDIPI.js.map +0 -1
  129. package/dist/chunk-XALE4HY2.js.map +0 -1
  130. package/dist/chunk-YQ7SSNXP.cjs.map +0 -1
  131. package/dist/chunks-ECKR45UF.js +0 -11
  132. package/dist/generator-2Y7IQWGL.cjs +0 -12
  133. package/dist/generator-B74MB4RN.js +0 -11
  134. package/dist/generator-LLV6FI2D.js +0 -18
  135. package/dist/memo-TIVIVQB3.js +0 -17
  136. package/dist/parse-worker-v2-A5KZLAJ2.js.map +0 -1
  137. package/dist/pdf-ocr-KZHIINRN.cjs +0 -43
  138. package/dist/seal-N4JZWLYT.js +0 -16
  139. package/dist/to-hwpx-F3CYK3SQ.cjs +0 -16
  140. package/dist/visual-46D6XVJE.js +0 -38
  141. /package/dist/{-THTBNQ5Y.js.map → -JKJWVZ7E.js.map} +0 -0
  142. /package/dist/{chunk-FHUEJWZL.js.map → chunk-A73BTJH5.js.map} +0 -0
  143. /package/dist/{chunk-5RRLMFPB.js.map → chunk-AKMBPYRU.js.map} +0 -0
  144. /package/dist/{chunk-KQHO2DUH.js.map → chunk-B7JISVV7.js.map} +0 -0
  145. /package/dist/{chunk-GD4DHA2U.js.map → chunk-CD7YHKSF.js.map} +0 -0
  146. /package/dist/{chunk-QQN4LZLX.js.map → chunk-CL2GZ7JO.js.map} +0 -0
  147. /package/dist/{chunk-WACUI2XZ.js.map → chunk-E3IGBNLD.js.map} +0 -0
  148. /package/dist/{chunk-N2VSP3PP.js.map → chunk-FIKCNQ5Q.js.map} +0 -0
  149. /package/dist/{chunk-VJZ6TVEG.js.map → chunk-FZNNNXEW.js.map} +0 -0
  150. /package/dist/{chunk-OKUO5X5Z.js.map → chunk-HG6K7PDG.js.map} +0 -0
  151. /package/dist/{chunk-Q3GESJGN.js.map → chunk-JCNNDOOW.js.map} +0 -0
  152. /package/dist/{chunk-ULMPRHSC.js.map → chunk-JMYWAW2S.js.map} +0 -0
  153. /package/dist/{chunk-X4DZCB3U.js.map → chunk-KWISIIRJ.js.map} +0 -0
  154. /package/dist/{chunk-6RQWHFEZ.js.map → chunk-MQNJY7II.js.map} +0 -0
  155. /package/dist/{chunk-CZAGX76E.js.map → chunk-NCI5VSUC.js.map} +0 -0
  156. /package/dist/{chunk-UYO6HP4Z.js.map → chunk-ROHCAUUO.js.map} +0 -0
  157. /package/dist/{chunk-EQWU5IAR.js.map → chunk-SPEEZYS4.js.map} +0 -0
  158. /package/dist/{chunk-UC7KD3VI.js.map → chunk-SUMSKQ43.js.map} +0 -0
  159. /package/dist/{chunk-6FFGCPG2.js.map → chunk-SUXFV3AL.js.map} +0 -0
  160. /package/dist/{chunk-OWNA5FR2.js.map → chunk-UMF44YJH.js.map} +0 -0
  161. /package/dist/{chunk-PI3R3KRN.js.map → chunk-UZDSVTD4.js.map} +0 -0
  162. /package/dist/{chunk-DCY4MZWB.js.map → chunk-WIPBQVIK.js.map} +0 -0
  163. /package/dist/{chunk-DFEHSLNA.js.map → chunk-XABC4RKP.js.map} +0 -0
  164. /package/dist/{chunk-7U4KDW4H.js.map → chunk-YRMVLAYZ.js.map} +0 -0
  165. /package/dist/{chunk-AA5M6DA2.js.map → chunk-ZVUZZFGY.js.map} +0 -0
  166. /package/dist/{chunks-ECKR45UF.js.map → chunks-XCTKHHQF.js.map} +0 -0
  167. /package/dist/{formula-6KWYDTHQ.js.map → formula-DNS3KV3C.js.map} +0 -0
  168. /package/dist/{formula-IVEXGWTS.js.map → formula-VKUUIOIT.js.map} +0 -0
  169. /package/dist/{generator-B74MB4RN.js.map → generator-B7BQ7GSG.js.map} +0 -0
  170. /package/dist/{generator-LLV6FI2D.js.map → generator-SBFQTDAS.js.map} +0 -0
  171. /package/dist/{hancom-ESZFNI2E.js.map → hancom-IBHKEOO5.js.map} +0 -0
  172. /package/dist/{hancom-OGPHOPDG.js.map → hancom-QGPXR2US.js.map} +0 -0
  173. /package/dist/{image-ocr-T3RZGPNO.js.map → image-ocr-6O6E6XIZ.js.map} +0 -0
  174. /package/dist/{image-ocr-AOMJNQAY.js.map → image-ocr-TKWNXWUY.js.map} +0 -0
  175. /package/dist/{memo-TIVIVQB3.js.map → memo-TRWRHDYB.js.map} +0 -0
  176. /package/dist/{model-bundle-XCNGV2TZ.js.map → model-bundle-ICW2B75K.js.map} +0 -0
  177. /package/dist/{models-2RZY4GJP.js.map → models-ZIAOV7EN.js.map} +0 -0
  178. /package/dist/{parser-7FV3T72F.js.map → parser-7SXRUERF.js.map} +0 -0
  179. /package/dist/{parser-L5CTEVGS.js.map → parser-IYDEYLT2.js.map} +0 -0
  180. /package/dist/{pdf-ocr-26I4EGEK.js.map → pdf-ocr-L2FDPW4J.js.map} +0 -0
  181. /package/dist/{pdf-ocr-ZOJBTE6Y.js.map → pdf-ocr-NJAOCNPW.js.map} +0 -0
  182. /package/dist/{profile-io-MC6IUVMK.js.map → profile-io-ZFFUBVD7.js.map} +0 -0
  183. /package/dist/{rasterize-GN2L3JMX.js.map → rasterize-73LPY77L.js.map} +0 -0
  184. /package/dist/{redact-doc-MVQFRD2M.js.map → redact-doc-PMLOYY4I.js.map} +0 -0
  185. /package/dist/{render-VILHFOHS.js.map → render-6IUG73FB.js.map} +0 -0
  186. /package/dist/{rewrite-fallback-LMQ4LCUY.js.map → rewrite-fallback-MLILIZUH.js.map} +0 -0
  187. /package/dist/{seal-N4JZWLYT.js.map → seal-KDPRMM4D.js.map} +0 -0
  188. /package/dist/{setup-A5KRXMHQ.js.map → setup-GOFOC4YG.js.map} +0 -0
  189. /package/dist/{to-hwpx-3ANHUBYN.js.map → to-hwpx-3LMSUQTA.js.map} +0 -0
  190. /package/dist/{to-hwpx-7DO3UM4O.js.map → to-hwpx-Y3MXBDML.js.map} +0 -0
  191. /package/dist/{visual-46D6XVJE.js.map → visual-VI4WYIWM.js.map} +0 -0
  192. /package/dist/{watch-SQMT2LDX.js.map → watch-WHMWDPKY.js.map} +0 -0
package/README.md CHANGED
@@ -134,15 +134,15 @@ await writeFile("보고서.hwpx", Buffer.from(hwpx))
134
134
 
135
135
  ## 최근 업데이트
136
136
 
137
- 최신 배포: **[4.24.62](https://github.com/chrisryugj/kordoc/releases/tag/v4.24.62)** · 2026-11-11
137
+ 최신 배포: **[4.24.63](https://github.com/chrisryugj/kordoc/releases/tag/v4.24.63)** · 2026-11-11
138
138
 
139
139
  | 버전 | 주요 변경 | 수치 변화 |
140
140
  | --- | --- | --- |
141
+ | 4.24.63 | 본문 URL·QR 주소가 마크다운 뷰어에서 원래 주소로 열리게, HTML 표 셀 링크를 `<a href>` 로 내는 `htmlCellLinks` 옵션(기본 꺼짐) (#204) · OCR 감색 머리 열 흰 틈 행 경계 | 자체 벤치 문서별 하락 0 · KoOCR-Bench 0.90517 그대로 |
141
142
  | 4.24.62 | 견본 없이 만든 HWPX 에 `version.xml` 이 빠지던 것(#207) · PDF·OCR 쪽 제목과 맨 아래 한 줄이 한 덩어리로 묶여 표 앞에 읽히던 것 · OCR 이웃 줄 글자 조각을 문 글자 상자 | KoOCR-Bench 0.90509 → **0.90517** (순서 0.913 → **0.914**) · OCR robust skew-2 CER 0.0475 → **0.0463** · 자체 벤치 문서별 하락 0 |
142
143
  | 4.24.61 | OCR 글자 세로 획이 이어 만든 가짜 세로 괘선이 표 열을 쪼개던 것 · OCR 두 줄을 덮어 무너지게 읽힌 줄 상자 · MiniCPM-OCR OcrProvider 예제(#205) | KoOCR-Bench 0.90439 → **0.90509** (표 0.913 → **0.915**) · 자체 OCR 표 구조 일치 32 → **33**/65 |
143
144
  | 4.24.60 | XML 파서를 quick-xml(wasm)로 교체(#202, 의존성 하나 줄고 깨진 XML 회복) · PDF 수식 OCR 여러 줄 식 가운데 줄 놓침 · OCR 기울기 보정으로 번진 세로 괘선 · OCR 표 칸 기호(○) 저신뢰 버림 · 공문서 본문 "○○ MCP" 낱말 지움(#203) | 수식 OCR 재현율 0.9758 → **0.9775**, 정밀도 0.9699 → **0.9725**(보고 전용) · OCR robust skew+3 CER 0.0481 → **0.0444**, scan 0.0550 → **0.0542** · 자체 벤치 문서별 하락 1(조직도 세로쓰기 조각 순서) |
144
145
  | 4.24.59 | OCR 점선 칸 괘선 너머 이웃 행 글자 끝자락이 숫자 상자에 붙어 이웃 행 값과 한 칸에 몰리던 것 · OCR 스캔 상자 테두리 옆 번진 띠 때문에 조직도 글이 상자 밖으로 새던 것 | KoOCR-Bench 0.90378 → **0.90439** (표 0.912 → **0.913**) · OCR robust scan CER 0.0591 → **0.0557** |
145
- | 4.24.58 | 선택형 gVisor 샌드박스 `KORDOC_SANDBOX=gvisor`(Linux, #199) · OCR 표 맨 끝 "*" 각주 칸이 문단으로 빠지던 것 · OCR 이웃 칸 시각 값("0:34"·"0:32")이 한 칸에 붙던 것 | 자체 OCR 표 구조 일치 31 → **32**/65 · KoOCR-Bench 0.90370 → **0.90378** · 자체 벤치 문서별 하락 0 |
146
146
 
147
147
  이전 버전과 상세 내용은 [변경 이력](CHANGELOG.md)에 있습니다.
148
148
 
@@ -53,7 +53,7 @@ import {
53
53
  usesGaejosikMunche,
54
54
  usesLogicStructure,
55
55
  validateHwpx
56
- } from "./chunk-GO54TANI.js";
56
+ } from "./chunk-3R4LS2QM.js";
57
57
  import {
58
58
  blocksToPdf,
59
59
  extractRenderedRegions,
@@ -64,16 +64,16 @@ import {
64
64
  renderHwp5Pages,
65
65
  renderHwpxToSvg,
66
66
  renderSceneToHtml
67
- } from "./chunk-6PQL2BGI.js";
67
+ } from "./chunk-PTWPZYBM.js";
68
68
  import {
69
69
  blocksToPages
70
- } from "./chunk-7U4KDW4H.js";
70
+ } from "./chunk-YRMVLAYZ.js";
71
71
  import {
72
72
  extractClickHereFields,
73
73
  patchHwp,
74
74
  patchHwpx
75
- } from "./chunk-GD4DHA2U.js";
76
- import "./chunk-DCY4MZWB.js";
75
+ } from "./chunk-CD7YHKSF.js";
76
+ import "./chunk-WIPBQVIK.js";
77
77
  import {
78
78
  AGENCY_COMMON_NAME,
79
79
  PRESET_ALIAS,
@@ -83,7 +83,7 @@ import {
83
83
  markdownToHwpx,
84
84
  normalizeGongmunPreset,
85
85
  placeTotalRow
86
- } from "./chunk-T52EPT77.js";
86
+ } from "./chunk-BW2KS7VQ.js";
87
87
  import {
88
88
  SPACE_EM_FIXED,
89
89
  SPACE_EM_FONT,
@@ -92,15 +92,15 @@ import {
92
92
  measureTextWidth,
93
93
  simulateWrap,
94
94
  simulateWrapKeepWord
95
- } from "./chunk-6RQWHFEZ.js";
95
+ } from "./chunk-MQNJY7II.js";
96
96
  import {
97
97
  addMemoHwpx
98
- } from "./chunk-EQWU5IAR.js";
98
+ } from "./chunk-SPEEZYS4.js";
99
99
  import {
100
100
  placeSealHwpx
101
- } from "./chunk-5RRLMFPB.js";
102
- import "./chunk-QQN4LZLX.js";
103
- import "./chunk-N2VSP3PP.js";
101
+ } from "./chunk-AKMBPYRU.js";
102
+ import "./chunk-CL2GZ7JO.js";
103
+ import "./chunk-FIKCNQ5Q.js";
104
104
  import {
105
105
  ValueCursor,
106
106
  applySplices,
@@ -114,15 +114,15 @@ import {
114
114
  isLabelCell,
115
115
  scanSectionXml
116
116
  } from "./chunk-3AHL6YEA.js";
117
- import "./chunk-PI3R3KRN.js";
117
+ import "./chunk-UZDSVTD4.js";
118
118
  import {
119
119
  convertToHwpx,
120
120
  hwpToHwpx
121
- } from "./chunk-ULMPRHSC.js";
122
- import "./chunk-VJZ6TVEG.js";
121
+ } from "./chunk-JMYWAW2S.js";
122
+ import "./chunk-FZNNNXEW.js";
123
123
  import "./chunk-FU6ZDWCI.js";
124
124
  import "./chunk-OFVHQ2TZ.js";
125
- import "./chunk-KQHO2DUH.js";
125
+ import "./chunk-B7JISVV7.js";
126
126
  import "./chunk-WFKFG2RT.js";
127
127
  import {
128
128
  DEFAULT_REDACT_RULES,
@@ -131,8 +131,8 @@ import {
131
131
  } from "./chunk-3WSNLH4B.js";
132
132
  import {
133
133
  blocksToChunks
134
- } from "./chunk-OKUO5X5Z.js";
135
- import "./chunk-OWNA5FR2.js";
134
+ } from "./chunk-HG6K7PDG.js";
135
+ import "./chunk-UMF44YJH.js";
136
136
  import "./chunk-VQFA55IC.js";
137
137
  import {
138
138
  detectFormat,
@@ -146,16 +146,16 @@ import {
146
146
  import "./chunk-H7K5YHWQ.js";
147
147
  import "./chunk-IIOBUTXH.js";
148
148
  import "./chunk-QLZHIJWJ.js";
149
- import "./chunk-QGCSYIUV.js";
149
+ import "./chunk-TFEQHER2.js";
150
150
  import {
151
151
  blocksToMarkdown,
152
152
  flattenLayoutTables,
153
153
  hasStructuredCellContent
154
- } from "./chunk-3GHNP4YF.js";
154
+ } from "./chunk-55QH5LSM.js";
155
155
  import "./chunk-KFF47XZ7.js";
156
156
  import {
157
157
  VERSION
158
- } from "./chunk-2KMS4LSR.js";
158
+ } from "./chunk-DQEZVDKS.js";
159
159
  export {
160
160
  AGENCY_COMMON_NAME,
161
161
  BUILTIN_TEMPLATES,
@@ -269,4 +269,4 @@ export {
269
269
  usesLogicStructure,
270
270
  validateHwpx
271
271
  };
272
- //# sourceMappingURL=-THTBNQ5Y.js.map
272
+ //# sourceMappingURL=-JKJWVZ7E.js.map
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  extractRenderedRegions,
4
4
  renderDocumentToScene
5
- } from "./chunk-6PQL2BGI.js";
5
+ } from "./chunk-PTWPZYBM.js";
6
6
  import {
7
7
  WEBP_OPTIONS,
8
8
  blocksToPages,
@@ -10,7 +10,7 @@ import {
10
10
  loadSharp,
11
11
  readImageQrCodes,
12
12
  toBuffer
13
- } from "./chunk-7U4KDW4H.js";
13
+ } from "./chunk-YRMVLAYZ.js";
14
14
  import {
15
15
  applyCellEdit,
16
16
  buildOrigUnits,
@@ -23,7 +23,7 @@ import {
23
23
  resolveParagraphMappings,
24
24
  resolveSectionEntryNames,
25
25
  stripCellTokens
26
- } from "./chunk-GD4DHA2U.js";
26
+ } from "./chunk-CD7YHKSF.js";
27
27
  import {
28
28
  TOTAL_LABEL_RE,
29
29
  comResultToParseResult,
@@ -49,10 +49,10 @@ import {
49
49
  stripHeadMarker,
50
50
  summarize,
51
51
  topLevelParagraphs
52
- } from "./chunk-T52EPT77.js";
52
+ } from "./chunk-BW2KS7VQ.js";
53
53
  import {
54
54
  patchZipEntries
55
- } from "./chunk-N2VSP3PP.js";
55
+ } from "./chunk-FIKCNQ5Q.js";
56
56
  import {
57
57
  ANNOTATION_BLANK_RE,
58
58
  ValueCursor,
@@ -91,7 +91,7 @@ import {
91
91
  rawTextContent,
92
92
  readZipEntry,
93
93
  warnInto
94
- } from "./chunk-PI3R3KRN.js";
94
+ } from "./chunk-UZDSVTD4.js";
95
95
  import {
96
96
  INLINE_TABLE_MARK,
97
97
  blocksPlainText,
@@ -104,7 +104,7 @@ import {
104
104
  memosMarkdown,
105
105
  parseHwp5Document,
106
106
  resolveImageBlocks
107
- } from "./chunk-VJZ6TVEG.js";
107
+ } from "./chunk-FZNNNXEW.js";
108
108
  import {
109
109
  MAX_PIXELS,
110
110
  bmpToPng,
@@ -136,7 +136,7 @@ import {
136
136
  stripScriptTags,
137
137
  tidyScriptTags,
138
138
  wrapScript
139
- } from "./chunk-QGCSYIUV.js";
139
+ } from "./chunk-TFEQHER2.js";
140
140
  import {
141
141
  MAX_COLS,
142
142
  MAX_ROWS,
@@ -147,23 +147,29 @@ import {
147
147
  flattenLayoutTables,
148
148
  hasStructuredCellContent,
149
149
  sanitizeText
150
- } from "./chunk-3GHNP4YF.js";
150
+ } from "./chunk-55QH5LSM.js";
151
151
  import {
152
152
  hangulAmount,
153
153
  mapPuaText
154
154
  } from "./chunk-KFF47XZ7.js";
155
155
  import {
156
+ BARE_URL,
156
157
  KordocError,
157
158
  VERSION,
158
159
  classifyError,
160
+ escapeHtml,
161
+ gfmUrlEnd,
162
+ gfmUrlHref,
163
+ isGfmUrl,
159
164
  partExtension,
160
165
  precheckZipSize,
161
166
  sanitizeError,
162
167
  sanitizeHref,
163
168
  stripDtd,
164
169
  toArrayBuffer,
170
+ unescapeHtml,
165
171
  unzipLimitBytes
166
- } from "./chunk-2KMS4LSR.js";
172
+ } from "./chunk-DQEZVDKS.js";
167
173
 
168
174
  // src/table/visual.ts
169
175
  import { readFile as readFile2 } from "fs/promises";
@@ -177,8 +183,9 @@ function toPlainMarkdown(md) {
177
183
  var TABLE_TAG = /(<\/?(?:table|tr|th|td)\b[^>]*>)/i;
178
184
  var KORDOC_IMG = String.raw`<img src="(?:images\/(?:[^"'<>\/\s]+\/)?)?image_\d+\.(?:png|jpe?g|gif|webp|bmp)" alt="image">`;
179
185
  var KEEP_TAG = new RegExp(String.raw`((?<!\\)<br>|(?<!\\)<\/?(?:u|sup|sub)>|(?<!\\)${KORDOC_IMG})`, "i");
186
+ var escapeText = (s) => s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
180
187
  function pipeCellToHtml(cell) {
181
- return cell.split(KEEP_TAG).map((part, i) => i % 2 ? part : part.replace(/\\([\\`*_{}[\]()#+\-.!|~<>$])/g, "$1").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;")).join("");
188
+ return cell.split(KEEP_TAG).map((part, i) => i % 2 ? part : part.split(/(?<!\\)<(https?:\/\/[^\s<>]*)>/i).map((seg, k) => escapeText(k % 2 ? seg.replace(/\\\|/g, "|") : seg.replace(/\\([\\`*_{}[\]()#+\-.!|~<>$])/g, "$1"))).join("")).join("");
182
189
  }
183
190
  function splitPipeRow(line) {
184
191
  const t = line.trim().replace(/^\|/, "").replace(/(?<!\\)\|$/, "");
@@ -238,6 +245,36 @@ function toHtmlTables(md) {
238
245
  return out.join("\n");
239
246
  }
240
247
 
248
+ // src/html-cell-links.ts
249
+ var TEXT_LINK = new RegExp(String.raw`\[([^[\]\n]*)\]\(((?:https?:|mailto:|tel:|#)[^)\s<>"'\x60]*)\)|(${BARE_URL})`, "gi");
250
+ var TAG = /(<[^>]*>)/;
251
+ function linkText(html) {
252
+ const text = unescapeHtml(html);
253
+ let out = "", last = 0;
254
+ for (const m of text.matchAll(TEXT_LINK)) {
255
+ const at = m.index;
256
+ let shown = m[1], href = m[2], end = at + m[0].length;
257
+ if (m[3]) {
258
+ if (!isGfmUrl(m[3], text, end)) continue;
259
+ shown = m[3].slice(0, gfmUrlEnd(m[3]));
260
+ href = gfmUrlHref(shown);
261
+ end = at + shown.length;
262
+ }
263
+ out += escapeHtml(text.slice(last, at)) + `<a href="${escapeHtml(sanitizeHref(href) ?? "", true)}">${escapeHtml(shown)}</a>`;
264
+ last = end;
265
+ }
266
+ return last ? out + escapeHtml(text.slice(last)) : html;
267
+ }
268
+ function htmlCellLinks(markdown) {
269
+ let depth = 0;
270
+ return markdown.split("\n").map((line) => {
271
+ const opens = (line.match(/(?<!\\)<table\b/gi) ?? []).length;
272
+ if (!depth && !opens) return line;
273
+ depth = Math.max(0, depth + opens - (line.match(/(?<!\\)<\/table>/gi) ?? []).length);
274
+ return line.split(TAG).map((part, i) => i % 2 ? part : linkText(part)).join("");
275
+ }).join("\n");
276
+ }
277
+
241
278
  // src/index.ts
242
279
  import { readFile } from "fs/promises";
243
280
 
@@ -16908,7 +16945,7 @@ var MIN_SIDE = 24;
16908
16945
  async function ocrEmbeddedImages(blocks, options, warnings) {
16909
16946
  const ocr = options?.ocr;
16910
16947
  if (ocr !== true && ocr !== "force" && typeof ocr !== "function") return false;
16911
- const { parseImageDocument } = await import("./image-ocr-AOMJNQAY.js");
16948
+ const { parseImageDocument } = await import("./image-ocr-TKWNXWUY.js");
16912
16949
  let inserted = false, unreadable = 0;
16913
16950
  let failed = null;
16914
16951
  const walk = async (list, depth) => {
@@ -20526,6 +20563,9 @@ async function parse(input, options) {
20526
20563
  if (out.success && opts?.htmlTables) {
20527
20564
  out = { ...out, markdown: toHtmlTables(out.markdown), ...out.pages ? { pages: out.pages.map((p) => ({ ...p, markdown: toHtmlTables(p.markdown) })) } : {} };
20528
20565
  }
20566
+ if (out.success && opts?.htmlCellLinks) {
20567
+ out = { ...out, markdown: htmlCellLinks(out.markdown), ...out.pages ? { pages: out.pages.map((p) => ({ ...p, markdown: htmlCellLinks(p.markdown) })) } : {} };
20568
+ }
20529
20569
  return out;
20530
20570
  }
20531
20571
  function dropImageBytes(blocks, depth = 0) {
@@ -20602,7 +20642,7 @@ function scriptsOff(r, off) {
20602
20642
  }
20603
20643
  async function parseImage(buffer, options) {
20604
20644
  try {
20605
- const { parseImageDocument } = await import("./image-ocr-AOMJNQAY.js");
20645
+ const { parseImageDocument } = await import("./image-ocr-TKWNXWUY.js");
20606
20646
  const { blocks, warnings, lines } = await parseImageDocument(buffer, options);
20607
20647
  stripScriptTags({ blocks });
20608
20648
  return {
@@ -20677,7 +20717,7 @@ async function parseHwp(buffer, options) {
20677
20717
  async function parsePdf(buffer, options) {
20678
20718
  let parsePdfDocument;
20679
20719
  try {
20680
- const mod = await import("./parser-L5CTEVGS.js");
20720
+ const mod = await import("./parser-IYDEYLT2.js");
20681
20721
  parsePdfDocument = mod.parsePdfDocument;
20682
20722
  } catch {
20683
20723
  return {
@@ -20759,7 +20799,7 @@ async function fillForm(input, values, outputFormat = "markdown") {
20759
20799
  throw new Error(`hwpx-preserve \uD3EC\uB9F7\uC740 HWPX\xB7HWP 5.x \uC785\uB825\uB9CC \uC9C0\uC6D0\uD569\uB2C8\uB2E4 (\uAC10\uC9C0\uB41C \uD3EC\uB9F7: ${zipFormat})`);
20760
20800
  }
20761
20801
  } else if (format2 === "hwp" && detectOle2Format(buffer) === "hwp") {
20762
- const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-7DO3UM4O.js");
20802
+ const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-3LMSUQTA.js");
20763
20803
  const hwpx = await hwpToHwpx2(new Uint8Array(buffer));
20764
20804
  buffer = hwpx.buffer.slice(hwpx.byteOffset, hwpx.byteOffset + hwpx.byteLength);
20765
20805
  } else {
@@ -20854,6 +20894,7 @@ async function extractTables(input, options = {}) {
20854
20894
  export {
20855
20895
  toPlainMarkdown,
20856
20896
  toHtmlTables,
20897
+ htmlCellLinks,
20857
20898
  fillFormFields,
20858
20899
  fillHwpx,
20859
20900
  classifyTable,
@@ -20908,4 +20949,4 @@ export {
20908
20949
  parseHwpml,
20909
20950
  fillForm
20910
20951
  };
20911
- //# sourceMappingURL=chunk-GO54TANI.js.map
20952
+ //# sourceMappingURL=chunk-3R4LS2QM.js.map