@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.
- package/dist/{chunk-5YYF3Z6C.js → chunk-BIERSSDF.js} +1 -1
- package/dist/{chunk-XVBQB2SL.js → chunk-CJUOAGGS.js} +2 -0
- package/dist/{chunk-UOENZLXV.js → chunk-MVSHWYIE.js} +2 -2
- package/dist/{chunk-FTO4QBTY.js → chunk-QRDJOYT3.js} +1176 -243
- package/dist/{chunk-4GR4QUGB.js → chunk-UJQHFM3K.js} +19 -21
- package/dist/docx/index.js +2 -2
- package/dist/index.js +5 -5
- package/dist/outside-in/index.js +2 -2
- package/dist/pptx/index.js +2 -2
- package/dist/registry/index.js +1 -1
- package/package.json +2 -2
|
@@ -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-
|
|
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) {
|