kordoc 4.18.13 → 4.19.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.
Files changed (129) hide show
  1. package/README.md +2 -1
  2. package/dist/{-DC2OO5KO.js → -I3DEUQUC.js} +11 -11
  3. package/dist/{chunk-K6WSMTVU.cjs → chunk-34RIECIF.cjs} +2 -2
  4. package/dist/{chunk-K6WSMTVU.cjs.map → chunk-34RIECIF.cjs.map} +1 -1
  5. package/dist/{chunk-EBXJ45VZ.js → chunk-5B55S4JU.js} +2 -2
  6. package/dist/{chunk-EBXJ45VZ.js.map → chunk-5B55S4JU.js.map} +1 -1
  7. package/dist/{chunk-6CQZMVXW.cjs → chunk-5ZSQ2ZIH.cjs} +3 -3
  8. package/dist/{chunk-6CQZMVXW.cjs.map → chunk-5ZSQ2ZIH.cjs.map} +1 -1
  9. package/dist/{chunk-GGMIPTM5.cjs → chunk-7TVRQJXI.cjs} +12 -12
  10. package/dist/{chunk-GGMIPTM5.cjs.map → chunk-7TVRQJXI.cjs.map} +1 -1
  11. package/dist/{chunk-6AYTYTFY.js → chunk-AAE765MK.js} +3 -3
  12. package/dist/{chunk-ISC2TH24.js → chunk-AMDDV4CI.js} +2 -2
  13. package/dist/{chunk-GUH6HYSZ.js → chunk-C4JHZNRL.js} +25 -22
  14. package/dist/chunk-C4JHZNRL.js.map +1 -0
  15. package/dist/{chunk-EZSWBHHI.js → chunk-CR4RXHXO.js} +2 -2
  16. package/dist/{chunk-32ZUIHSY.js → chunk-DEYCTP2S.js} +3 -3
  17. package/dist/{chunk-SVIOP7PE.js → chunk-DGXGVC4Z.js} +7 -7
  18. package/dist/{chunk-SVIOP7PE.js.map → chunk-DGXGVC4Z.js.map} +1 -1
  19. package/dist/{chunk-JPSLMPFI.js → chunk-DH75ZUYF.js} +95 -11
  20. package/dist/chunk-DH75ZUYF.js.map +1 -0
  21. package/dist/{chunk-DHEUQXXR.js → chunk-FJE3TMZ7.js} +2 -2
  22. package/dist/{chunk-ZNY5BRV6.js → chunk-GCYLNOTJ.js} +4 -4
  23. package/dist/{chunk-GSW7W7AL.js → chunk-GYQVQF2J.js} +7 -4
  24. package/dist/chunk-GYQVQF2J.js.map +1 -0
  25. package/dist/{chunk-7LOD4IGO.js → chunk-HFMIAMEO.js} +4 -4
  26. package/dist/{chunk-XVB3PUPJ.js → chunk-L5KNWOGR.js} +2 -2
  27. package/dist/chunk-L5KNWOGR.js.map +1 -0
  28. package/dist/{chunk-RQEDNI4P.cjs → chunk-LLVF6X5W.cjs} +3 -3
  29. package/dist/{chunk-RQEDNI4P.cjs.map → chunk-LLVF6X5W.cjs.map} +1 -1
  30. package/dist/{chunk-6FW3AZWN.cjs → chunk-LNU54ZKV.cjs} +117 -33
  31. package/dist/chunk-LNU54ZKV.cjs.map +1 -0
  32. package/dist/{chunk-IRN5SDY2.js → chunk-OMJWAJBD.js} +2 -2
  33. package/dist/{chunk-V7LKQNC4.js → chunk-QHN7N2QA.js} +2 -2
  34. package/dist/{chunk-INESPVEV.js → chunk-RYKNAYKC.js} +3 -3
  35. package/dist/{chunk-LKA7Z2NH.js → chunk-UCTD3BXH.js} +2 -2
  36. package/dist/{chunk-PN5WWW56.js → chunk-UTVNSCEI.js} +2 -2
  37. package/dist/{chunk-PN5WWW56.js.map → chunk-UTVNSCEI.js.map} +1 -1
  38. package/dist/{chunk-JWTZ3OVZ.js → chunk-VZSOPECZ.js} +2 -2
  39. package/dist/{chunk-VDEENOPW.js → chunk-W5XX2GKO.js} +2 -2
  40. package/dist/{chunk-PHMWSWHJ.js → chunk-XIWGPC3V.js} +2 -2
  41. package/dist/{chunk-JKHU7HID.js → chunk-XXUXQHUC.js} +95 -11
  42. package/dist/chunk-XXUXQHUC.js.map +1 -0
  43. package/dist/{chunk-3FGHQWJP.cjs → chunk-YV4PWWRW.cjs} +22 -22
  44. package/dist/{chunk-3FGHQWJP.cjs.map → chunk-YV4PWWRW.cjs.map} +1 -1
  45. package/dist/chunks-JPNLQOVD.js +10 -0
  46. package/dist/cli.js +39 -28
  47. package/dist/cli.js.map +1 -1
  48. package/dist/{formula-YCAO5IVW.js → formula-DUEAYGIG.js} +4 -4
  49. package/dist/{formula-DAMFHLQO.js → formula-I4MAHCTZ.js} +3 -3
  50. package/dist/{formula-HJNQGPRC.cjs → formula-L2BKGA4J.cjs} +9 -9
  51. package/dist/{formula-HJNQGPRC.cjs.map → formula-L2BKGA4J.cjs.map} +1 -1
  52. package/dist/{image-ocr-VH54SDZ7.js → image-ocr-B32G24XW.js} +6 -6
  53. package/dist/{image-ocr-PAF76DAW.js → image-ocr-NUL3JKXM.js} +9 -9
  54. package/dist/{image-ocr-AZ25IOC7.cjs → image-ocr-ZWRJZKYR.cjs} +15 -15
  55. package/dist/{image-ocr-AZ25IOC7.cjs.map → image-ocr-ZWRJZKYR.cjs.map} +1 -1
  56. package/dist/index.cjs +669 -663
  57. package/dist/index.cjs.map +1 -1
  58. package/dist/index.d.cts +15 -2
  59. package/dist/index.d.ts +15 -2
  60. package/dist/index.js +26 -20
  61. package/dist/index.js.map +1 -1
  62. package/dist/mcp.js +25 -23
  63. package/dist/mcp.js.map +1 -1
  64. package/dist/{model-bundle-53CHDYCG.js → model-bundle-OBIKG4K5.js} +5 -5
  65. package/dist/{models-UVLAKK3M.js → models-2OZHOPPM.js} +5 -5
  66. package/dist/{parser-HWAOPQYK.cjs → parser-DMWCXX7A.cjs} +131 -129
  67. package/dist/parser-DMWCXX7A.cjs.map +1 -0
  68. package/dist/{parser-I4D3TRGU.js → parser-FDE6GQST.js} +14 -12
  69. package/dist/{parser-Z6PHB54O.js.map → parser-FDE6GQST.js.map} +1 -1
  70. package/dist/{parser-Z6PHB54O.js → parser-YW3NMSJE.js} +11 -9
  71. package/dist/{parser-I4D3TRGU.js.map → parser-YW3NMSJE.js.map} +1 -1
  72. package/dist/pdf-ocr-7MR56U4P.js +16 -0
  73. package/dist/pdf-ocr-K2OK7FNQ.cjs +17 -0
  74. package/dist/{pdf-ocr-HR6CXGTX.cjs.map → pdf-ocr-K2OK7FNQ.cjs.map} +1 -1
  75. package/dist/pdf-ocr-YHC4X67W.js +20 -0
  76. package/dist/{profile-io-WHCWCOPW.js → profile-io-6WCU4KHY.js} +3 -3
  77. package/dist/{rasterize-5DZ3DHGH.js → rasterize-X3I7SWXF.js} +3 -3
  78. package/dist/{redact-doc-RNJVMFGQ.js → redact-doc-6H7WPUQD.js} +11 -11
  79. package/dist/{render-NZ6RA6SW.js → render-PBQJGZT3.js} +7 -7
  80. package/dist/seal-E2E7CFZJ.js +10 -0
  81. package/dist/{setup-U3EQNK4Z.js → setup-UORJSR3M.js} +3 -3
  82. package/dist/visual-4GDT5BRH.js +20 -0
  83. package/dist/{watch-GB2M7XU6.js → watch-S2ZMDDZU.js} +12 -12
  84. package/package.json +3 -2
  85. package/dist/chunk-6FW3AZWN.cjs.map +0 -1
  86. package/dist/chunk-GSW7W7AL.js.map +0 -1
  87. package/dist/chunk-GUH6HYSZ.js.map +0 -1
  88. package/dist/chunk-JKHU7HID.js.map +0 -1
  89. package/dist/chunk-JPSLMPFI.js.map +0 -1
  90. package/dist/chunk-XVB3PUPJ.js.map +0 -1
  91. package/dist/chunks-JZW2TXIZ.js +0 -10
  92. package/dist/parser-HWAOPQYK.cjs.map +0 -1
  93. package/dist/pdf-ocr-F4ICXO7W.js +0 -20
  94. package/dist/pdf-ocr-HR6CXGTX.cjs +0 -17
  95. package/dist/pdf-ocr-JI3K7JIN.js +0 -16
  96. package/dist/seal-WHJ6O5HT.js +0 -10
  97. package/dist/visual-JDAS4R43.js +0 -20
  98. /package/dist/{-DC2OO5KO.js.map → -I3DEUQUC.js.map} +0 -0
  99. /package/dist/{chunk-6AYTYTFY.js.map → chunk-AAE765MK.js.map} +0 -0
  100. /package/dist/{chunk-ISC2TH24.js.map → chunk-AMDDV4CI.js.map} +0 -0
  101. /package/dist/{chunk-EZSWBHHI.js.map → chunk-CR4RXHXO.js.map} +0 -0
  102. /package/dist/{chunk-32ZUIHSY.js.map → chunk-DEYCTP2S.js.map} +0 -0
  103. /package/dist/{chunk-DHEUQXXR.js.map → chunk-FJE3TMZ7.js.map} +0 -0
  104. /package/dist/{chunk-ZNY5BRV6.js.map → chunk-GCYLNOTJ.js.map} +0 -0
  105. /package/dist/{chunk-7LOD4IGO.js.map → chunk-HFMIAMEO.js.map} +0 -0
  106. /package/dist/{chunk-IRN5SDY2.js.map → chunk-OMJWAJBD.js.map} +0 -0
  107. /package/dist/{chunk-V7LKQNC4.js.map → chunk-QHN7N2QA.js.map} +0 -0
  108. /package/dist/{chunk-INESPVEV.js.map → chunk-RYKNAYKC.js.map} +0 -0
  109. /package/dist/{chunk-LKA7Z2NH.js.map → chunk-UCTD3BXH.js.map} +0 -0
  110. /package/dist/{chunk-JWTZ3OVZ.js.map → chunk-VZSOPECZ.js.map} +0 -0
  111. /package/dist/{chunk-VDEENOPW.js.map → chunk-W5XX2GKO.js.map} +0 -0
  112. /package/dist/{chunk-PHMWSWHJ.js.map → chunk-XIWGPC3V.js.map} +0 -0
  113. /package/dist/{chunks-JZW2TXIZ.js.map → chunks-JPNLQOVD.js.map} +0 -0
  114. /package/dist/{formula-YCAO5IVW.js.map → formula-DUEAYGIG.js.map} +0 -0
  115. /package/dist/{formula-DAMFHLQO.js.map → formula-I4MAHCTZ.js.map} +0 -0
  116. /package/dist/{image-ocr-VH54SDZ7.js.map → image-ocr-B32G24XW.js.map} +0 -0
  117. /package/dist/{image-ocr-PAF76DAW.js.map → image-ocr-NUL3JKXM.js.map} +0 -0
  118. /package/dist/{model-bundle-53CHDYCG.js.map → model-bundle-OBIKG4K5.js.map} +0 -0
  119. /package/dist/{models-UVLAKK3M.js.map → models-2OZHOPPM.js.map} +0 -0
  120. /package/dist/{pdf-ocr-F4ICXO7W.js.map → pdf-ocr-7MR56U4P.js.map} +0 -0
  121. /package/dist/{pdf-ocr-JI3K7JIN.js.map → pdf-ocr-YHC4X67W.js.map} +0 -0
  122. /package/dist/{profile-io-WHCWCOPW.js.map → profile-io-6WCU4KHY.js.map} +0 -0
  123. /package/dist/{rasterize-5DZ3DHGH.js.map → rasterize-X3I7SWXF.js.map} +0 -0
  124. /package/dist/{redact-doc-RNJVMFGQ.js.map → redact-doc-6H7WPUQD.js.map} +0 -0
  125. /package/dist/{render-NZ6RA6SW.js.map → render-PBQJGZT3.js.map} +0 -0
  126. /package/dist/{seal-WHJ6O5HT.js.map → seal-E2E7CFZJ.js.map} +0 -0
  127. /package/dist/{setup-U3EQNK4Z.js.map → setup-UORJSR3M.js.map} +0 -0
  128. /package/dist/{visual-JDAS4R43.js.map → visual-4GDT5BRH.js.map} +0 -0
  129. /package/dist/{watch-GB2M7XU6.js.map → watch-S2ZMDDZU.js.map} +0 -0
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  parseRenderStyles
4
- } from "./chunk-DHEUQXXR.js";
4
+ } from "./chunk-FJE3TMZ7.js";
5
5
  import {
6
6
  KordocError,
7
7
  precheckZipSize
8
- } from "./chunk-PN5WWW56.js";
8
+ } from "./chunk-UTVNSCEI.js";
9
9
 
