I am trying to embed a survey form in a rmarkdown on distill blog. As far as I understand, distill converts the rmarkdown to html in docs. I have put my HTML code directly into rmarkdown and it's sort of working.
However, whenever I click the distill page, it will have to load the rmarkdown-knitted blank page first before popping up the embedded HTML survey. My suspection about this lagging is on the YAML setting. Is there a way to set the rmarkdown to render the embedded HTML content directly? Obviously, I can just put an HTML file in the doc so it renders smoothly but it will be deleted after rebuilding the website.
---
title: "Survey"
output:
distill::distill_article:
self_contained: true
---
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
</head>
<body>
<script>
survey form
</script>
</body>
</html>