# How do I embed JavaScript in Jekyll?

**URL:** <https://talk.jekyllrb.com/t/how-do-i-embed-javascript-in-jekyll/4374>\
**Category:** Help\
**Created:** [May 7, 2020, 7:12pm UTC](https://talk.jekyllrb.com/t/how-do-i-embed-javascript-in-jekyll/4374 "2020-05-07T19:12:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [May 9, 2020, 8:01am UTC](https://talk.jekyllrb.com/t/how-do-i-embed-javascript-in-jekyll/4374/5 "2020-05-09T08:01:01Z")

</div>

You can have indented html tags in a markdown file and it won’t get converted to plain text.

Just avoid empty lines. You can add them in a certain way but start with no empty lines.

Use .md or .html extension. Both work fine for html tags

---

_[View the full topic](https://talk.jekyllrb.com/t/how-do-i-embed-javascript-in-jekyll/4374)._