10
10
  // src/form/seal.ts
11
11
  import JSZip from "jszip";
@@ -1057,4 +1057,4 @@ export {
1057
1057
  patchZipEntries,
1058
1058
  placeSealHwpx
1059
1059
  };
1060
- //# sourceMappingURL=chunk-6AYTYTFY.js.map
1060
+ //# sourceMappingURL=chunk-AAE765MK.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  KordocError
4
- } from "./chunk-PN5WWW56.js";
4
+ } from "./chunk-UTVNSCEI.js";
5
5
 
6
6
  // src/shared/offline.ts
7
7
  import { realpathSync } from "fs";
@@ -49,4 +49,4 @@ export {
49
49
  getAccessRoot,
50
50
  assertWithinRoot
51
51
  };
52
- //# sourceMappingURL=chunk-ISC2TH24.js.map
52
+ //# sourceMappingURL=chunk-AMDDV4CI.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  blocksToPages
4
- } from "./chunk-V7LKQNC4.js";
4
+ } from "./chunk-QHN7N2QA.js";
5
5
  import {
6
6
  allLinesegRemovalSplices,
7
7
  applySplices,
@@ -15,7 +15,7 @@ import {
15
15
  paraTextPureT,
16
16
  patchZipEntries,
17
17
  scanSectionXml
18
- } from "./chunk-6AYTYTFY.js";
18
+ } from "./chunk-AAE765MK.js";
19
19
  import {
20
20
  CONVERT_MAP,
21
21
  FLAG_COMPRESSED,
@@ -65,7 +65,7 @@ import {
65
65
  romanNumeral,
66
66
  simulateWrap,
67
67
  takeTocLeaders
68
- } from "./chunk-SVIOP7PE.js";
68
+ } from "./chunk-DGXGVC4Z.js";
69
69
  import {
70
70
  CELL_EDGES,
71
71
  HEADING_RATIO_H1,
@@ -77,7 +77,7 @@ import {
77
77
  tidyScriptTags,
78
78
  unframeLayoutTables,
79
79
  wrapScript
80
- } from "./chunk-XVB3PUPJ.js";
80
+ } from "./chunk-L5KNWOGR.js";
81
81
  import {
82
82
  parsePageRange
83
83
  } from "./chunk-VQFA55IC.js";
