@hyperbook/markdown 0.44.0 → 0.44.1

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
@@ -62425,11 +62425,13 @@ body::-webkit-scrollbar {
62425
62425
  font-family: hyperbook-heading;
62426
62426
  src: url(${makeUrl(parseFont(font)[0], "public")});
62427
62427
  size-adjust: ${parseFont(font)[1]};
62428
+ font-display: swap;
62428
62429
  }
62429
62430
  @font-face {
62430
62431
  font-family: hyperbook-body;
62431
62432
  src: url(${makeUrl(parseFont(font)[0], "public")});
62432
62433
  size-adjust: ${parseFont(font)[1]};
62434
+ font-display: swap;
62433
62435
  }
62434
62436
  `;
62435
62437
  }
@@ -62439,6 +62441,7 @@ body::-webkit-scrollbar {
62439
62441
  font-family: hyperbook-body;
62440
62442
  src: url(${makeUrl(parseFont(fonts.body)[0], "public")});
62441
62443
  size-adjust: ${parseFont(fonts.body)[1]};
62444
+ font-display: swap;
62442
62445
  }
62443
62446
  `;
62444
62447
  }
@@ -62448,6 +62451,7 @@ body::-webkit-scrollbar {
62448
62451
  font-family: hyperbook-heading;
62449
62452
  src: url(${makeUrl(parseFont(fonts.heading)[0], "public")});
62450
62453
  size-adjust: ${parseFont(fonts.heading)[1]};
62454
+ font-display: swap;
62451
62455
  }
62452
62456
  `;
62453
62457
  }
@@ -62457,6 +62461,7 @@ body::-webkit-scrollbar {
62457
62461
  font-family: hyperbook-code;
62458
62462
  src: url(${makeUrl(parseFont(fonts.code)[0], "public")});
62459
62463
  size-adjust: ${parseFont(fonts.code)[1]};
62464
+ font-display: swap;
62460
62465
  }
62461
62466
  `;
62462
62467
  }
@@ -62668,7 +62673,8 @@ var rehypeHtmlStructure_default = (ctx) => () => {
62668
62673
  type: "element",
62669
62674
  tagName: "script",
62670
62675
  properties: {
62671
- src: makeUrl(["i18n.js"], "assets")
62676
+ src: makeUrl(["i18n.js"], "assets"),
62677
+ defer: true
62672
62678
  },
62673
62679
  children: []
62674
62680
  },
@@ -62676,7 +62682,8 @@ var rehypeHtmlStructure_default = (ctx) => () => {
62676
62682
  type: "element",
62677
62683
  tagName: "script",
62678
62684
  properties: {
62679
- src: makeUrl(["dexie.min.js"], "assets")
62685
+ src: makeUrl(["dexie.min.js"], "assets"),
62686
+ defer: true
62680
62687
  },
62681
62688
  children: []
62682
62689
  },
@@ -62684,7 +62691,8 @@ var rehypeHtmlStructure_default = (ctx) => () => {
62684
62691
  type: "element",
62685
62692
  tagName: "script",
62686
62693
  properties: {
62687
- src: makeUrl(["dexie-export-import.js"], "assets")
62694
+ src: makeUrl(["dexie-export-import.js"], "assets"),
62695
+ defer: true
62688
62696
  },
62689
62697
  children: []
62690
62698
  },
@@ -62692,7 +62700,8 @@ var rehypeHtmlStructure_default = (ctx) => () => {
62692
62700
  type: "element",
62693
62701
  tagName: "script",
62694
62702
  properties: {
62695
- src: makeUrl(["store.js"], "assets")
62703
+ src: makeUrl(["store.js"], "assets"),
62704
+ defer: true
62696
62705
  },
62697
62706
  children: []
62698
62707
  },
@@ -62713,7 +62722,8 @@ window.Prism.manual = true;`
62713
62722
  type: "element",
62714
62723
  tagName: "script",
62715
62724
  properties: {
62716
- src: makeUrl(["prism", "prism.js"], "assets")
62725
+ src: makeUrl(["prism", "prism.js"], "assets"),
62726
+ defer: true
62717
62727
  },
62718
62728
  children: []
62719
62729
  },
@@ -63373,7 +63383,8 @@ var makeHeaderElements = (ctx) => {
63373
63383
  tagName: "img",
63374
63384
  properties: {
63375
63385
  alt: "logo",
63376
- src: ctx.makeUrl(ctx.config.logo, "public")
63386
+ src: ctx.makeUrl(ctx.config.logo, "public"),
63387
+ height: "40"
63377
63388
  },
63378
63389
  children: []
63379
63390
  }