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 69c0fc6 commit e128684Copy full SHA for e128684
src/.vitepress/components/YouTube.vue
@@ -18,4 +18,10 @@ const props = defineProps({
18
</script>
19
20
<style scoped>
21
+lite-youtube {
22
+ width: 100%;
23
+ height: 100%;
24
+ aspect-ratio: 16 / 9;
25
+ display: block;
26
+}
27
</style>
src/.vitepress/config.mts
@@ -12,6 +12,13 @@ export default defineConfig({
12
ignoreDeadLinks: true,
13
cleanUrls: true,
14
outDir: "../dist/docs",
15
+ vue: {
16
+ template: {
17
+ compilerOptions: {
+ isCustomElement: (tag) => tag === 'lite-youtube'
+ }
+ },
markdown: {
config(md) {
// Fix for image width and height handling for proper scrolling
0 commit comments