@@ -96,7 +96,7 @@ import {
96
96
  findChildByLocalName,
97
97
  localName,
98
98
  rawTextContent
99
- } from "./chunk-DHEUQXXR.js";
99
+ } from "./chunk-FJE3TMZ7.js";
100
100
  import {
101
101
  MAX_COLS,
102
102
  MAX_ROWS,
@@ -111,7 +111,7 @@ import {
111
111
  hasStructuredCellContent,
112
112
  mapPuaText,
113
113
  noteSuffix
114
- } from "./chunk-JKHU7HID.js";
114
+ } from "./chunk-XXUXQHUC.js";
115
115
  import {
116
116
  KordocError,
117
117
  classifyError,
@@ -127,7 +127,7 @@ import {
127
127
  toArrayBuffer,
128
128
  unescapeHtml,
129
129
  unzipLimitBytes
130
- } from "./chunk-PN5WWW56.js";
130
+ } from "./chunk-UTVNSCEI.js";
131
131
 
132
132
  // src/table/visual.ts
133
133
  import { readFile as readFile2 } from "fs/promises";
@@ -2353,7 +2353,7 @@ import JSZip from "jszip";
2353
2353
 
2354
2354
  // src/hwpx/zip-sections.ts
2355
2355
  import { inflateRawSync as inflateRawSync2 } from "zlib";
