From 3938904cd096205b27741538655c3fb18cd401be Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Mon, 5 Aug 2024 19:31:54 -0700 Subject: [PATCH] fix: embed pdf aspect ratio (closes #1310) --- quartz/plugins/transformers/ofm.ts | 2 +- quartz/styles/base.scss | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/quartz/plugins/transformers/ofm.ts b/quartz/plugins/transformers/ofm.ts index dd2eaee..a406c86 100644 --- a/quartz/plugins/transformers/ofm.ts +++ b/quartz/plugins/transformers/ofm.ts @@ -263,7 +263,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin } else if ([".pdf"].includes(ext)) { return { type: "html", - value: ``, + value: ``, } } else { const block = anchor diff --git a/quartz/styles/base.scss b/quartz/styles/base.scss index 79b05cd..3b3ead7 100644 --- a/quartz/styles/base.scss +++ b/quartz/styles/base.scss @@ -542,7 +542,8 @@ ol.overflow { overflow-y: hidden; } -.external-embed.youtube { +.external-embed.youtube, +iframe.pdf { aspect-ratio: 16 / 9; height: 100%; width: 100%;