@hyperbook/markdown 0.58.1 → 0.58.3

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.
@@ -1443,10 +1443,12 @@ hyperbook.typst = (function () {
1443
1443
  */
1444
1444
  async handleExportPdf() {
1445
1445
  const mainFile = this.fileManager.findMainFile();
1446
- const code = mainFile ? mainFile.content : (this.editor ? this.editor.value : '');
1446
+ const mainCode = mainFile
1447
+ ? this.fileManager.contents.get(mainFile.filename) || mainFile.content
1448
+ : '';
1447
1449
 
1448
1450
  await this.renderer.exportPdf({
1449
- code,
1451
+ code: mainCode,
1450
1452
  id: this.id,
1451
1453
  sourceFiles: this.fileManager.getSourceFiles(),
1452
1454
  binaryFiles: this.binaryFiles,
@@ -1,5 +1,5 @@
1
1
  /// <reference path="./hyperbook.types.js" />
2
- window.hyperbook = window.hyperbook || {};
2
+ var hyperbook = window.hyperbook = window.hyperbook || {};
3
3
 
4
4
  /**
5
5
  * Persistent store backed by Dexie (IndexedDB).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperbook/markdown",
3
- "version": "0.58.1",
3
+ "version": "0.58.3",
4
4
  "author": "Mike Barkmin",
5
5
  "homepage": "https://github.com/openpatch/hyperbook#readme",
6
6
  "license": "MIT",