@bendyline/squisq-formats 2.8.7 → 2.8.9
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/README.md +21 -0
- package/dist/chunk-4LIFEQKX.js +358 -0
- package/dist/{chunk-UXEANVBI.js → chunk-5HUHSLGA.js} +1 -84
- package/dist/{chunk-IYNDHW2C.js → chunk-6HUQFEP3.js} +75 -5
- package/dist/{chunk-BXWNU4T5.js → chunk-DTJQK7U7.js} +43 -0
- package/dist/{chunk-QU4EVC62.js → chunk-GFHUJ7L4.js} +1 -1
- package/dist/{chunk-TMOXUUTG.js → chunk-NQNIFIDP.js} +6 -4
- package/dist/{chunk-B6UQPW75.js → chunk-SZ3OIY6G.js} +697 -44
- package/dist/{chunk-KROH7FNT.js → chunk-VKLJUHC2.js} +6 -4
- package/dist/{chunk-C23JYVPG.js → chunk-WJTC5OD6.js} +2 -0
- package/dist/{chunk-ALDCFHZT.js → chunk-WVDAFJFS.js} +59 -21
- package/dist/chunk-YRFBWYAD.js +128 -0
- package/dist/{chunk-SVYTUYZM.js → chunk-ZJERBWTB.js} +6 -4
- package/dist/data/index.d.ts +27 -5
- package/dist/data/index.js +6 -2
- package/dist/diagrams/index.d.ts +19 -8
- package/dist/diagrams/index.js +7 -242
- package/dist/docx/index.d.ts +1 -1
- package/dist/docx/index.js +3 -3
- package/dist/epub/index.d.ts +1 -1
- package/dist/epub/index.js +3 -3
- package/dist/fontAwesome-C6FRDYTY.js +14 -0
- package/dist/html/index.d.ts +214 -2
- package/dist/html/index.js +25 -4
- package/dist/index.d.ts +4 -2
- package/dist/index.js +15 -10
- package/dist/{materialize-G4WC5UG3.js → materialize-ICXNO4S4.js} +4 -1
- package/dist/outside-in/index.d.ts +21 -2
- package/dist/outside-in/index.js +7 -3
- package/dist/outside-in/layout.d.ts +7 -1
- package/dist/outside-in/layout.js +3 -1
- package/dist/pdf/index.d.ts +1 -1
- package/dist/pdf/index.js +3 -3
- package/dist/plainHtmlIcons-KBSIJ5EN.js +62 -0
- package/dist/pptx/index.js +2 -2
- package/dist/readers-3P5A6A2A.js +17 -0
- package/dist/registry/index.js +1 -1
- package/package.json +2 -2
- /package/dist/{chunk-LBXBRFBZ.js → chunk-DDMPZZJF.js} +0 -0
|
@@ -2,8 +2,9 @@ import {
|
|
|
2
2
|
upngEncoder
|
|
3
3
|
} from "./chunk-34KECNZO.js";
|
|
4
4
|
import {
|
|
5
|
-
FootnoteIndex
|
|
6
|
-
|
|
5
|
+
FootnoteIndex,
|
|
6
|
+
withoutBlockTags
|
|
7
|
+
} from "./chunk-DTJQK7U7.js";
|
|
7
8
|
import {
|
|
8
9
|
buildContainer
|
|
9
10
|
} from "./chunk-IIQYS2YH.js";
|
|
@@ -11,7 +12,7 @@ import {
|
|
|
11
12
|
collectInlineIconFamilies,
|
|
12
13
|
fontAwesomeFaces,
|
|
13
14
|
fontAwesomeGlyph
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DDMPZZJF.js";
|
|
15
16
|
import {
|
|
16
17
|
authoredImageSize,
|
|
17
18
|
fitWithin,
|
|
@@ -499,8 +500,9 @@ var IMPORT_TABLE_MIN_ROWS = 2;
|
|
|
499
500
|
var IMPORT_URL_PATTERN = /https?:\/\/[^\s)>\]]+/g;
|
|
500
501
|
|
|
501
502
|
// src/pdf/export.ts
|
|
502
|
-
async function markdownDocToPdf(
|
|
503
|
+
async function markdownDocToPdf(source, options = {}) {
|
|
503
504
|
options.signal?.throwIfAborted();
|
|
505
|
+
const doc = withoutBlockTags(source);
|
|
504
506
|
const pdfDoc = await PDFDocument.create();
|
|
505
507
|
if (options.title) pdfDoc.setTitle(options.title);
|
|
506
508
|
if (options.author) pdfDoc.setAuthor(options.author);
|