fix markdown again

This commit is contained in:
2023-06-12 10:47:45 +02:00
parent 04fbf5314a
commit b5d5892975

View File

@@ -38,13 +38,13 @@
</head>
<body>
<div class="container">
<div class="markdown-content">
<script>
const md = window.markdownit({linkify: true, html: true});
const result = md.render(`
# Testing In-Browser Markdown Rendering And YouTube Embed
`);
document.body.insertAdjacentHTML("beforeend", result);
const result = md.render('# Testing In-Browser Markdown Rendering And YouTube Embed');
document.querySelector('.markdown-content').insertAdjacentHTML("beforeend", result);
</script>
</div>
<div class="video-wrapper">
<iframe src="https://www.youtube.com/embed/QJ38en58Onk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</div>