We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e8252a commit 33e0de8Copy full SHA for 33e0de8
quartz/plugins/transformers/ofm.ts
@@ -264,7 +264,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
264
} else if ([".pdf"].includes(ext)) {
265
return {
266
type: "html",
267
- value: `<iframe src="${url}"></iframe>`,
+ value: `<iframe src="${url}" class="pdf"></iframe>`,
268
}
269
// MMW - assign custom styling to .zip embed download link
270
} else if ([".zip", ".7z"].includes(ext)) {
quartz/styles/base.scss
@@ -542,7 +542,8 @@ ol.overflow {
542
overflow-y: hidden;
543
544
545
-.external-embed.youtube {
+.external-embed.youtube,
546
+iframe.pdf {
547
aspect-ratio: 16 / 9;
548
height: 100%;
549
width: 100%;
0 commit comments