@bendyline/squisq-formats 2.7.5 → 2.8.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.
@@ -5,7 +5,7 @@ import {
5
5
  inlineNodesToRuns,
6
6
  normalizeOoxmlHex,
7
7
  sanitizeOfficeHyperlink
8
- } from "./chunk-XVBQB2SL.js";
8
+ } from "./chunk-CJUOAGGS.js";
9
9
  import {
10
10
  docHasSvgIslands,
11
11
  isSvgImageEntry,
@@ -103,6 +103,8 @@ function inlineNodeToRuns(node, handlers, format) {
103
103
  case "htmlInline":
104
104
  return handlers.run(stripHtmlTags(node.rawHtml), format);
105
105
  case "link":
106
+ if (node.wikiTarget !== void 0 && !node.url)
107
+ return inlineNodesToRuns(node.children, handlers, format);
106
108
  return handlers.link(node, format);
107
109
  case "image":
108
110
  return handlers.image(node, format);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  convert,
3
3
  defaultRegistry
4
- } from "./chunk-4GR4QUGB.js";
4
+ } from "./chunk-UJQHFM3K.js";
5
5
  import {
6
6
  ConversionError
7
7
  } from "./chunk-KXOZMWBS.js";
@@ -13,6 +13,7 @@ import {
13
13
  // src/outside-in/index.ts
14
14
  import {
15
15
  parseFrontmatter,
16
+ parseMarkdown,
16
17
  setFrontmatterValues,
17
18
  splitFrontmatterBlock,
18
19
  stringifyMarkdown
@@ -92,7 +93,6 @@ async function importMarkdownDocument(data, layout, registry, options) {
92
93
  const container = await definition.importContainer(data, options);
93
94
  const imported = await container.readDocument();
94
95
  if (imported !== null) {
95
- const { parseMarkdown } = await import("@bendyline/squisq/markdown");
96
96
  return { markdownDoc: parseMarkdown(imported), container };
97
97
  }
98
98
  if (definition.importDoc) {