It depends on one question: does Markdown support <script> tags?

Technically, Markdown supports all HTML tags, including script tags.

Practically, Markdown is more of a vibe than a spec and everyone just uses whatever subset makes sense to them.