@drghaliasri/butex 8.2.0 → 8.2.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/document-cli.js +2 -2
- package/dist/document-cli.js.map +1 -1
- package/package.json +1 -1
package/dist/document-cli.js
CHANGED
|
@@ -8561,7 +8561,7 @@ function parseDocumentWorkerRequest(value) {
|
|
|
8561
8561
|
return { action: value.action, document: value.document };
|
|
8562
8562
|
}
|
|
8563
8563
|
if (value.action === "export") {
|
|
8564
|
-
if (value.mode !== void 0 && value.mode !== "article" && value.mode !== "book-content") {
|
|
8564
|
+
if (value.mode !== void 0 && value.mode !== "article" && value.mode !== "note" && value.mode !== "book-content") {
|
|
8565
8565
|
throw new DocumentWorkerProtocolError("invalid_request", "Unsupported export mode");
|
|
8566
8566
|
}
|
|
8567
8567
|
if (value.mode === "book-content" && value.book_context === void 0) {
|
|
@@ -8736,7 +8736,7 @@ function executeDocumentWorkerRequest(input) {
|
|
|
8736
8736
|
const document2 = resolveDocument2(request.document);
|
|
8737
8737
|
return {
|
|
8738
8738
|
ok: true,
|
|
8739
|
-
latex: request.mode === "book-content" ? documentContentLatex2(document2, request.book_context) : documentLatex2(document2, { twocolumn:
|
|
8739
|
+
latex: request.mode === "book-content" ? documentContentLatex2(document2, request.book_context) : documentLatex2(document2, { twocolumn: request.mode !== "note" }),
|
|
8740
8740
|
asset_ids: collectAssetIds(document2.blocks)
|
|
8741
8741
|
};
|
|
8742
8742
|
}
|