For example:
% cat b.md
**Hello**
<script></script>
% ./pandoc b.md
<p><strong>Hello</strong></p>
<script></script>
% ./pandoc --embed-resources b.md
<p><strong>Hello</strong></p>
<script>
It's missing the closing </script>. Putting some code inside the <script> tag fixes it, but it's perfectly valid to have an empty script (I came across this trying to find a workaround for #10861).
% pandoc --version
pandoc 3.7.0.1
Features: +server +lua
Scripting engine: Lua 5.4