External html and JS content not loading?
Mr-Sheep opened this issue · 2 comments
Mr-Sheep commented
I been trapped by this for a long time, but when I tried to put html or JS code blocks into the markdown file Im writing. The code block doesn't show up in the html file generate by hugo
I was trying:
<script src='/path-to-your-javascript-file/pdfobject.js'></script>
<script>
PDFObject.embed("link-to-pdf");
</script>
JugglerX commented
Not sure you can include scripts in the markdown. Or if you do, you might need to render the {{ .Content }} with some kind of special filter. Hugo probably strips <script> tags for security reasons.
Mr-Sheep commented
I thought I could directly use html code blocks in markdown. Anyways, I’ll give it a try.
Thx
Sent from ProtonMail Mobile
…On Mon, Mar 23, 2020 at 10:27 AM, Robert Austin ***@***.***> wrote:
Not sure you can include scripts in the markdown. Or if you do, you might need to render the {{ .Content }} with some kind of special filter. Hugo probably strips <script> tags for security reasons.
—
You are receiving this because you authored the thread.
Reply to this email directly, [view it on GitHub](#21 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AF3VVKOMBO37TKX2XYLFKNDRI3CJ7ANCNFSM4LOR7L6Q).