@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.
Files changed (39) hide show
  1. package/README.md +21 -0
  2. package/dist/chunk-4LIFEQKX.js +358 -0
  3. package/dist/{chunk-UXEANVBI.js → chunk-5HUHSLGA.js} +1 -84
  4. package/dist/{chunk-IYNDHW2C.js → chunk-6HUQFEP3.js} +75 -5
  5. package/dist/{chunk-BXWNU4T5.js → chunk-DTJQK7U7.js} +43 -0
  6. package/dist/{chunk-QU4EVC62.js → chunk-GFHUJ7L4.js} +1 -1
  7. package/dist/{chunk-TMOXUUTG.js → chunk-NQNIFIDP.js} +6 -4
  8. package/dist/{chunk-B6UQPW75.js → chunk-SZ3OIY6G.js} +697 -44
  9. package/dist/{chunk-KROH7FNT.js → chunk-VKLJUHC2.js} +6 -4
  10. package/dist/{chunk-C23JYVPG.js → chunk-WJTC5OD6.js} +2 -0
  11. package/dist/{chunk-ALDCFHZT.js → chunk-WVDAFJFS.js} +59 -21
  12. package/dist/chunk-YRFBWYAD.js +128 -0
  13. package/dist/{chunk-SVYTUYZM.js → chunk-ZJERBWTB.js} +6 -4
  14. package/dist/data/index.d.ts +27 -5
  15. package/dist/data/index.js +6 -2
  16. package/dist/diagrams/index.d.ts +19 -8
  17. package/dist/diagrams/index.js +7 -242
  18. package/dist/docx/index.d.ts +1 -1
  19. package/dist/docx/index.js +3 -3
  20. package/dist/epub/index.d.ts +1 -1
  21. package/dist/epub/index.js +3 -3
  22. package/dist/fontAwesome-C6FRDYTY.js +14 -0
  23. package/dist/html/index.d.ts +214 -2
  24. package/dist/html/index.js +25 -4
  25. package/dist/index.d.ts +4 -2
  26. package/dist/index.js +15 -10
  27. package/dist/{materialize-G4WC5UG3.js → materialize-ICXNO4S4.js} +4 -1
  28. package/dist/outside-in/index.d.ts +21 -2
  29. package/dist/outside-in/index.js +7 -3
  30. package/dist/outside-in/layout.d.ts +7 -1
  31. package/dist/outside-in/layout.js +3 -1
  32. package/dist/pdf/index.d.ts +1 -1
  33. package/dist/pdf/index.js +3 -3
  34. package/dist/plainHtmlIcons-KBSIJ5EN.js +62 -0
  35. package/dist/pptx/index.js +2 -2
  36. package/dist/readers-3P5A6A2A.js +17 -0
  37. package/dist/registry/index.js +1 -1
  38. package/package.json +2 -2
  39. /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
- } from "./chunk-BXWNU4T5.js";
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-LBXBRFBZ.js";
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(doc, options = {}) {
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);