2356
- function extractFromBrokenZip(buffer) {
2356
+ function extractFromBrokenZip(buffer, options) {
2357
2357
  const data = new Uint8Array(buffer);
2358
2358
  const view = new DataView(buffer);
2359
2359
  let pos = 0;
@@ -2420,7 +2420,7 @@ function extractFromBrokenZip(buffer) {
2420
2420
  }
2421
2421
  if (blocks.length === 0) throw new KordocError("\uC190\uC0C1\uB41C HWPX\uC5D0\uC11C \uC139\uC158 \uB370\uC774\uD130\uB97C \uBCF5\uAD6C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4");
2422
2422
  applyPageText(blocks, shared);
2423
- const markdown = blocksToMarkdown(blocks);
2423
+ const markdown = blocksToMarkdown(blocks, { tableFormat: options?.tableFormat });
2424
2424
  return { markdown, blocks, warnings: warnings.length > 0 ? warnings : void 0 };
2425
2425
  }
2426
2426
  async function readKordocLayout(zip) {
@@ -2594,7 +2594,7 @@ async function parseHwpxDocument(buffer, options) {
2594
2594
  try {
2595
2595
  zip = await JSZip2.loadAsync(buffer);
2596
2596
  } catch {
2597
- return extractFromBrokenZip(buffer);
2597
+ return extractFromBrokenZip(buffer, options);
2598
2598
  }
2599
2599
  const actualEntryCount = Object.keys(zip.files).length;
2600
2600
  if (actualEntryCount > MAX_ZIP_ENTRIES) {
@@ -2676,7 +2676,7 @@ async function parseHwpxDocument(buffer, options) {
2676
2676
  const shown = options?.layoutTables === "keep" ? blocks : unframeLayoutTables(blocks, !!options?.keepTrailingEmptyCols);
2677
2677
  detectHwpxHeadings(shown, styleMap, shared.tocTexts);
2678
2678
  const outline = shown.filter((b) => b.type === "heading" && b.level && b.text).map((b) => ({ level: b.level, text: b.text, pageNumber: b.pageNumber }));
2679
- const markdown = blocksToMarkdown(shown);
2679
+ const markdown = blocksToMarkdown(shown, { tableFormat: options?.tableFormat });
2680
2680
  return { markdown, blocks: shown, metadata, outline: outline.length > 0 ? outline : void 0, warnings: warnings.length > 0 ? warnings : void 0, images: images.length > 0 ? images : void 0 };
2681
2681
  }
2682
2682
 
@@ -15327,7 +15327,7 @@ function parseHwp3Document(buffer, options) {
15327
15327
  version: "3.0"
15328
15328
  };
15329
15329
  return {
15330
- markdown: blocksToMarkdown(blocks),
15330
+ markdown: blocksToMarkdown(blocks, { tableFormat: options?.tableFormat }),
15331
15331
  blocks,
15332
15332
  metadata,
15333
15333
  warnings: warnings.length ? warnings : void 0
@@ -16069,7 +16069,7 @@ async function parseXlsxDocument(buffer, options) {
16069
16069
  } catch {
16070
16070
  }
16071
16071
  }
16072
- const markdown = blocksToMarkdown(blocks);
16072
+ const markdown = blocksToMarkdown(blocks, { tableFormat: options?.tableFormat });
16073
16073
  return { markdown, blocks, metadata, warnings: warnings.length > 0 ? warnings : void 0 };
16074
16074
  }
16075
16075
 
@@ -16677,7 +16677,7 @@ async function parseXlsDocument(buffer, options) {
16677
16677
  pageCount: totalSheets
16678
16678
  };
16679
16679
  return {
16680
- markdown: blocksToMarkdown(allBlocks),
16680
+ markdown: blocksToMarkdown(allBlocks, { tableFormat: options?.tableFormat }),
16681
16681
  blocks: allBlocks,
16682
16682
  metadata,
16683
16683
  warnings: warnings.length > 0 ? warnings : void 0
@@ -17841,7 +17841,7 @@ async function parseDocxDocument(buffer, options) {
17841
17841
  }
17842
17842
  }
17843
17843
  const outline = blocks.filter((b) => b.type === "heading").map((b) => ({ level: b.level ?? 2, text: b.text ?? "" }));
17844
- const markdown = blocksToMarkdown(blocks);
17844
+ const markdown = blocksToMarkdown(blocks, { tableFormat: options?.tableFormat });
17845
17845
  return {
17846
17846
  markdown,
17847
17847
  blocks,
@@ -18163,7 +18163,7 @@ async function parsePptxDocument(buffer, options) {
18163
18163
  }
18164
18164
  const outline = blocks.filter((b) => b.type === "heading").map((b) => ({ level: b.level ?? 2, text: b.text ?? "", pageNumber: b.pageNumber }));
18165
18165
  return {
18166
- markdown: blocksToMarkdown(blocks),
18166
+ markdown: blocksToMarkdown(blocks, { tableFormat: options?.tableFormat }),
18167
18167
  blocks,
18168
18168
  metadata,
18169
18169
  outline: outline.length > 0 ? outline : void 0,
@@ -18223,7 +18223,7 @@ function parseHwpmlDocument(buffer, options) {
18223
18223
  parseSection(el, blocks, paraShapeMap, sectionIdx, warnings, options?.keepTrailingEmptyCols ?? false);
18224
18224
  }
18225
18225
  const outline = blocks.filter((b) => b.type === "heading" && b.text).map((b) => ({ level: b.level ?? 1, text: b.text, pageNumber: b.pageNumber }));
18226
- const markdown = blocksToMarkdown(blocks);
18226
+ const markdown = blocksToMarkdown(blocks, { tableFormat: options?.tableFormat });
18227
18227
  return {
18228
18228
  markdown,
18229
18229
  blocks,
@@ -30076,6 +30076,9 @@ async function patchHwpxBlocks(original, edits, options) {
30076
30076
  async function parse(input, options) {
30077
30077
  let buffer;
30078
30078
  const opts = typeof input === "string" && !options?.filePath ? { ...options, filePath: input } : options;
30079
+ if (opts?.htmlTables && opts.tableFormat) {
30080
+ return { success: false, fileType: "unknown", error: "htmlTables \uC640 tableFormat \uC740 \uD568\uAED8 \uC4F8 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4" };
30081
+ }
30079
30082
  if (typeof input === "string") {
30080
30083
  try {
30081
30084
  const buf = await readFile(input);
@@ -30104,7 +30107,7 @@ async function parse(input, options) {
30104
30107
  out = { ...result, warnings: [...result.warnings ?? [], { code: "PARTIAL_PARSE", message: `\uC694\uCCAD\uD55C \uCABD \uBC94\uC704(${opts.pages})\uAC00 \uBB38\uC11C \uCABD(1~${result.pageCount})\uACFC \uACB9\uCE58\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4` }] };
30105
30108
  }
30106
30109
  if (out.success && !out.pages) {
30107
- const pages = blocksToPages(out.blocks);
30110
+ const pages = blocksToPages(out.blocks, (bs) => blocksToMarkdown(bs, { tableFormat: opts?.tableFormat }));
30108
30111
  if (pages) out = { ...out, pages };
30109
30112
  }
30110
30113
  if (out.success && opts?.plain) {
@@ -30157,13 +30160,13 @@ function scriptsOff(r, off) {
30157
30160
  }
30158
30161
  async function parseImage(buffer, options) {
30159
30162
  try {
30160
- const { parseImageDocument } = await import("./image-ocr-PAF76DAW.js");
30163
+ const { parseImageDocument } = await import("./image-ocr-NUL3JKXM.js");
30161
30164
  const { blocks, warnings } = await parseImageDocument(buffer, options);
30162
30165
  stripScriptTags({ blocks });
30163
30166
  return {
30164
30167
  success: true,
30165
30168
  fileType: "image",
30166
- markdown: blocksToMarkdown(blocks),
30169
+ markdown: blocksToMarkdown(blocks, { tableFormat: options?.tableFormat }),
30167
30170
  blocks,
30168
30171
  warnings: warnings.length ? warnings : void 0,
30169
30172
  pageCount: 1
@@ -30217,7 +30220,7 @@ async function parseHwp(buffer, options) {
30217
30220
  async function parsePdf(buffer, options) {
30218
30221
  let parsePdfDocument;
30219
30222
  try {
30220
- const mod = await import("./parser-I4D3TRGU.js");
30223
+ const mod = await import("./parser-FDE6GQST.js");
30221
30224
  parsePdfDocument = mod.parsePdfDocument;
30222
30225
  } catch {
30223
30226
  return {
@@ -30440,4 +30443,4 @@ export {
30440
30443
  parseHwpml,
30441
30444
  fillForm
30442
30445
  };
30443
- //# sourceMappingURL=chunk-GUH6HYSZ.js.map
30446
+ //# sourceMappingURL=chunk-C4JHZNRL.js.map