kordoc 3.5.1 → 3.5.2

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/dist/index.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  sanitizeHref,
20
20
  stripDtd,
21
21
  toArrayBuffer
22
- } from "./chunk-OXOPDVNV.js";
22
+ } from "./chunk-QXXQIZBH.js";
23
23
  import {
24
24
  parsePageRange
25
25
  } from "./chunk-GE43BE46.js";
@@ -20453,7 +20453,8 @@ ${base2.join("\n")}
20453
20453
  ];
20454
20454
  for (let d = 0; d < GONGMUN_LIST_LEVELS; d++) {
20455
20455
  const { left, indent } = levelIndent(d, gongmun.bodyHeight, gongmun.numbering);
20456
- base.push(paraPr(GONGMUN_LIST_BASE + d, { align: "JUSTIFY", lineSpacing: ls, left, indent }));
20456
+ const sectionGap = gongmun.numbering === "report" && d === 0 ? Math.round(gongmun.bodyHeight * 0.5) : 0;
20457
+ base.push(paraPr(GONGMUN_LIST_BASE + d, { align: "JUSTIFY", lineSpacing: ls, left, indent, spaceBefore: sectionGap }));
20457
20458
  }
20458
20459
  base.push(paraPr(GONGMUN_CENTER, { align: "CENTER", lineSpacing: ls }));
20459
20460
  return `<hh:paraProperties itemCnt="${base.length}">
@@ -20664,7 +20665,8 @@ function blocksToSectionXml(blocks, theme, gongmun) {
20664
20665
  const marker2 = info?.marker ?? "";
20665
20666
  const content = block.text || "";
20666
20667
  const text = marker2 ? `${marker2} ${content}` : content;
20667
- xml = generateParagraph(text, GONGMUN_LIST_BASE + depth);
20668
+ const listCharPr = gongmun.numbering === "report" && depth === 0 ? CHAR_BOLD : CHAR_NORMAL;
20669
+ xml = generateParagraph(text, GONGMUN_LIST_BASE + depth, listCharPr);
20668
20670
  break;
20669
20671
  }
20670
20672
  const indent = block.indent || 0;
@@ -23513,7 +23515,7 @@ async function parseHwp(buffer, options) {
23513
23515
  async function parsePdf(buffer, options) {
23514
23516
  let parsePdfDocument;
23515
23517
  try {
23516
- const mod = await import("./parser-GHZMDUGG.js");
23518
+ const mod = await import("./parser-4FFTFIYL.js");
23517
23519
  parsePdfDocument = mod.parsePdfDocument;
23518
23520
  } catch {
23519
23521
  return {