@hyperbook/markdown 0.58.1 → 0.58.2
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
|
|
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,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperbook/markdown",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.2",
|
|
4
4
|
"author": "Mike Barkmin",
|
|
5
5
|
"homepage": "https://github.com/openpatch/hyperbook#readme",
|
|
6
6
|
"license": "MIT",
|
|
@@ -95,8 +95,8 @@
|
|
|
95
95
|
"vitest": "^4.0.18",
|
|
96
96
|
"wavesurfer.js": "^7.12.1",
|
|
97
97
|
"@hyperbook/fs": "0.24.2",
|
|
98
|
-
"@hyperbook/
|
|
99
|
-
"@hyperbook/
|
|
98
|
+
"@hyperbook/types": "0.22.1",
|
|
99
|
+
"@hyperbook/web-component-excalidraw": "0.3.3"
|
|
100
100
|
},
|
|
101
101
|
"scripts": {
|
|
102
102
|
"version": "pnpm build",
|