Skip to content

Commit 03b8b67

Browse files
committed
fix pdf build
1 parent 4fdbee9 commit 03b8b67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/pdf/cleanup_combined_markdown.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ async function convertSvgNode(node) {
403403
const image = await fs.readFile(url.pathname, 'utf-8');
404404
const result = optimize(image, { path: url.pathname, multipass: true, plugins: svgoPlugins });
405405

406-
if (node.properties.src) {
406+
if (node.properties?.src) {
407407
let hast = unified()
408408
.use(rehypeParse, {
409409
emitParseErrors: true,

0 commit comments

Comments
 (0)