We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1286099 commit f0687caCopy full SHA for f0687ca
src/tools/pdf/manipulations.ts
@@ -108,7 +108,7 @@ export async function editPdf(
108
}
109
else if (op.type == 'insert') {
110
let sourcePdfDocument: PDFDocument;
111
- if (op.markdown) {
+ if (op.markdown !== undefined) {
112
const pdfOptions = pageLayout ? { pdf_options: pageLayout } : undefined;
113
const pdfBuffer = await parseMarkdownToPdf(op.markdown, pdfOptions);
114
sourcePdfDocument = await loadPdfDocumentFromBuffer(pdfBuffer);
0 commit comments