Scripts in HTML block

This post was last updated for 531 days ago, and the information may already be changed

How do scripts in HTML block work?

I have enabled "Settings -> Editor -> Allow execution of scripts within HTML blocks" and then added the following HTML to HTML block:

<div>
<blockquote class="twitter-tweet" data-dnt="true" data-theme="dark"><p lang="zxx" dir="ltr"><a href="https://t.co/jFHhlItpRq">https://t.co/jFHhlItpRq</a></p>— X (@X) <a href="https://twitter.com/X/status/1847366364476137801?ref_src=twsrc%5Etfw">October 18, 2024</a></blockquote>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>

expecting the script to be run and to see:

image.png

but all I got was:

image.png

    Related articles

    Welcome to here!

    Here we can learn from each other how to use SiYuan, give feedback and suggestions, and build SiYuan together.

    Signup About
    Please input reply content ...