File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -624,11 +624,10 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
624
624
// YouTube video (with optional playlist)
625
625
node . tagName = "iframe"
626
626
node . properties = {
627
- class : "external-embed" ,
627
+ class : "external-embed youtube " ,
628
628
allow : "fullscreen" ,
629
629
frameborder : 0 ,
630
630
width : "600px" ,
631
- height : "350px" ,
632
631
src : playlistId
633
632
? `https://www.youtube.com/embed/${ videoId } ?list=${ playlistId } `
634
633
: `https://www.youtube.com/embed/${ videoId } ` ,
@@ -637,11 +636,10 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
637
636
// YouTube playlist only.
638
637
node . tagName = "iframe"
639
638
node . properties = {
640
- class : "external-embed" ,
639
+ class : "external-embed youtube " ,
641
640
allow : "fullscreen" ,
642
641
frameborder : 0 ,
643
642
width : "600px" ,
644
- height : "350px" ,
645
643
src : `https://www.youtube.com/embed/videoseries?list=${ playlistId } ` ,
646
644
}
647
645
}
Original file line number Diff line number Diff line change @@ -542,5 +542,12 @@ ol.overflow {
542
542
overflow-y : hidden ;
543
543
}
544
544
545
+ .external-embed.youtube {
546
+ aspect-ratio : 16 / 9 ;
547
+ height : 100% ;
548
+ width : 100% ;
549
+ border-radius : 5px ;
550
+ }
551
+
545
552
/* ====================================== */
546
553
/* -- Below are MMW Edits to base.scss -- */
You can’t perform that action at this time.
0 commit comments