This commit is contained in:
2023-06-12 10:42:41 +02:00
parent 490d2fb1fd
commit d17a4d103b

View File

@@ -20,7 +20,10 @@
color: #333; color: #333;
} }
.video-wrapper { .video-wrapper {
position: relative; position: sticky;
top: 0;
max-width: 640px;
margin: 0 auto;
padding-bottom: 56.25%; /* 16:9 aspect ratio */ padding-bottom: 56.25%; /* 16:9 aspect ratio */
height: 0; height: 0;
overflow: hidden; overflow: hidden;
@@ -38,7 +41,8 @@
<div class="container"> <div class="container">
<script> <script>
const md = window.markdownit({linkify: true, html: true}); const md = window.markdownit({linkify: true, html: true});
const result = md.render(`# Testing In-Browser Markdown Rendering And YouTube Embed const result = md.render(`
# Testing In-Browser Markdown Rendering And YouTube Embed
`); `);
document.body.insertAdjacentHTML("beforeend", result); document.body.insertAdjacentHTML("beforeend", result);
</script> </script>